]> git.lizzy.rs Git - micro.git/blob - syntax_files/javascript.micro
Proper window resize handling
[micro.git] / syntax_files / javascript.micro
1 syntax "JavaScript" "\.js$"
2
3 color blue   "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
4 color blue   "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
5 color blue   "\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
6 color brightblue "[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 ""(\\.|[^"])*"|'(\\.|[^'])*'"