diff options
author | serialhex <serialhex@gmail.com> | 2017-02-10 17:23:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 17:23:23 +0300 |
commit | f0943e94d28eb17d66df641b1a696c2756aab572 (patch) | |
tree | 72e6f7a266a40ab4a2f477cf74b727acb92af308 | |
parent | 936d8889393d0e90e568ba2983723c1ad8f9db67 (diff) | |
parent | 57ec2b21309eadcec9923cbfddde8e582ed379fe (diff) |
Merge pull request #33 from Piterden/patch-3
Updated reserved words. Fixed template variable bug.
-rw-r--r-- | js.nanorc | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 "//.*$" + |