blob: fd6d1328e9e3d79cc4483ce4353e7fb8137597db (
plain)
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
54
55
56
57
58
59
60
|
# Syntax highlighting rules for syntax highlighting rules
# Use \[\] at the end of keywords to suppress their special meaning
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.\\[]{}
context default
# Invalid combinations, not highlighted
keyword whole linestart\[\t\s\]whole
keyword whole linestart\[\t\s\]wholeleft
keyword whole linestart\[\t\s\]wholeright
# Combinations below are valid
keyword whole whole\[\t\s\]linestart brightcyan
keyword whole wholeleft\[\t\s\]linestart brightcyan
keyword whole wholeright\[\t\s\]linestart brightcyan
keyword whole whole\[\] brightcyan
keyword whole wholeleft\[\] brightcyan
keyword whole wholeright\[\] brightcyan
keyword whole linestart\[\] brightcyan
keyword whole wholechars\[\t\s\]left brightcyan
keyword whole wholechars\[\t\s\]right brightcyan
keyword whole wholechars\[\] brightcyan
keyword whole define\[\] brightcyan
keyword whole spellcheck\[\] yellow
keyword whole keyword\[\] yellow
keyword whole context\[\t\s\]exclusive brightred
keyword whole context\[\t\s\]default brightred
keyword whole context\[\] brightred
keyword whole caseinsensitive\[\] brightred
keyword whole linestart file\[\] brightgreen
keyword whole linestart include\[\] brightred
keyword whole black black blue
keyword whole red red
keyword whole green green
keyword whole brown brown
keyword whole blue blue black
keyword whole magenta magenta
keyword whole cyan cyan
keyword whole lightgray lightgray
keyword whole gray gray black
keyword whole brightred brightred
keyword whole brightgreen brightgreen
keyword whole yellow yellow
keyword whole brightblue brightblue black
keyword whole brightmagenta brightmagenta
keyword whole brightcyan brightcyan
keyword whole white white
context linestart # \n brown
spellcheck
# Ideally we would have defined comments with "context linestart \[\s\]# ...",
# but contexts can't start with a character class. So we define comments twice.
context linestart \s\[\s\]# \n brown
spellcheck
|