2023-10-16 08:42:19 +02:00
|
|
|
syntax "JavaScript" "\.(m?js|ts)$"
|
2019-12-18 17:13:13 +01:00
|
|
|
comment "//"
|
2013-06-02 12:48:33 +02:00
|
|
|
color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
|
|
|
|
color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
|
|
|
color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
2019-03-17 07:55:13 +01:00
|
|
|
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]|)"
|
2013-06-02 12:48:33 +02:00
|
|
|
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 "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
|
|
|
|
color cyan "\<(null|undefined|NaN)\>"
|
2017-07-16 13:46:55 +02:00
|
|
|
color cyan "\<(import|as|from|export)\>"
|
2017-07-16 13:48:35 +02:00
|
|
|
color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>"
|
2013-06-02 12:48:33 +02:00
|
|
|
color brightcyan "\<(true|false)\>"
|
|
|
|
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
2017-07-16 13:49:51 +02:00
|
|
|
color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>"
|
2013-06-02 12:48:33 +02:00
|
|
|
color green "\<(Number|Object|RegExp|String)\>"
|
|
|
|
color red "[-+/*=<>!~%?:&|]"
|
|
|
|
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
|
|
|
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
2020-08-27 16:19:51 +02:00
|
|
|
color brightblack "//.*"
|
2014-07-31 12:57:13 +02:00
|
|
|
color brightblack "/\*.+\*/"
|
2013-06-02 12:48:33 +02:00
|
|
|
color brightwhite,cyan "TODO:?"
|
2017-06-30 09:30:16 +02:00
|
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
|
2013-06-02 12:48:33 +02:00
|
|
|
color ,green "[[:space:]]+$"
|
2015-10-24 11:52:47 +02:00
|
|
|
color ,red " + +| + +"
|