--- a/langs.sty Tue Dec 02 22:33:23 2014 +0000
+++ b/langs.sty Fri Dec 05 01:17:31 2014 +0000
@@ -39,6 +39,21 @@
otherkeywords={=,!=,:=,<,>,\%;*,/},
}[keywords,comments,strings]
+\lstdefinelanguage{JavaScript}{
+ keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with},
+ morecomment=[l]{//},
+ morecomment=[s]{/*}{*/},
+ morestring=[b]',
+ morestring=[b]",
+ ndkeywords={class, export, boolean, throw, implements, import, this},
+ keywordstyle=\color{codepurple},
+ ndkeywordstyle=\color{codepurple},
+ identifierstyle=\color{black},
+ commentstyle=\color{codegreen},
+ stringstyle=\color{codegreen},
+ sensitive=true
+}
+
\lstdefinestyle{mystyle}
{basicstyle=\ttfamily,
keywordstyle=\color{codepurple}\bfseries,