forked from sergiomajluf/p5.js-sublime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
P5.tmLanguage
302 lines (302 loc) · 10.6 KB
/
P5.tmLanguage
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>js</string>
</array>
<key>foldingStartMarker</key>
<string>(\{\s*(//.*)?$|^\s*// \{\{\{)</string>
<key>foldingStopMarker</key>
<string>^\s*(\}|// \}\}\}$)</string>
<key>name</key>
<string>P5</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>source.c++</string>
</dict>
<dict>
<key>match</key>
<string>\b(abs|acos|alpha|ambient|ambientLight|append|applyMatrix|arc|arrayCopy|asin|atan2|atan|background|beginCamera|beginContour|beginRaw|beginRecord|beginShape|bezier|bezierDetail|bezierPoint|bezierTangent|bezierVertex|binary|blend|blendMode|blue|boolean|box|brightness|byte|cache|camera|ceil|char|charAt|clear|color|colorMode|concat|constrain|contract|copy|cos|createFont|createGraphics|createImage|createInput|createOutput|createReader|createShape|createWriter|cursor|curve|curveDetail|curvePoint|curveSegments|curveTangent|curveTightness|curveVertex|day|degrees|delay|directionalLight|dist|duration|ellipse|ellipseMode|emissive|endCamera|endContour|endRaw|endRecord|endShape|equals|exit|exp|expand|fill|filter|float|floor|framerate|frustum|function|get|green|hex|hint|hour|hue|image|imageMode|indexOf|int|join|keyPressed|keyReleased|keyTyped|length|lerp|lerpColor|lightFalloff|lightSpecular|lights|line|link|list|loadBytes|loadFont|loadImage|loadJSONArray|loadJSONObject|loadPixels|loadShader|loadShape|loadSound|loadStrings|loadTable|loadXML|log|lookat|loop|mag|map|mask|match|matchAll|max|millis|min|minute|modelX|modelY|modelZ|month|mouseClicked|mouseDragged|mouseMoved|mousePressed|mouseReleased|mouseWheel|nf|nfc|nfp|nfs|noCursor|noFill|noLights|noLoop|noSmooth|noStroke|noTint|noise|noiseDetail|noiseSeed|norm|normal|open|openStream|ortho|param|parseXML|pause|perspective|play|point|pointLight|popMatrix|popStyle|pow|print|printArray|printCamera|printMatrix|printProjection|println|pushMatrix|pushStyle|quad|quadraticVertex|radians|random|randomGaussian|randomSeed|rect|rectMode|red|redraw|requestImage|resetMatrix|resetShader|reverse|rotate|rotateX|rotateY|rotateZ|round|saturation|save|saveBytes|saveFrame|saveJSONArray|saveJSONObject|saveStream|saveStrings|saveTable|saveXML|scale|screenX|screenY|screenZ|second|selectFolder|selectInput|selectOutput|set|shader|shape|shapeMode|shearX|shearY|shininess|shorten|sin|size|smooth|sort|specular|sphere|sphereDetail|splice|split|splitTokens|spotLight|sq|sqrt|status|stop|str|stroke|strokeCap|strokeJoin|strokeWeight|subset|substring|switch|tan|text|textAlign|textAscent|textDescent|textFont|textLeading|textMode|textSize|textWidth|texture|textureMode|textureWrap|time|tint|toLowerCase|toUpperCase|translate|triangle|trim|unHint|unbinary|unhex|updatePixels|var|vertex|volume|year|draw|setup)\b</string>
<key>name</key>
<string>support.function.java-p5</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.java-p5</string>
</dict>
</dict>
<key>match</key>
<string>/\*\*/</string>
<key>name</key>
<string>comment.block.empty.java-p5</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.java-p5</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.java-p5</string>
</dict>
<dict>
<key>begin</key>
<string>/\*\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.java-p5</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.documentation.java-p5</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.documentation.params.java-p5</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.other.documentation.value.java-p5</string>
</dict>
</dict>
<key>match</key>
<string>\*\s*@(param)\s*([a-z][a-zA-Z0-9_]+)\s*</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.embedded-docs.params.java-p5</string>
</dict>
</dict>
<key>match</key>
<string>\*\s*@([a-zA-Z0-9_-]+)\s*</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.java-p5</string>
</dict>
</dict>
<key>match</key>
<string>(//).*$\n?</string>
<key>name</key>
<string>comment.line.double-slash.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(class|interface|void|color|string|byte|short|char|int|long|float|double|boolean|[A-Z][A-Za-z0-9]+)\b</string>
<key>name</key>
<string>storage.type.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(private|protected|public)\b</string>
<key>name</key>
<string>storage.modifier.access-control.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(abstract|final|native|static|transient|synchronized|volatile|strictfp|extends|implements)\b</string>
<key>name</key>
<string>storage.modifier.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(try|catch|finally|throw)\b</string>
<key>name</key>
<string>keyword.control.catch-exception.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(return|break|case|continue|default|do|while|for|switch|if|else)\b</string>
<key>name</key>
<string>keyword.control.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(import|new|package|throws)\b</string>
<key>name</key>
<string>keyword.other.class-fns.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(instanceof)\b</string>
<key>name</key>
<string>keyword.operator.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(false|null|true)\b</string>
<key>name</key>
<string>constant.language.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(displayHeight|displayWidth|focused|frameCount|frameRate|height|key|keyCode|keyPressed|mouseButton|mousePressed|mouseX|mouseY|online|pixels|pmouseX|pmouseY|screen|width)\b</string>
<key>name</key>
<string>constant.other.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(ADD|ALIGN_CENTER|ALIGN_LEFT|ALIGN_RIGHT|ALPHA|ALPHA_MASK|ALT|AMBIENT|ARGB|ARROW|BACKSPACE|BEVEL|BLEND|BLUE_MASK|BLUR|CENTER|CENTER_RADIUS|CHATTER|CODED|COMPLAINT|COMPONENT|COMPOSITE|CONCAVE_POLYGON|CONTROL|CONVEX_POLYGON|CORNER|CORNERS|CROSS|CUSTOM|DARKEST|DEGREES|DEG_TO_RAD|DELETE|DIFFERENCE|DIFFUSE|DISABLED|DISABLE_TEXT_SMOOTH|DOWN|ENTER|EPSILON|ESC|GIF|GREEN_MASK|GREY|HALF|HALF_PI|HAND|HARD_LIGHT|HSB|IMAGE|INVERT|JAVA2D|JPEG|LEFT|LIGHTEST|LINES|LINE_LOOP|LINE_STRIP|MAX_FLOAT|MITER|MODEL|MOVE|MULTIPLY|NORMALIZED|NO_DEPTH_TEST|NTSC|ONE|OPAQUE|OPENGL|ORTHOGRAPHIC|OVERLAY|P2D|P3D|PAL|PERSPECTIVE|PI|PIXEL_CENTER|POINTS|POLYGON|POSTERIZE|PROBLEM|PROJECT|QUADS|QUAD_STRIP|QUARTER_PI|RADIANS|RAD_TO_DEG|RED_MASK|REPLACE|RETURN|RGB|RIGHT|ROUND|SCREEN|SECAM|SHIFT|SOFT_LIGHT|SPECULAR|SQUARE|SUBTRACT|SVIDEO|TAB|TARGA|TEXT|TFF|THIRD_PI|THRESHOLD|TIFF|TRIANGLES|TRIANGLE_FAN|TRIANGLE_STRIP|TUNER|TAU|TWO|TWO_PI|UP|WAIT|WHITESPACE)\b</string>
<key>name</key>
<string>support.constant.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(Array|Character|FloatDict|FloatList|IntDict|IntList|Integer|JSONArray|JSONObject|Math|Object|PFont|PGraphics|PImage|PShader|PShape|PSound|PVector|StringBuffer|StringDict|StringList|Table|TableRow|Thread|XML)\b</string>
<key>name</key>
<string>support.class.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b(this|super)\b</string>
<key>name</key>
<string>variable.language.java-p5</string>
</dict>
<dict>
<key>match</key>
<string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)([LlFfUuDd]|UL|ul)?\b</string>
<key>name</key>
<string>constant.numeric.java-p5</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.java-p5</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.java-p5</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.java-p5</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.java-p5</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>'</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.java-p5</string>
</dict>
</dict>
<key>end</key>
<string>'</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.java-p5</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.single.java-p5</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.java-p5</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.type.class.java-p5</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>entity.name.type.class.java-p5</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.extends.java-p5</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>entity.other.inherited-class.java-p5</string>
</dict>
</dict>
<key>match</key>
<string>\b(class)\s+([a-zA-Z_](?:\w|\.)*)(?:\s+(extends)\s+([a-zA-Z_](?:\w|\.)*))?</string>
<key>name</key>
<string>meta.class.java-p5</string>
</dict>
<dict>
<key>include</key>
<string>source.java</string>
</dict>
</array>
<key>scopeName</key>
<string>source.js</string>
<key>uuid</key>
<string>9b18d76c-e1c4-4c77-aed7-8dc2be6ca3fb</string>
</dict>
</plist>