Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #33 from Piterden/patch-3
Updated reserved words. Fixed template variable bug.
  • Loading branch information
serialhex committed Feb 10, 2017
2 parents 936d888 + 57ec2b2 commit f0943e9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions js.nanorc
Expand Up @@ -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)\>"
Expand All @@ -24,11 +29,12 @@ 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'"\?\\]"

## Comments
color magenta start="/\*" end="\*/"
color magenta "//.*$"

0 comments on commit f0943e9

Please sign in to comment.