]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/typescript.micro
Merge pull request #447 from samdmarshall/objective-c-syntax
[micro.git] / runtime / syntax / typescript.micro
1 syntax "typescript" "\.ts$"
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(abstract|as|async|await|break|case|catch|class|const|constructor|continue)\b"
8 color statement  "\b(debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from)\b"
9 color statement  "\b(function|get|if|implements|import|in|instanceof|interface|is|let|module|namespace)\b"
10 color statement  "\b(new|of|package|private|protected|public|require|return|set|static|super|switch)\b"
11 color statement  "\b(this|throw|try|type|typeof|var|void|while|with|yield)\b"
12 color constant  "\b(false|true|null|undefined|NaN)\b"
13 color type     "\b(Array|Boolean|Date|Enumerator|Error|Function|Math)\b"
14 color type     "\b(Number|Object|RegExp|String|Symbol)\b"
15 color type     "\b(any|boolean|never|number|string|symbol)\b"
16 color statement "[-+/*=<>!~%?:&|]"
17 color constant   "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
18 color constant   "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
19 color comment "(^|[[:space:]])//.*"
20 color comment "/\*.+\*/"
21 color todo "TODO:?"
22 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"