24 lines
1.1 KiB
Text
24 lines
1.1 KiB
Text
syntax "JavaScript" "\.js$"
|
|
|
|
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]?"
|
|
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
|
color black "[(]"
|
|
color brightblack "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
|
|
color brightblack "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>"
|
|
color brightblack "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
|
|
color brightblack "\<(null|undefined|NaN)\>"
|
|
color brightcyan "\<(true|false)\>"
|
|
color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
|
|
color green "\<(Number|Object|RegExp|String)\>"
|
|
color red "[-+/*=<>!~%?:&|]"
|
|
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
|
color cyan "(^|[[:space:]])//.*"
|
|
color cyan start="/\*" end="\*/"
|
|
color brightwhite,cyan "TODO:?"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|
|
# +EXTRALINT
|