summaryrefslogtreecommitdiffstats
path: root/misc/syntax/yxx.syntax
blob: da81945c6357a16c34398153d885b65437392b70 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
context default
    keyword whole auto yellow
    keyword whole break yellow
    keyword whole case yellow
    keyword whole char yellow
    keyword whole const yellow
    keyword whole continue yellow
    keyword whole default yellow
    keyword whole do yellow
    keyword whole double yellow
    keyword whole else yellow
    keyword whole enum yellow
    keyword whole extern yellow
    keyword whole float yellow
    keyword whole for yellow
    keyword whole goto yellow
    keyword whole if yellow
    keyword whole int yellow
    keyword whole long yellow
    keyword whole register yellow
    keyword whole return yellow
    keyword whole short yellow
    keyword whole signed yellow
    keyword whole sizeof yellow
    keyword whole static yellow
    keyword whole struct yellow
    keyword whole switch yellow
    keyword whole typedef yellow
    keyword whole union yellow
    keyword whole unsigned yellow
    keyword whole void yellow
    keyword whole volatile yellow
    keyword whole while yellow
    keyword whole asm yellow
    keyword whole catch yellow
    keyword whole class yellow
    keyword whole friend yellow
    keyword whole delete yellow
    keyword whole inline yellow
    keyword whole new yellow
    keyword whole operator yellow
    keyword whole private yellow
    keyword whole protected yellow
    keyword whole public yellow
    keyword whole this yellow
    keyword whole throw yellow
    keyword whole template yellow
    keyword whole try yellow
    keyword whole virtual yellow
    keyword whole bool yellow
    keyword whole const_cast yellow
    keyword whole dynamic_cast yellow
    keyword whole explicit yellow
    keyword whole false yellow
    keyword whole mutable yellow
    keyword whole namespace yellow
    keyword whole reinterpret_cast yellow
    keyword whole static_cast yellow
    keyword whole true yellow
    keyword whole typeid yellow
    keyword whole typename yellow
    keyword whole using yellow
    keyword whole wchar_t yellow
    keyword whole ... yellow
    keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta

    keyword whole accept yellow
    keyword whole code yellow
    keyword whole debug yellow
    keyword whole defines yellow
    keyword whole destructor yellow
    keyword whole dprec yellow
    keyword whole end yellow
    keyword whole error yellow
    keyword whole error-verbose yellow
    keyword whole expect yellow
    keyword whole file-prefix yellow
    keyword whole glr-parser yellow
    keyword whole initial-action yellow
    keyword whole language yellow
    keyword whole left yellow
    keyword whole lex-param yellow
    keyword whole locations yellow
    keyword whole merge yellow
    keyword whole name-prefix yellow
    keyword whole node yellow
    keyword whole nonassoc yellow
    keyword whole no-parser yellow
    keyword whole no-lines yellow
    keyword whole output yellow
    keyword whole parse-param yellow
    keyword whole prec yellow
    keyword whole pure-parser yellow
    keyword whole require yellow
    keyword whole right yellow
    keyword whole skeleton yellow
    keyword whole start yellow
    keyword whole token yellow
    keyword whole token-table yellow
    keyword whole type yellow
    keyword whole undefined yellow
    keyword whole union yellow
    keyword whole verbose yellow
    keyword whole yacc yellow

    keyword whole YYABORT brightred
    keyword whole YYACCEPT brightred
    keyword whole YYBACKUP brightred
    keyword whole YYDEBUG brightred
    keyword whole YYERROR brightred
    keyword whole YYERROR_VERBOSE brightred
    keyword whole YYINITDEPTH brightred
    keyword whole YYLEX_PARAM brightred
    keyword whole YYLTYPE brightred
    keyword whole YYMAXDEPTH brightred
    keyword whole YYPARSE_PARAM brightred
    keyword whole YYRECOVERING brightred
    keyword whole YYSTACK_USE_ALLOCA brightred
    keyword whole YYSTYPE brightred

    keyword whole yychar brightmagenta
    keyword whole yyclearin brightmagenta
    keyword whole yydebug brightmagenta
    keyword whole yyerrok brightmagenta
    keyword whole yyerror brightmagenta
    keyword whole yylex brightmagenta
    keyword whole yylloc brightmagenta
    keyword whole yylval brightmagenta
    keyword whole yynerrs brightmagenta
    keyword whole yyparse brightmagenta
    keyword whole yypstate_delete brightmagenta
    keyword whole yypstate_new brightmagenta
    keyword whole yypull_parse brightmagenta
    keyword whole yypush_parse brightmagenta
    keyword whole yywrap brightmagenta

    keyword /\* brown
    keyword \*/ brown
    keyword // brown

    keyword '\\\{"abtnvfr\}' brightgreen
    keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen
    keyword '\\'' brightgreen
    keyword '\\\\' brightgreen
    keyword '\\0' brightgreen
    keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~������������������������������������������������������������������������������������������������\}' brightgreen

    keyword > yellow
    keyword < yellow
    keyword \+ yellow
    keyword - yellow
    keyword \* yellow
    keyword / yellow
    keyword % yellow
    keyword = yellow
    keyword != yellow
    keyword == yellow
    keyword { brightcyan
    keyword } brightcyan
    keyword ( brightcyan
    keyword ) brightcyan
    keyword [ brightcyan
    keyword ] brightcyan
    keyword , brightcyan
    keyword : brightcyan
    keyword ? brightcyan
    keyword ; brightmagenta

    keyword wholeright %{ brightcyan
    keyword wholeright %} brightcyan
    keyword wholeright %% brightcyan
    keyword % yellow
    keyword $$ yellow
    keyword $\[0123456789\] yellow
    keyword @$ yellow
    keyword @\[0123456789\] yellow

context exclusive /\* \*/ brown
    spellcheck

context exclusive // \n brown
    spellcheck

context linestart # \n brightred
    keyword \\\n yellow
    keyword /\**\*/ brown
    keyword //*\n brown
    keyword "+" red
    keyword <+> red

context " " green
    spellcheck
    keyword \\" brightgreen
    keyword %% brightgreen
    keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen
    keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen
    keyword %\[hl\]n brightgreen
    keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen
    keyword %[*] brightgreen
    keyword %c brightgreen
    keyword %p brightgreen
    keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen
    keyword \\\\ brightgreen
    keyword \\' brightgreen
    keyword \\\{abtnvfr\} brightgreen