]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/javascript.micro
Merge pull request #488 from McSwaggens/removewhitespaces-setting
[micro.git] / runtime / syntax / javascript.micro
1 syntax "javascript" "\.js$"
2
3 color constant.number   "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
4 color constant.number   "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
5 color constant.number   "\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
6 color identifier "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
7 color statement  "\b(break|case|catch|continue|default|delete|do|else|finally)\b"
8 color statement  "\b(for|function|get|if|in|instanceof|new|return|set|switch)\b"
9 color statement  "\b(switch|this|throw|try|typeof|var|void|while|with)\b"
10 color constant  "\b(null|undefined|NaN)\b"
11 color constant "\b(true|false)\b"
12 color type     "\b(Array|Boolean|Date|Enumerator|Error|Function|Math)\b"
13 color type     "\b(Number|Object|RegExp|String)\b"
14 color statement "[-+/*=<>!~%?:&|]"
15 color constant   "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
16 color constant   "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
17 color comment "(^|[[:space:]])//.*"
18 color comment "/\*.+\*/"
19 color todo "TODO:?"
20 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"