-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzs.nanorc
27 lines (24 loc) · 986 Bytes
/
zs.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
syntax "ZenScript" ".*\.zs$"
comment "/*|*/"
icolor brightblue "\b(([1-9][0-9]+)|0+)\.[0-9]+d*\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b"
color brightyellow "\\.\\.|\+=|\+|-=|-|\\*=|\*|\\/=|\/|%=|%|\\|=|\||\|\\||&=|&&|&|\\^=|\\^|\\?|:|~=|~|<=|<|>=|>|==|=|!=|!"
color green ""[^"]*""
color green "'[^']*'"
color brightblue start="<" end=">"
color yellow "\s*import\s+"
color yellow "\<(zenClass\s+\w+)\>"
color yellow "\<(zenConstructor)\>"
color blue "\btrue\b|\bfalse\b|\bnull\b"
color yellow "\<(in|has|void|as|version|for|return|while|break|instanceof|if|else)\>"
color brightyellow "\<(any|bool|byte|short|int|long|float|double|string|void)\>"
color brightyellow "\.\."
color yellow ";"
color yellow "\<(var|val|static|global)\>"
color yellow "\<(function)\>"
color blue "\(|\)|\{|\}|\[|\]"
color brightgreen start="/\*" end="\*/"
color brightgreen "//.*"
color brightgreen "#.*"
color blue start="^#" end="\>"
## Trailing spaces
color ,green "[[:space:]]+$"