diff --git a/js.nanorc b/js.nanorc index 08460de..879672e 100644 --- a/js.nanorc +++ b/js.nanorc @@ -11,9 +11,14 @@ color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" ## Keywords -color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" -color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" -color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" +color green "\<(abstract|await|boolean|break|byte|case|catch|char)\>" +color green "\<(class|const|continue|debugger|default|delete|double)\>" +color green "\<(do|else|enum|export|extends|finally|final|float|for)\>" +color green "\<(function|goto|if|implements|import|instanceof|interface)\>" +color green "\<(int|in|let|long|native|new|package|private|protected)\>" +color green "\<(public|return|short|static|super|switch|synchronized)\>" +color green "\<(this|throws|throw|transient|try|typeof|var|void)\>" +color green "\<(volatile|while|with|yield)\>" ## Type specifiers color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" @@ -24,7 +29,7 @@ color red "\<(true|false)\>" color brightyellow "L?\"(\\"|[^"])*\"" color brightyellow "L?'(\'|[^'])*'" color brightcyan "L?`(\`|[^`])*`" -color ,magenta "\$\{(.+)\}" +color brightwhite,blue start="\$\{" end="\}" ## Escapes color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" @@ -32,3 +37,4 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments color magenta start="/\*" end="\*/" color magenta "//.*$" +