summaryrefslogtreecommitdiffstats
path: root/misc/syntax/latex.syntax
blob: 862c42ae7a8d6e760974daac176bb6f2da1706f4 (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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
context default
wholechars left \\
wholechars right abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

    spellcheck

    keyword whole {\\it brightgreen
    keyword } brightgreen
    keyword whole {\\bf brightgreen
    keyword } brightgreen
    keyword { brightgreen

    keyword \\$ yellow

# type style
    keyword whole \\tiny yellow
    keyword whole \\scriptsize yellow
    keyword whole \\footnotesize yellow
    keyword whole \\small yellow
    keyword whole \\normalsize yellow
    keyword whole \\large yellow
    keyword whole \\Large yellow
    keyword whole \\LARGE yellow
    keyword whole \\huge yellow
    keyword whole \\Huge yellow

# accents and symbols
    keyword whole \\\{`'^"~=.uvHtcdb\}{\{aeiouAEIOU\}} yellow
    keyword whole \\dag yellow
    keyword whole \\ddag yellow
    keyword whole \\S yellow
    keyword whole \\P yellow
    keyword whole \\copyright yellow
    keyword whole \\pounds yellow

# sectioning and table of contents
    keyword whole \\part[*]{*} brightred
    keyword whole \\part{*} brightred
    keyword whole \\part\*{*} brightred
    keyword whole \\chapter[*]{*} brightred
    keyword whole \\chapter{*} brightred
    keyword whole \\chapter\*{*} brightred
    keyword whole \\section[*]{*} brightred
    keyword whole \\section{*} brightred
    keyword whole \\section\*{*} brightred
    keyword whole \\subsection[*]{*} brightred
    keyword whole \\subsection{*} brightred
    keyword whole \\subsection\*{*} brightred
    keyword whole \\subsubsection[*]{*} brightred
    keyword whole \\subsubsection{*} brightred
    keyword whole \\subsubsection\*{*} brightred
    keyword whole \\paragraph[*]{*} brightred
    keyword whole \\paragraph{*} brightred
    keyword whole \\paragraph\*{*} brightred
    keyword whole \\subparagraph[*]{*} brightred
    keyword whole \\subparagraph{*} brightred
    keyword whole \\subparagraph\*{*} brightred

    keyword whole \\appendix brightred
    keyword whole \\tableofcontents brightred

# misc
    keyword whole \\item[*] yellow
    keyword whole \\item yellow
    keyword whole \\\\ yellow
    keyword \\\s yellow black
    keyword \\@ yellow black
    keyword %% yellow
    keyword \\% yellow

# docuement and page styles
    keyword whole \\documentstyle[*]{*} yellow
    keyword whole \\documentstyle{*} yellow
    keyword whole \\pagestyle{*} yellow

# cross references
    keyword whole \\label{*} yellow
    keyword whole \\ref{*} yellow

# bibliography and citations
    keyword whole \\bibliography{*} yellow
    keyword whole \\bibitem[*]{*} yellow
    keyword whole \\bibitem{*} yellow
    keyword whole \\cite[*]{*} yellow
    keyword whole \\cite{*} yellow

# splitting the input
    keyword whole \\input{*} yellow
    keyword whole \\include{*} yellow
    keyword whole \\includeonly{*} yellow

# line breaking
    keyword whole \\linebreak[\[01234\]] yellow
    keyword whole \\nolinebreak[\[01234\]] yellow
    keyword whole \\linebreak yellow
    keyword whole \\nolinebreak yellow
    keyword whole \\[+] yellow
    keyword whole \\- yellow
    keyword whole \\sloppy yellow

# page breaking
    keyword whole \\pagebreak[\[01234\]] yellow
    keyword whole \\nopagebreak[\[01234\]] yellow
    keyword whole \\pagebreak yellow
    keyword whole \\nopagebreak yellow
    keyword whole \\samepage yellow
    keyword whole \\newpage yellow
    keyword whole \\clearpage yellow

# definitions
    keyword \\newcommand{*}[*] cyan
    keyword \\newcommand{*} cyan
    keyword \\newenvironment{*}[*]{*} cyan
    keyword \\newenvironment{*}{*} cyan

# boxes

# begins and ends
    keyword \\begin{document} brightred
    keyword \\begin{equation} brightred
    keyword \\begin{displaymath} brightred
    keyword \\begin{eqnarray} brightred
    keyword \\begin{quote} brightred
    keyword \\begin{quotation} brightred
    keyword \\begin{center} brightred
    keyword \\begin{verse} brightred
    keyword \\begin{verbatim} brightred
    keyword \\begin{itemize} brightred
    keyword \\begin{enumerate} brightred
    keyword \\begin{description} brightred
    keyword \\begin{list} brightred
    keyword \\begin{array} brightred
    keyword \\begin{tabular} brightred
    keyword \\begin{thebibliography}{*} brightred
    keyword \\begin{sloppypar} brightred

    keyword \\end{document} brightred
    keyword \\end{equation} brightred
    keyword \\end{displaymath} brightred
    keyword \\end{eqnarray} brightred
    keyword \\end{quote} brightred
    keyword \\end{quotation} brightred
    keyword \\end{center} brightred
    keyword \\end{verse} brightred
    keyword \\end{verbatim} brightred
    keyword \\end{itemize} brightred
    keyword \\end{enumerate} brightred
    keyword \\end{description} brightred
    keyword \\end{list} brightred
    keyword \\end{array} brightred
    keyword \\end{tabular} brightred
    keyword \\end{thebibliography}{*} brightred
    keyword \\end{sloppypar} brightred

    keyword \\begin{*} brightcyan
    keyword \\end{*} brightcyan

    keyword \\theorem{*}{*} yellow

# if all else fails
    keyword whole \\begin white
    keyword whole \\+[*][*]{*}{*}{*} brightcyan
    keyword whole \\+[*][*]{*}{*} brightcyan
    keyword whole \\+[*]{*}{*}{*} brightcyan
    keyword whole \\+[*]{*}{*} brightcyan
    keyword whole \\+[*]{*} brightcyan
    keyword whole \\+{*}{*}{*}{*} brightcyan
    keyword whole \\+{*}{*}{*} brightcyan
    keyword whole \\+{*}{*} brightcyan
    keyword whole \\+{*} brightcyan
    keyword whole \\+ brightcyan

context exclusive whole {\\bf } brightmagenta
    keyword whole \\tiny yellow
    keyword whole \\scriptsize yellow
    keyword whole \\footnotesize yellow
    keyword whole \\small yellow
    keyword whole \\normalsize yellow
    keyword whole \\large yellow
    keyword whole \\Large yellow
    keyword whole \\LARGE yellow
    keyword whole \\huge yellow
    keyword whole \\Huge yellow
    keyword whole \\\{`'^"~=.uvHtcdb\}{\{aeiouAEIOU\}} yellow
    keyword whole \\dag yellow
    keyword whole \\ddag yellow
    keyword whole \\S yellow
    keyword whole \\P yellow
    keyword whole \\copyright yellow
    keyword whole \\pounds yellow
    keyword whole \\\\ yellow
    keyword \\\s yellow black
    keyword \\@ yellow black
    keyword %% yellow
    keyword whole \\label{*} yellow
    keyword whole \\ref{*} yellow
    keyword whole \\bibitem[*]{*} yellow
    keyword whole \\bibitem{*} yellow
    keyword whole \\cite[*]{*} yellow
    keyword whole \\cite{*} yellow
    keyword whole \\[+] yellow
    keyword whole \\- yellow
    keyword whole \\sloppy yellow
    keyword whole \\+[*][*]{*}{*}{*} brightcyan
    keyword whole \\+[*][*]{*}{*} brightcyan
    keyword whole \\+[*]{*}{*}{*} brightcyan
    keyword whole \\+[*]{*}{*} brightcyan
    keyword whole \\+[*]{*} brightcyan
    keyword whole \\+{*}{*}{*}{*} brightcyan
    keyword whole \\+{*}{*}{*} brightcyan
    keyword whole \\+{*}{*} brightcyan
    keyword whole \\+{*} brightcyan
    keyword whole \\+ brightcyan

context exclusive whole {\\it } magenta
    keyword whole \\tiny yellow
    keyword whole \\scriptsize yellow
    keyword whole \\footnotesize yellow
    keyword whole \\small yellow
    keyword whole \\normalsize yellow
    keyword whole \\large yellow
    keyword whole \\Large yellow
    keyword whole \\LARGE yellow
    keyword whole \\huge yellow
    keyword whole \\Huge yellow
    keyword whole \\\{`'^"~=.uvHtcdb\}{\{aeiouAEIOU\}} yellow
    keyword whole \\dag yellow
    keyword whole \\ddag yellow
    keyword whole \\S yellow
    keyword whole \\P yellow
    keyword whole \\copyright yellow
    keyword whole \\pounds yellow
    keyword whole \\\\ yellow
    keyword \\\s yellow black
    keyword \\@ yellow black
    keyword %% yellow
    keyword whole \\label{*} yellow
    keyword whole \\ref{*} yellow
    keyword whole \\bibitem[*]{*} yellow
    keyword whole \\bibitem{*} yellow
    keyword whole \\cite[*]{*} yellow
    keyword whole \\cite{*} yellow
    keyword whole \\[+] yellow
    keyword whole \\- yellow
    keyword whole \\sloppy yellow
    keyword whole \\+[*][*]{*}{*}{*} brightcyan
    keyword whole \\+[*][*]{*}{*} brightcyan
    keyword whole \\+[*]{*}{*}{*} brightcyan
    keyword whole \\+[*]{*}{*} brightcyan
    keyword whole \\+[*]{*} brightcyan
    keyword whole \\+{*}{*}{*}{*} brightcyan
    keyword whole \\+{*}{*}{*} brightcyan
    keyword whole \\+{*}{*} brightcyan
    keyword whole \\+{*} brightcyan
    keyword whole \\+ brightcyan



context \\pagenumbering{ } yellow
    keyword arabic brightcyan
    keyword roman brightcyan
    keyword alph brightcyan
    keyword Roman brightcyan
    keyword Alph brightcyan

context % \n brown

context exclusive \\begin{verbatim} \\end{verbatim} white

# mathematical formulas
context $ $ brightgreen
context exclusive \\begin{equation} \\end{equation} brightgreen
context exclusive \\begin{displaymath} \\end{displaymath} brightgreen
context exclusive \\begin{eqnarray} \\end{eqnarray} brightgreen