summaryrefslogtreecommitdiffstats
path: root/misc/syntax/nroff.syntax
blob: 3db8f43371b2aa11dff92a12d20660ee5c3b65ab (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
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-+="'[]{}()

context default
    spellcheck
    keyword \\fP brightgreen
    keyword \\fR brightgreen
    keyword \\fB brightgreen
    keyword \\fI brightgreen
    keyword whole linestart .AS cyan
    keyword whole linestart .Ar cyan
    keyword whole linestart .At cyan
    keyword whole linestart .BE cyan
    keyword whole linestart .BH cyan
    keyword whole linestart .BI cyan
    keyword whole linestart .BR cyan
    keyword whole linestart .BS cyan
    keyword whole linestart .Bd cyan
    keyword whole linestart .Bk cyan
    keyword whole linestart .Bl cyan
    keyword whole linestart .Bu cyan
    keyword whole linestart .Bx cyan
    keyword whole linestart .CE cyan
    keyword whole linestart .CM cyan
    keyword whole linestart .CS cyan
    keyword whole linestart .CT cyan
    keyword whole linestart .CW cyan
    keyword whole linestart .Cm cyan
    keyword whole linestart .Co cyan
    keyword whole linestart .DA cyan
    keyword whole linestart .DE cyan
    keyword whole linestart .DS cyan
    keyword whole linestart .DT cyan
    keyword whole linestart .Dd cyan
    keyword whole linestart .De cyan
    keyword whole linestart .Dl cyan
    keyword whole linestart .Dq cyan
    keyword whole linestart .Ds cyan
    keyword whole linestart .Dt cyan
    keyword whole linestart .Dv cyan
    keyword whole linestart .EE cyan
    keyword whole linestart .EN cyan
    keyword whole linestart .EQ cyan
    keyword whole linestart .EX cyan
    keyword whole linestart .Ed cyan
    keyword whole linestart .Ee cyan
    keyword whole linestart .Ek cyan
    keyword whole linestart .El cyan
    keyword whole linestart .Em cyan
    keyword whole linestart .En cyan
    keyword whole linestart .Ev cyan
    keyword whole linestart .Ex cyan
    keyword whole linestart .FI cyan
    keyword whole linestart .FL cyan
    keyword whole linestart .FN cyan
    keyword whole linestart .FT cyan
    keyword whole linestart .Fi cyan
    keyword whole linestart .Fl cyan
    keyword whole linestart .Fn cyan
    keyword whole linestart .HP cyan
    keyword whole linestart .HS cyan
    keyword whole linestart .Hh cyan
    keyword whole linestart .Hi cyan
    keyword whole linestart .IB cyan
    keyword whole linestart .IP cyan
    keyword whole linestart .IR cyan
    keyword whole linestart .IX cyan
    keyword whole linestart .Ic cyan
    keyword whole linestart .Id cyan
    keyword whole linestart .Ip cyan
    keyword whole linestart .It cyan
    keyword whole linestart .LI cyan
    keyword whole linestart .LO cyan
    keyword whole linestart .LP cyan
    keyword whole linestart .LR cyan
    keyword whole linestart .Li cyan
    keyword whole linestart .MF cyan
    keyword whole linestart .ML cyan
    keyword whole linestart .MU cyan
    keyword whole linestart .MV cyan
    keyword whole linestart .NF cyan
    keyword whole linestart .Nd cyan
    keyword whole linestart .Nm cyan
    keyword whole linestart .No cyan
    keyword whole linestart .OP cyan
    keyword whole linestart .Oc cyan
    keyword whole linestart .Oo cyan
    keyword whole linestart .Op cyan
    keyword whole linestart .Os cyan
    keyword whole linestart .PD cyan
    keyword whole linestart .PN cyan
    keyword whole linestart .PP cyan
    keyword whole linestart .PU cyan
    keyword whole linestart .Pa cyan
    keyword whole linestart .Pf cyan
    keyword whole linestart .Pp cyan
    keyword whole linestart .Pq cyan
    keyword whole linestart .Pr cyan
    keyword whole linestart .Ps cyan
    keyword whole linestart .Ql cyan
    keyword whole linestart .RB cyan
    keyword whole linestart .RE cyan
    keyword whole linestart .RI cyan
    keyword whole linestart .RS cyan
    keyword whole linestart .RT cyan
    keyword whole linestart .Re cyan
    keyword whole linestart .Rs cyan
    keyword whole linestart .SB cyan
    keyword whole linestart .SH cyan
    keyword whole linestart .SM cyan
    keyword whole linestart .SP cyan
    keyword whole linestart .SS cyan
    keyword whole linestart .Sa cyan
    keyword whole linestart .Sh cyan
    keyword whole linestart .Sm cyan
    keyword whole linestart .Sp cyan
    keyword whole linestart .Sq cyan
    keyword whole linestart .Ss cyan
    keyword whole linestart .St cyan
    keyword whole linestart .Sx cyan
    keyword whole linestart .Sy cyan
    keyword whole linestart .TE cyan
    keyword whole linestart .TH cyan
    keyword whole linestart .TP cyan
    keyword whole linestart .TQ cyan
    keyword whole linestart .TS cyan
    keyword whole linestart .Tn cyan
    keyword whole linestart .Tp cyan
    keyword whole linestart .UC cyan
    keyword whole linestart .Uh cyan
    keyword whole linestart .Ux cyan
    keyword whole linestart .VE cyan
    keyword whole linestart .VS cyan
    keyword whole linestart .Va cyan
    keyword whole linestart .Vb cyan
    keyword whole linestart .Ve cyan
    keyword whole linestart .Xc cyan
    keyword whole linestart .Xe cyan
    keyword whole linestart .Xr cyan
    keyword whole linestart .YN cyan
    keyword whole linestart .ad cyan
    keyword whole linestart .am cyan
    keyword whole linestart .bd cyan
    keyword whole linestart .bp cyan
    keyword whole linestart .br cyan
    keyword whole linestart .ce cyan
    keyword whole linestart .cs cyan
    keyword whole linestart .de cyan
    keyword whole linestart .ds cyan
    keyword whole linestart .ec cyan
    keyword whole linestart .eh cyan
    keyword whole linestart .el cyan
    keyword whole linestart .eo cyan
    keyword whole linestart .ev cyan
    keyword whole linestart .fc cyan
    keyword whole linestart .fi cyan
    keyword whole linestart .ft cyan
    keyword whole linestart .hy cyan
    keyword whole linestart .iX cyan
    keyword whole linestart .ie cyan
    keyword whole linestart .if cyan
    keyword whole linestart .ig cyan
    keyword whole linestart .in cyan
    keyword whole linestart .ll cyan
    keyword whole linestart .lp cyan
    keyword whole linestart .ls cyan
    keyword whole linestart .mk cyan
    keyword whole linestart .na cyan
    keyword whole linestart .ne cyan
    keyword whole linestart .nf cyan
    keyword whole linestart .nh cyan
    keyword whole linestart .nr cyan
    keyword whole linestart .ns cyan
    keyword whole linestart .oh cyan
    keyword whole linestart .ps cyan
    keyword whole linestart .re cyan
    keyword whole linestart .rm cyan
    keyword whole linestart .rn cyan
    keyword whole linestart .rr cyan
    keyword whole linestart .so cyan
    keyword whole linestart .sp cyan
    keyword whole linestart .ss cyan
    keyword whole linestart .ta cyan
    keyword whole linestart .ti cyan
    keyword whole linestart .tm cyan
    keyword whole linestart .tr cyan
    keyword whole linestart .ul cyan
    keyword whole linestart .vs cyan
    keyword whole linestart .zZ cyan
    keyword whole linestart .B cyan
    keyword whole linestart .F cyan
    keyword whole linestart .I cyan
    keyword whole linestart .R cyan
    keyword whole linestart .P cyan
    keyword whole linestart .L cyan
    keyword whole linestart .V cyan
    keyword whole linestart .F cyan
    keyword whole linestart .T cyan
    keyword whole linestart .X cyan
    keyword whole linestart .Y cyan
    keyword whole linestart .b cyan
    keyword whole linestart .l cyan
    keyword whole linestart .i cyan

context exclusive linestart .SH \n white
    keyword \\fB*\\fP yellow
    keyword \\fI*\\fP brightred
    spellcheck
context exclusive linestart .TH \n white
    keyword \\fB*\\fP yellow
    keyword \\fI*\\fP brightred
    spellcheck
context exclusive linestart .B \n yellow
    keyword \\fI*\\fP brightred
    spellcheck
context exclusive linestart .I \n brightred
    keyword \\fB*\\fP yellow
    spellcheck
context exclusive whole linestart .nf linestart .fi green
    keyword \\fB*\\fP yellow
    keyword \\fI*\\fP brightred
    spellcheck

# font changes should end in a \fP
context exclusive \\fB \\f\{PR\} yellow
    spellcheck
context exclusive \\fI \\f\{PR\} brightred
    spellcheck
context linestart .\\" \n brown
    spellcheck