summaryrefslogtreecommitdiffstats
path: root/misc/syntax/povray.syntax
blob: 73ee702b8b46709547d828a0810461a6370ad40c (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
#
# POVRay - Persistence of Vision(tm) Ray Tracer syntax highlight
# // Mike Gorchak
#

context default lightgray

# Keywords
    keyword whole global_settings yellow
    keyword whole radiosity yellow
    keyword whole light_source yellow
    keyword whole fog yellow
    keyword whole sphere yellow
    keyword whole camera yellow
    keyword whole plane yellow
    keyword whole union yellow
    keyword whole box yellow
    keyword whole cylinder yellow
    keyword whole torus yellow
    keyword whole difference yellow
    keyword whole intersection yellow
    keyword whole object yellow
    keyword whole photons yellow
    keyword whole material yellow
    keyword whole texture yellow
    keyword whole pigment yellow
    keyword whole pigment_pattern yellow
    keyword whole pigment_map yellow
    keyword whole finish yellow
    keyword whole interior yellow
    keyword whole merge yellow
    keyword whole warp yellow
    keyword whole color_map yellow
    keyword whole colour_map yellow
    keyword whole isosurface yellow
    keyword whole sky_sphere yellow
    keyword whole bounded_by yellow
    keyword whole clipped_by yellow
    keyword whole normal yellow
    keyword whole tiles yellow
    keyword whole height_field yellow
    keyword whole image_map yellow
    keyword whole looks_like yellow
    keyword whole quadric yellow
    keyword whole scattering yellow
    keyword whole text yellow
    keyword whole bump_map yellow
    keyword whole texture_map yellow
    keyword whole slope yellow
    keyword whole contained_by yellow
    keyword whole superellipsoid yellow
    keyword whole cone yellow
    keyword whole blob yellow
    keyword whole light_group yellow

# Constructions
    keyword whole #switch white
    keyword whole #break white
    keyword whole #case white
    keyword whole #end white
    keyword whole #declare white
    keyword whole #macro white
    keyword whole #local white
    keyword whole #while white
    keyword whole #ifndef white
    keyword whole #version white
    keyword whole #ifdef white
    keyword whole #debug white
    keyword whole #include white
    keyword whole #if white
    keyword whole function white
    keyword whole array white

# Predefined constants
    keyword whole on brightblue
    keyword whole off brightblue
    keyword whole true brightblue
    keyword whole false brightblue
    keyword whole no brightblue
    keyword whole yes brightblue

# Built-in functions
    keyword whole sqrt brightmagenta
    keyword whole mod brightmagenta
    keyword whole min brightmagenta
    keyword whole max brightmagenta
    keyword whole sin brightmagenta
    keyword whole cos brightmagenta
    keyword whole pow brightmagenta
    keyword whole abs brightmagenta
    keyword whole concat brightmagenta
    keyword whole str brightmagenta
    keyword whole rand brightmagenta
    keyword whole seed brightmagenta

# Arguments
    keyword whole assumed_gamma brightgreen
    keyword whole max_trace_level brightgreen
    keyword whole noise_generator brightgreen
    keyword whole number_of_waves brightgreen
    keyword whole fog_type brightgreen
    keyword whole fog_alt brightgreen
    keyword whole fog_offset brightgreen
    keyword whole color brightgreen
    keyword whole colour brightgreen
    keyword whole rgb brightgreen
    keyword whole rgbf brightgreen
    keyword whole rgbt brightgreen
    keyword whole distance brightgreen
    keyword whole pretrace_start brightgreen
    keyword whole pretrace_end brightgreen
    keyword whole count brightgreen
    keyword whole nearest_count brightgreen
    keyword whole error_bound brightgreen
    keyword whole recursion_limit brightgreen
    keyword whole low_error_factor brightgreen
    keyword whole gray_threshold brightgreen
    keyword whole minimum_reuse brightgreen
    keyword whole brightness brightgreen
    keyword whole adc_bailout brightgreen
    keyword whole normal brightgreen
    keyword whole diffuse brightgreen
    keyword whole ambient brightgreen
    keyword whole scale brightgreen
    keyword whole translate brightgreen
    keyword whole rotate brightgreen
    keyword whole red brightgreen
    keyword whole green brightgreen
    keyword whole blue brightgreen
    keyword whole spacing brightgreen
    keyword whole location brightgreen
    keyword whole direction brightgreen
    keyword whole sky brightgreen
    keyword whole up brightgreen
    keyword whole right brightgreen
    keyword whole look_at brightgreen
    keyword whole angle brightgreen
    keyword whole reflection brightgreen
    keyword whole refraction brightgreen
    keyword whole area_light brightgreen
    keyword whole jitter brightgreen
    keyword whole circular brightgreen
    keyword whole orient brightgreen
    keyword whole specular brightgreen
    keyword whole roughness brightgreen
    keyword whole conserve_energy brightgreen
    keyword whole fresnel brightgreen
    keyword whole ior brightgreen
    keyword whole fade_distance brightgreen
    keyword whole fade_power brightgreen
    keyword whole fade_color brightgreen
    keyword whole fade_colour brightgreen
    keyword whole agate brightgreen
    keyword whole turbulence brightgreen
    keyword whole octaves brightgreen
    keyword whole granite brightgreen
    keyword whole checker brightgreen
    keyword whole gradient brightgreen
    keyword whole caustics brightgreen
    keyword whole phong brightgreen
    keyword whole phong_size brightgreen
    keyword whole filter brightgreen
    keyword whole inverse brightgreen
    keyword whole onion brightgreen
    keyword whole frequency brightgreen
    keyword whole sine_wave brightgreen
    keyword whole marble brightgreen
    keyword whole lambda brightgreen
    keyword whole omega brightgreen
    keyword whole quilted brightgreen
    keyword whole control0 brightgreen
    keyword whole control1 brightgreen
    keyword whole wrinkles brightgreen
    keyword whole boxed brightgreen
    keyword whole repeat brightgreen
    keyword whole png brightgreen
    keyword whole water_level brightgreen
    keyword whole png brightgreen
    keyword whole quick_color brightgreen
    keyword whole quick_colour brightgreen
    keyword whole hollow brightgreen
    keyword whole waves brightgreen
    keyword whole bozo brightgreen
    keyword whole adaptive brightgreen
    keyword whole media brightgreen
    keyword whole media_interaction brightgreen
    keyword whole brilliance brightgreen
    keyword whole spotlight brightgreen
    keyword whole radius brightgreen
    keyword whole falloff brightgreen
    keyword whole point_at brightgreen
    keyword whole extinction brightgreen
    keyword whole emission brightgreen
    keyword whole method brightgreen
    keyword whole intervals brightgreen
    keyword whole samples brightgreen
    keyword whole target brightgreen
    keyword whole collect brightgreen
    keyword whole ttf brightgreen
    keyword whole metallic brightgreen
    keyword whole cylindrical brightgreen
    keyword whole dispersion brightgreen
    keyword whole dispersion_samples brightgreen
    keyword whole crand brightgreen
    keyword whole pot brightgreen
    keyword whole bump_size brightgreen
    keyword whole interpolate brightgreen
    keyword whole ripples brightgreen
    keyword whole brick brightgreen
    keyword whole aa_threshold brightgreen
    keyword whole aa_level brightgreen
    keyword whole no_shadow brightgreen
    keyword whole accuracy brightgreen
    keyword whole altitude brightgreen
    keyword whole max_gradient brightgreen
    keyword whole support_piece brightgreen
    keyword whole open brightgreen
    keyword whole support brightgreen
    keyword whole bezier_spline brightgreen
    keyword whole cubic_spline brightgreen
    keyword whole shadowless brightgreen
    keyword whole threshold brightgreen
    keyword whole global_lights brightgreen
    keyword whole absorption brightgreen

# Common symbols
    keyword // brown
    keyword /\* brown
    keyword \*/ brown
    keyword { brightcyan
    keyword } brightcyan
    keyword , brightcyan
    keyword . brightcyan
    keyword \* brightcyan
    keyword / brightcyan
    keyword \+ brightcyan
    keyword - brightcyan
    keyword = brightcyan
    keyword ( brightcyan
    keyword ) brightcyan
    keyword < brightcyan
    keyword > brightcyan
    keyword [ brightcyan
    keyword ] brightcyan
    keyword ; brightcyan

context exclusive /\* \*/ brown
    spellcheck

context exclusive // \n brown
    spellcheck

context " " green
    spellcheck