Mercurial > repos > other > linux
view nanorc.d/javascript.nanorc @ 124:c3320f06d412
Add a minimal global gitignore
We could add more, but this is intended for things that only I
need to ignore (such as build directories that other people
might do differently) rather than stuff that everyone wants to do
(like ignoring .pyc files or log files in the project)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 13 Mar 2019 19:19:50 +0000 |
parents | 38e63e27f3da |
children |
line wrap: on
line source
## Syntax highlighting for Javascript. syntax javascript "\.js$" comment "//" # Declarational stuff. color cyan "\<(async|class|const|extends|function|let|this|typeof|var|void)\>" # Flow control and special keywords. color cyan "\<(do|while|if|else|switch|case|default|for|each|in|of|with)\>" color cyan "\<(await|export|import|throw|try|catch|finally|new|delete)\>" # "Exit" points. color magenta "\<(break|continue|return|yield|this)\>" # Operators - note, we require proper spacing to prevent false positives color red "(^|[[:space:]])(&&|\|\||>=?|<=?|===?|!==?)([[:space:]]|$)" color red "!" # Strings. color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`" # And regex color yellow "/.*[^\\]/" # Comments. color green "(^|[[:space:]])//.*" color green start="/\*" end="\*/" # Trailing whitespace. color ,green "[[:space:]]+$"