mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-07 07:30:20 +09:00
This may be a breaking change if you are using a plugin that checks the filetype. All the default plugins are now updated, just make the filetype you were checking for previously all lowercase.
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
syntax "javascript" "\.js$"
|
|
|
|
color blue "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
|
|
color blue "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
|
|
color blue "\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
|
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
|
|
color statement "\b(break|case|catch|continue|default|delete|do|else|finally)\b"
|
|
color statement "\b(for|function|get|if|in|instanceof|new|return|set|switch)\b"
|
|
color statement "\b(switch|this|throw|try|typeof|var|void|while|with)\b"
|
|
color constant "\b(null|undefined|NaN)\b"
|
|
color constant "\b(true|false)\b"
|
|
color type "\b(Array|Boolean|Date|Enumerator|Error|Function|Math)\b"
|
|
color type "\b(Number|Object|RegExp|String)\b"
|
|
color statement "[-+/*=<>!~%?:&|]"
|
|
color constant "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
|
|
color constant "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
|
|
color comment "(^|[[:space:]])//.*"
|
|
color comment "/\*.+\*/"
|
|
color todo "TODO:?"
|
|
color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"
|