-
Notifications
You must be signed in to change notification settings - Fork 0
/
genie.nanorc
53 lines (36 loc) · 1.44 KB
/
genie.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
## Here is an example for Genie.
syntax "genie" "\.gs$"
# Namespace.
color magenta "\<(uses|namespace)\>"
# Data types.
color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>"
# Definitions.
color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>"
# Keywords.
color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>"
# Special variables.
color brightcyan "\<(self|super)\>"
# Null value.
color brightyellow "\<(null)\>"
# Boolean.
color yellow "\<(false|true)\>"
# Builtin functions.
color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>"
# Numbers.
color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?"
# Regular expression.
color brightgreen "/(\\.|[^/])*/"
# Double quoted string.
color brightblue ""(\\.|[^"])*""
# Single quoted string.
color brightblue "'(\\.|[^'])*'"
# Multiline string.
color blue start=""""" end="""""
# Line comment.
color yellow "(^|[[:space:]])//.*"
# Block comment.
color yellow start="^\s*/\*" end="\*/"
# Trailing whitespace.
color ,green "[[:space:]]+$"
# Spaces in front or rear of tabs.
color ,red " + +| + +"