comparison nanorc.d/javascript.nanorc @ 84:b989099cde9f

Start to update Nano colourisation Defaults are REALLY basic
author IBBoard <dev@ibboard.co.uk>
date Sat, 31 Mar 2018 21:06:21 +0100
parents
children
comparison
equal deleted inserted replaced
83:966d8f8f89d0 84:b989099cde9f
1 syntax "JavaScript" "\.js$"
2
3 color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
4 color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
5 color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
6 color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
7 color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
8 color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
9 color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
10 color cyan "\<(null|undefined|NaN)\>"
11 color cyan "\<(import|as|from|export)\>"
12 color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>"
13 color brightcyan "\<(true|false)\>"
14 color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
15 color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>"
16 color green "\<(Number|Object|RegExp|String)\>"
17 color red "[-+/*=<>!~%?:&|]"
18 color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
19 color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
20 color brightblack "(^|[[:space:]])//.*"
21 color brightblack "/\*.+\*/"
22 color brightwhite,cyan "TODO:?"
23 color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
24 color ,green "[[:space:]]+$"
25 color ,red " + +| + +"