mirror of
https://github.com/scopatz/nanorc
synced 2024-11-22 16:45:40 +01:00
Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files.
This commit is contained in:
parent
fc08bf270a
commit
8aaecabe59
@ -8,8 +8,11 @@ color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
|
|||||||
color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
|
color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
|
||||||
color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
|
color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
|
||||||
color cyan "\<(null|undefined|NaN)\>"
|
color cyan "\<(null|undefined|NaN)\>"
|
||||||
|
color cyan "\<(import|as|from|export)\>"
|
||||||
|
color cyan "\<(const|let|class|extends|get|set|of|async|await)\>"
|
||||||
color brightcyan "\<(true|false)\>"
|
color brightcyan "\<(true|false)\>"
|
||||||
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
||||||
|
color green "\<(Map|WeakMap|Set|WeakSet|Promise)\>"
|
||||||
color green "\<(Number|Object|RegExp|String)\>"
|
color green "\<(Number|Object|RegExp|String)\>"
|
||||||
color red "[-+/*=<>!~%?:&|]"
|
color red "[-+/*=<>!~%?:&|]"
|
||||||
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
||||||
|
@ -28,9 +28,12 @@ color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
|||||||
color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
|
color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
|
||||||
color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>"
|
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 "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>"
|
||||||
|
color green "\<(import|as|from|export)\>"
|
||||||
|
color green "\<const|let|class|extends|of|get|set|await|async|yield)\>"
|
||||||
|
|
||||||
## Type specifiers
|
## Type specifiers
|
||||||
color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
||||||
|
color red "\<(WeakMap|Map|WeakSet|Set|Symbol|Promise)\>"
|
||||||
color red "\<(Number|Object|RegExp|String)\>"
|
color red "\<(Number|Object|RegExp|String)\>"
|
||||||
color red "\<(true|false)\>"
|
color red "\<(true|false)\>"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user