Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/serialhex/nano-highlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Efremov <efremov.a.denis@gmail.com>2017-02-10 04:00:53 +0300
committerGitHub <noreply@github.com>2017-02-10 04:00:53 +0300
commit57ec2b21309eadcec9923cbfddde8e582ed379fe (patch)
tree72e6f7a266a40ab4a2f477cf74b727acb92af308
parent936d8889393d0e90e568ba2983723c1ad8f9db67 (diff)
Updated reserved words. Fixed template variable bug.
-rw-r--r--js.nanorc14
1 files changed, 10 insertions, 4 deletions
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 "//.*$"
+