Added ECMAScript 2015/6/7 keywrods and types to the two JavaScript syntac files.
This commit is contained in:
@@ -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 "\<(for|function|if|in|instanceof|new|null|return|switch)\>"
|
||||
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
|
||||
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 "\<(true|false)\>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user