This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / ts.nanorc
1 syntax "typescript" "\.(ts)$"
2
3 ## Default
4 color white "^.+$"
5
6 ## Decimal, cotal and hexadecimal numbers
7 color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>"
8
9 ## Floating point number with at least one digit before decimal point
10 color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
11 color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
12
13 ## Keywords
14 color green "\<(abstract|boolean|break|byte|case|catch|set)\>"
15 color green "\<(class|const|continue|debugger|default|delete|readonly)\>"
16 color green "\<(do|else|enum|export|extends|finally|final|for)\>"
17 color green "\<(from|function|goto|if|implements|import|instanceof)\>"
18 color green "\<(var|interface|int|in|let|new|package|private)\>"
19 color green "\<(protected|public|return|static|super|switch)\>"
20 color green "\<(this|throw|try|typeof)\>"
21 color green "\<(void|while|with|yield)\>"
22
23 ## Type specifiers
24 color red "\<(Array|Boolean|Date|Enumerator|Error|Function)\>"
25 color red "\<(Number|Object|RegExp|String)\>"
26 color red "\<(true|false)\>"
27
28 ## String
29 color brightyellow "L?\"(\\"|[^"])*\""
30 color brightyellow "L?'(\'|[^'])*'"
31 color brightcyan "L?`(\`|[^`])*`"
32 color brightwhite,blue start="\$\{" end="\}"
33
34 ## Escapes
35 color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
36
37 ## Comments
38 color magenta start="/\*" end="\*/"
39 color magenta "^\s*//.*$"
40
41 ## Trailing whitespace
42 color ,green "[[:space:]]+$"