github-linguist 4.8.5 → 4.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/{source.sas_log.json → source.SASLog.json} +5 -6
  3. data/grammars/source.ahk.json +81 -57
  4. data/grammars/source.assembly.json +1 -1
  5. data/grammars/source.bro.json +4 -4
  6. data/grammars/source.clojure.json +32 -8
  7. data/grammars/source.coq.json +1 -1
  8. data/grammars/source.crystal.json +21 -6
  9. data/grammars/source.csound-document.json +71 -0
  10. data/grammars/source.csound-score.json +65 -0
  11. data/grammars/source.csound.json +494 -0
  12. data/grammars/source.elm.json +27 -2
  13. data/grammars/source.fsharp.json +1 -1
  14. data/grammars/source.glsl.json +96 -6
  15. data/grammars/source.js.jsx.json +664 -524
  16. data/grammars/source.nu.json +526 -0
  17. data/grammars/source.pawn.json +8 -109
  18. data/grammars/source.pony.json +1 -1
  19. data/grammars/source.python.json +4 -4
  20. data/grammars/source.regexp.babel.json +1 -1
  21. data/grammars/source.shell.json +4 -1
  22. data/grammars/source.swift.json +2 -2
  23. data/grammars/source.wavefront.mtl.json +1177 -0
  24. data/grammars/source.wavefront.obj.json +1344 -0
  25. data/grammars/text.html.creole.json +329 -0
  26. data/grammars/text.html.ecr.json +52 -0
  27. data/grammars/text.html.handlebars.json +1 -1
  28. data/grammars/text.html.mako.json +17 -2
  29. data/grammars/text.html.vue.json +36 -1
  30. data/grammars/text.slim.json +1 -4
  31. data/grammars/text.tex.latex.json +2 -2
  32. data/lib/linguist/languages.json +1 -1
  33. data/lib/linguist/languages.yml +75 -6
  34. data/lib/linguist/samples.json +1856 -71
  35. data/lib/linguist/version.rb +1 -1
  36. metadata +11 -4
  37. data/grammars/source.fan.json +0 -188
@@ -0,0 +1,71 @@
1
+ {
2
+ "scopeName": "source.csound-document",
3
+ "fileTypes": [
4
+ "csd"
5
+ ],
6
+ "firstLineMatch": "<CsoundSynthesi[sz]er>",
7
+ "name": "Csound Document",
8
+ "patterns": [
9
+ {
10
+ "include": "source.csound#comments"
11
+ },
12
+ {
13
+ "name": "meta.orchestra.csound-document",
14
+ "begin": "<(CsInstruments)>",
15
+ "beginCaptures": {
16
+ "1": {
17
+ "name": "entity.name.tag.csound-document"
18
+ }
19
+ },
20
+ "end": "</(CsInstruments)>",
21
+ "endCaptures": {
22
+ "1": {
23
+ "name": "entity.name.tag.csound-document"
24
+ }
25
+ },
26
+ "patterns": [
27
+ {
28
+ "include": "source.csound"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ "name": "meta.score.csound-document",
34
+ "begin": "<(CsScore)>",
35
+ "beginCaptures": {
36
+ "1": {
37
+ "name": "entity.name.tag.csound-document"
38
+ }
39
+ },
40
+ "end": "</(CsScore)>",
41
+ "endCaptures": {
42
+ "1": {
43
+ "name": "entity.name.tag.csound-document"
44
+ }
45
+ },
46
+ "patterns": [
47
+ {
48
+ "include": "source.csound-score"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "meta.html.csound-document",
54
+ "begin": "(?=<[hH][tT][mM][lL])",
55
+ "end": "(?<=</[hH][tT][mM][lL]>)",
56
+ "patterns": [
57
+ {
58
+ "include": "text.html.basic"
59
+ }
60
+ ]
61
+ },
62
+ {
63
+ "match": "</?([a-zA-Z0-9:-]+)>",
64
+ "captures": {
65
+ "1": {
66
+ "name": "entity.name.tag.csound-document"
67
+ }
68
+ }
69
+ }
70
+ ]
71
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "scopeName": "source.csound-score",
3
+ "fileTypes": [
4
+ "sco"
5
+ ],
6
+ "name": "Csound Score",
7
+ "patterns": [
8
+ {
9
+ "include": "source.csound#commentsAndMacroCalls"
10
+ },
11
+ {
12
+ "name": "meta.statement.csound-score",
13
+ "begin": "([abefimq-tv-z]|[nN][pP]?)|([{}])",
14
+ "beginCaptures": {
15
+ "1": {
16
+ "name": "keyword.control.csound-score"
17
+ },
18
+ "2": {
19
+ "name": "punctuation.csound-score"
20
+ }
21
+ },
22
+ "end": "\\n",
23
+ "patterns": [
24
+ {
25
+ "include": "source.csound#commentsAndMacroCalls"
26
+ },
27
+ {
28
+ "include": "#partialExpressions"
29
+ }
30
+ ]
31
+ }
32
+ ],
33
+ "repository": {
34
+ "partialExpressions": {
35
+ "patterns": [
36
+ {
37
+ "include": "source.csound#preprocessorDirectives"
38
+ },
39
+ {
40
+ "include": "source.csound#numbers"
41
+ },
42
+ {
43
+ "name": "string.quoted.csound-score",
44
+ "begin": "\"",
45
+ "beginCaptures": {
46
+ "0": {
47
+ "name": "punctuation.definition.string.begin.csound-score"
48
+ }
49
+ },
50
+ "end": "\"",
51
+ "endCaptures": {
52
+ "0": {
53
+ "name": "punctuation.definition.string.end.csound-score"
54
+ }
55
+ },
56
+ "patterns": [
57
+ {
58
+ "include": "source.csound#macroCalls"
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,494 @@
1
+ {
2
+ "scopeName": "source.csound",
3
+ "fileTypes": [
4
+ "orc",
5
+ "udo"
6
+ ],
7
+ "name": "Csound",
8
+ "patterns": [
9
+ {
10
+ "include": "#commentsAndMacroCalls"
11
+ },
12
+ {
13
+ "name": "meta.instrument-block.csound",
14
+ "begin": "\\b(?=instr\\b)",
15
+ "end": "\\bendin\\b",
16
+ "endCaptures": {
17
+ "0": {
18
+ "name": "keyword.other.csound"
19
+ }
20
+ },
21
+ "patterns": [
22
+ {
23
+ "name": "meta.instrument-declaration.csound",
24
+ "begin": "instr",
25
+ "beginCaptures": {
26
+ "0": {
27
+ "name": "keyword.function.csound"
28
+ }
29
+ },
30
+ "end": "\\n",
31
+ "patterns": [
32
+ {
33
+ "name": "entity.name.function.csound",
34
+ "match": "\\d+|[A-Z_a-z]\\w*"
35
+ },
36
+ {
37
+ "include": "#commentsAndMacroCalls"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "include": "#commentsAndMacroCalls"
43
+ },
44
+ {
45
+ "include": "#labels"
46
+ },
47
+ {
48
+ "include": "#partialExpressions"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "meta.opcode-definition.csound",
54
+ "begin": "\\b(?=opcode\\b)",
55
+ "end": "\\bendop\\b",
56
+ "endCaptures": {
57
+ "0": {
58
+ "name": "keyword.other.csound"
59
+ }
60
+ },
61
+ "patterns": [
62
+ {
63
+ "name": "meta.opcode-declaration.csound",
64
+ "begin": "opcode",
65
+ "beginCaptures": {
66
+ "0": {
67
+ "name": "keyword.function.csound"
68
+ }
69
+ },
70
+ "end": "\\n",
71
+ "patterns": [
72
+ {
73
+ "name": "meta.opcode-details.csound",
74
+ "begin": "[A-Z_a-z]\\w*\\b",
75
+ "beginCaptures": {
76
+ "0": {
77
+ "name": "entity.name.function.opcode.csound"
78
+ }
79
+ },
80
+ "end": "(?=\\n)",
81
+ "patterns": [
82
+ {
83
+ "name": "meta.opcode-argument-types.csound",
84
+ "begin": "\\b(?:0|[afijkKoOpPStV\\[\\]]+)\\b",
85
+ "beginCaptures": {
86
+ "0": {
87
+ "name": "storage.type.csound"
88
+ }
89
+ },
90
+ "end": ",|(?=\\n)",
91
+ "patterns": [
92
+ {
93
+ "include": "#commentsAndMacroCalls"
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "include": "#commentsAndMacroCalls"
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "include": "#commentsAndMacroCalls"
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "include": "#commentsAndMacroCalls"
109
+ },
110
+ {
111
+ "include": "#labels"
112
+ },
113
+ {
114
+ "include": "#partialExpressions"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "include": "#labels"
120
+ },
121
+ {
122
+ "include": "#partialExpressions"
123
+ }
124
+ ],
125
+ "repository": {
126
+ "comments": {
127
+ "patterns": [
128
+ {
129
+ "name": "comment.block.csound",
130
+ "begin": "/\\*",
131
+ "beginCaptures": {
132
+ "0": {
133
+ "name": "punctuation.definition.comment.begin.csound"
134
+ }
135
+ },
136
+ "end": "\\*/",
137
+ "endCaptures": {
138
+ "0": {
139
+ "name": "punctuation.definition.comment.end.csound"
140
+ }
141
+ }
142
+ },
143
+ {
144
+ "name": "comment.line.csound",
145
+ "begin": "//|;",
146
+ "beginCaptures": {
147
+ "0": {
148
+ "name": "punctuation.definition.comment.line.csound"
149
+ }
150
+ },
151
+ "end": "(?=\\n)"
152
+ }
153
+ ]
154
+ },
155
+ "commentsAndMacroCalls": {
156
+ "patterns": [
157
+ {
158
+ "include": "#comments"
159
+ },
160
+ {
161
+ "include": "#macroCalls"
162
+ }
163
+ ]
164
+ },
165
+ "labels": {
166
+ "patterns": [
167
+ {
168
+ "match": "\\b(\\w+)(:)",
169
+ "captures": {
170
+ "1": {
171
+ "name": "entity.name.label.csound"
172
+ },
173
+ "2": {
174
+ "name": "entity.punctuation.label.csound"
175
+ }
176
+ }
177
+ }
178
+ ]
179
+ },
180
+ "macroCalls": {
181
+ "patterns": [
182
+ {
183
+ "name": "entity.name.function.preprocessor.csound",
184
+ "match": "\\$\\w+(?:\\.|\\b)"
185
+ }
186
+ ]
187
+ },
188
+ "numbers": {
189
+ "patterns": [
190
+ {
191
+ "name": "constant.numeric.float.csound",
192
+ "match": "(?:\\d+e[+-]?\\d+)|(?:\\d+\\.\\d*|\\d*\\.\\d+)(?:e[+-]?\\d+)?"
193
+ },
194
+ {
195
+ "name": "constant.numeric.integer.hexadecimal.csound",
196
+ "match": "0[Xx][a-fA-F0-9]+"
197
+ },
198
+ {
199
+ "name": "constant.numeric.integer.decimal.csound",
200
+ "match": "\\d+"
201
+ }
202
+ ]
203
+ },
204
+ "partialExpressions": {
205
+ "patterns": [
206
+ {
207
+ "include": "#preprocessorDirectives"
208
+ },
209
+ {
210
+ "name": "variable.other.readwrite.global.csound",
211
+ "match": "\\b(?:0dbfs|k(?:r|smps)|nchnls(?:_i)?|sr)\\b"
212
+ },
213
+ {
214
+ "include": "#numbers"
215
+ },
216
+ {
217
+ "name": "keyword.operator.csound",
218
+ "match": "[+\\-*/%^!=&|<>#~¬?:]"
219
+ },
220
+ {
221
+ "include": "#quotedStrings"
222
+ },
223
+ {
224
+ "name": "string.braced.csound",
225
+ "begin": "\\{\\{",
226
+ "end": "\\}\\}"
227
+ },
228
+ {
229
+ "name": "keyword.control.csound",
230
+ "match": "\\b(?:do|else(?:if)?|end(?:if|until)|fi|i(?:f|then)|kthen|od|r(?:ir)?eturn|then|until|while)\\b"
231
+ },
232
+ {
233
+ "begin": "\\b((?:c(?:g|in?|k|n)goto)|goto|igoto|kgoto|loop_[gl][et]|r(?:einit|igoto)|ti(?:goto|mout))\\b",
234
+ "beginCaptures": {
235
+ "1": {
236
+ "name": "keyword.control.csound"
237
+ }
238
+ },
239
+ "end": "(\\w+)\\s*((//|;).*)?\\n",
240
+ "endCaptures": {
241
+ "1": {
242
+ "name": "entity.name.label.csound"
243
+ },
244
+ "2": {
245
+ "name": "comment.line.csound"
246
+ },
247
+ "3": {
248
+ "name": "punctuation.definition.comment.line.csound"
249
+ }
250
+ },
251
+ "patterns": [
252
+ {
253
+ "include": "#commentsAndMacroCalls"
254
+ },
255
+ {
256
+ "include": "#partialExpressions"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "begin": "\\b(scoreline(?:_i)?)[ \\t]*(\\{\\{)",
262
+ "beginCaptures": {
263
+ "1": {
264
+ "name": "support.function.csound"
265
+ },
266
+ "2": {
267
+ "name": "string.braced.csound"
268
+ }
269
+ },
270
+ "end": "\\}\\}",
271
+ "endCaptures": {
272
+ "0": {
273
+ "name": "string.braced.csound"
274
+ }
275
+ },
276
+ "patterns": [
277
+ {
278
+ "include": "source.csound-score"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "begin": "\\b(pyl?run[it]?)[ \\t]*(\\{\\{)",
284
+ "beginCaptures": {
285
+ "1": {
286
+ "name": "support.function.csound"
287
+ },
288
+ "2": {
289
+ "name": "string.braced.csound"
290
+ }
291
+ },
292
+ "end": "\\}\\}",
293
+ "endCaptures": {
294
+ "0": {
295
+ "name": "string.braced.csound"
296
+ }
297
+ },
298
+ "patterns": [
299
+ {
300
+ "include": "source.python"
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "begin": "\\b(lua_exec)[ \\t]*(\\{\\{)",
306
+ "beginCaptures": {
307
+ "1": {
308
+ "name": "support.function.csound"
309
+ },
310
+ "2": {
311
+ "name": "string.braced.csound"
312
+ }
313
+ },
314
+ "end": "\\}\\}",
315
+ "endCaptures": {
316
+ "0": {
317
+ "name": "string.braced.csound"
318
+ }
319
+ },
320
+ "patterns": [
321
+ {
322
+ "include": "source.lua"
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "begin": "\\blua_opdef",
328
+ "beginCaptures": {
329
+ "0": {
330
+ "name": "support.function.csound"
331
+ }
332
+ },
333
+ "end": "\\}\\}",
334
+ "endCaptures": {
335
+ "0": {
336
+ "name": "string.braced.csound"
337
+ }
338
+ },
339
+ "patterns": [
340
+ {
341
+ "include": "#quotedStrings"
342
+ },
343
+ {
344
+ "begin": "\\{\\{",
345
+ "beginCaptures": {
346
+ "0": {
347
+ "name": "string.braced.csound"
348
+ }
349
+ },
350
+ "end": "(?=\\}\\})",
351
+ "patterns": [
352
+ {
353
+ "include": "source.lua"
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "name": "support.variable.csound",
361
+ "match": "\\bp\\d+\\b"
362
+ },
363
+ {
364
+ "name": "support.function.csound",
365
+ "match": "\\b(ATS(?:add(?:(?:nz)?)|bufread|cross|in(?:fo|terpread)|partialtap|read(?:(?:nz)?)|sinnoi)|FL(?:b(?:ox|ut(?:Bank|ton))|c(?:loseButton|o(?:lor(?:(?:2)?)|unt))|execButton|g(?:etsnap|roup(?:(?:(?:E|_e)nd)?))|h(?:ide|vsBox(?:(?:SetValue)?))|joy|k(?:eyIn|nob)|l(?:abel|oadsnap)|mouse|p(?:a(?:ck(?:(?:(?:E|_e)nd)?)|nel(?:(?:(?:E|_e)nd)?))|rintk(?:(?:2)?))|r(?:oller|un)|s(?:avesnap|croll(?:(?:(?:E|_e)nd)?)|et(?:Align|Box|Color(?:(?:2)?)|Font|Position|S(?:ize|napGroup)|Text(?:(?:Color|(?:Siz|Typ)e)?)|Val(?:(?:(?:(?:_)?)i)?)|snap)|how|lid(?:Bnk(?:(?:2(?:(?:Set(?:(?:k)?))?)|GetHandle|Set(?:(?:k)?))?)|er))|t(?:abs(?:(?:(?:E|_e)nd)?)|ext)|update|v(?:alue|keybd|slidBnk(?:(?:2)?))|xyin)|Mixer(?:Clear|GetLevel|Receive|Se(?:nd|tLevel(?:(?:_i)?)))|OSC(?:init|listen|send)|a(?:bs|ctive|ds(?:r|yn(?:(?:t(?:(?:2)?))?))|ftouch|l(?:pass|wayson)|mp(?:db(?:(?:fs)?)|midi(?:(?:d)?))|r(?:eson(?:(?:k)?)|ray)|tone(?:[kx]?))|b(?:a(?:bo|lance|mboo|rmodel)|bcut[ms]|e(?:(?:tara|xpr)nd)|form(?:dec(?:(?:1)?)|enc(?:(?:1)?))|i(?:nit|quad(?:(?:a)?)|rnd)|qrez|u(?:chla|t(?:b[pr]|hp|lp|t(?:er(?:b[pr]|[hl]p)|on))|zz))|c(?:2r|a(?:basa|uchy(?:(?:i)?))|e(?:il|ll|nt(?:(?:roid)?)|ps)|h(?:an(?:ctrl|ged|[io])|e(?:byshevpoly|ckbox)|n(?:_[Sak]|clear|export|get|mix|params|set)|uap)|l(?:ear|filt|ip|ocko(?:ff|n))|mplxprod|o(?:m(?:b(?:(?:inv)?)|p(?:ile(?:csd|orc|str)|ress))|n(?:nect|trol|v(?:(?:l|olv)e))|py(?:2(?:[ft]tab)|a2ftab|f2array)|s(?:(?:h|inv|seg(?:[br]?))?))|p(?:s(?:2pch|midi(?:(?:b|nn)?)|oct|pch|t(?:mid|un(?:(?:i)?))|xpch)|uprc)|r(?:oss(?:2|fm(?:(?:i|pm(?:(?:i)?))?)|pm(?:(?:i)?))|unch)|t(?:lchn|rl(?:14|21|7|init))|userrnd)|d(?:a(?:m|te(?:(?:s)?))|b(?:(?:(?:(?:fs)?)amp)?)|c(?:block(?:(?:2)?)|onv)|e(?:l(?:ay(?:[1krw]?)|tap(?:(?:xw|[3inx])?))|norm)|i(?:ff|s(?:k(?:grain|in(?:(?:2)?))|p(?:fft|lay)|tort(?:(?:1)?))|vz)|o(?:ppler|wnsamp)|ripwater|u(?:mpk(?:[234]?)|s(?:errnd|t(?:(?:2)?))))|e(?:nvlpx(?:(?:r)?)|phasor|qfil|v(?:alstr|ent(?:(?:_i)?))|x(?:citer|itnow|p(?:(?:curve|on|rand(?:(?:i)?)|seg(?:(?:ba|[abr])?))?)))|f(?:a(?:reylen(?:(?:i)?)|ust(?:audio|c(?:ompile|tl)|gen))|ft(?:(?:inv)?)|i(?:close|l(?:e(?:bit|len|nchnls|peak|sr|valid)|larray|ter2)|n(?:[ik]?)|open)|l(?:a(?:nger|shtxt)|oo(?:per(?:(?:2)?)|r)|uid(?:AllOut|C(?:C[ik]|ontrol)|Engine|Load|Note|Out|ProgramSelect|SetInterpMethod))|m(?:b(?:3|ell)|metal|percfl|(?:rhod|voic|wurli)e)|o(?:f(?:2|ilter)|l(?:d|low(?:(?:2)?))|scil(?:(?:i)?)|ut(?:(?:ir|[ik])?)|[fg])|print(?:(?:(?:k)?)s)|r(?:ac(?:(?:talnoise)?)|eeverb)|t(?:c(?:hnls|onv|ps)|free|gen(?:(?:once|tmp)?)|l(?:en|oad(?:(?:k)?)|ptim)|morf|resize(?:(?:i)?)|s(?:ave(?:(?:k)?)|r)))|g(?:a(?:in(?:(?:slider)?)|uss(?:(?:i|trig)?))|buzz|e(?:n(?:array(?:(?:_i)?)|dy(?:[cx]?))|t(?:c(?:fg|ol)|row))|ogobel|ra(?:in(?:[23]?)|nule)|uiro)|h(?:armon(?:[234]?)|df5(?:read|write)|ilbert|rtf(?:e(?:arly|r)|move(?:(?:2)?)|reverb|stat)|sboscil|vs[123])|i(?:ceps|hold|mage(?:create|free|getpixel|load|s(?:ave|etpixel|ize))|n(?:(?:32|ch|it(?:(?:c(?:14|21|7))?)|let(?:kid|[afkv])|rg|s(?:global|remot)|te(?:g|rp)|value|[hoqstxz])?))|j(?:itter(?:(?:2)?)|spline)|ktableseg|l(?:en(?:array|tab)|fo|i(?:mit|n(?:e(?:(?:n(?:(?:r)?)|to)?)|rand|seg(?:[br]?)))|o(?:cs(?:end|ig)|g(?:(?:10|2|btwo|curve)?)|op(?:seg(?:(?:p)?)|[tx]seg)|renz|scil(?:[3x]?)|w(?:pass2|res(?:(?:x)?)))|p(?:f(?:18|orm|reson)|hasor|interp|oscil(?:(?:sa(?:(?:2)?)|[3a])?)|re(?:ad|son)|s(?:hold(?:(?:p)?)|lot))|ua_ikopcall)|m(?:a(?:ca|dsr|gs|nd(?:[eo]l)|parray(?:(?:_i)?)|rimba|ssign|x(?:_k|a(?:bs(?:(?:accum)?)|ccum|lloc|rray)|tab)|[cx])|clock|delay|e(?:dian(?:(?:k)?)|tro)|i(?:d(?:global|i(?:c(?:14|21|7|h(?:annelaftertouch|n)|ontrolchange|trl)|default|filestatus|in|noteo(?:ff|n(?:cps|key|oct|pch))|o(?:n(?:(?:2)?)|ut)|p(?:gm|itchbend|olyaftertouch|rogramchange)|tempo)|remot)|n(?:(?:a(?:bs(?:(?:accum)?)|ccum|rray)|cer|tab)?)|rror)|o(?:d(?:e|matrix)|nitor|og(?:(?:ladder|vcf(?:(?:2)?))?)|scil)|p(?:3(?:bitrate|in|len|nchnls|sr)|ulse)|rtmsg|u(?:ltitap|te)|xadsr)|n(?:estedap|l(?:alp|filt(?:(?:2)?))|o(?:ise|t(?:eo(?:ff|n(?:(?:dur(?:(?:2)?))?))|num))|r(?:everb|pn)|s(?:amp|t(?:ance|rnum))|trpol)|o(?:ct(?:ave|cps|midi(?:(?:b|nn)?)|pch)|sc(?:bnk|il(?:(?:1i|ikt(?:[ps]?)|[13insx])?))|ut(?:(?:32|ch|i(?:at|c(?:(?:14)?)|p(?:at|[bc]))|k(?:at|c(?:(?:14)?)|p(?:at|[bc]))|let(?:kid|[afkv])|q[1234]|rg|s[12]|value|[choqsxz])?))|p(?:a(?:n(?:(?:2)?)|r(?:eq|ti(?:als|kkel(?:(?:get|s(?:et|ync))?)))|ssign)|c(?:auchy|h(?:bend|midi(?:(?:b|nn)?)|oct)|o(?:nvolve|unt))|d(?:clip|half(?:(?:y)?))|eak|gm(?:(?:assig|ch)n)|h(?:as(?:er[12]|or(?:(?:bnk)?))|s)|i(?:n(?:dex|k(?:er|ish))|tch(?:(?:a(?:c|mdf))?))|l(?:a(?:net|terev)|(?:ltra|u)ck)|o(?:isson|l(?:2rect|y(?:aft|nomial))|p_f|rt(?:(?:k)?)|scil(?:(?:3)?)|w(?:ershape|oftwo)|[pw])|r(?:e(?:alloc|piano)|int(?:(?:_type|f_i|k(?:s2|[2s])|[fks])?)|oduct)|set|t(?:able(?:(?:iw|[3iw])?)|rack)|u(?:sh(?:(?:_f)?)|ts)|v(?:add|bufread|cross|interp|oc|read|s(?:2(?:array|tab)|a(?:dsyn|nal|rp)|b(?:and[pr]|in|lur|uf(?:fer|read(?:(?:2)?)))|c(?:ale|e(?:nt|ps)|ross)|d(?:emix|is(?:kin|p))|envftw|f(?:ilter|r(?:e(?:ad|eze)|omarray)|t[rw]|write)|g(?:ain|endy)|hift|i(?:fd|n(?:(?:fo|it)?))|lock|m(?:aska|ix|o(?:(?:ot|rp)h))|o(?:sc|ut)|pitch|t(?:(?:ana|enci)l)|voc|warp|ynth))|wd|y(?:assign(?:[it]?)|call(?:(?:1[it]|2[it]|3[it]|4[it]|5[it]|6[it]|7[it]|8[it]|ni|[12345678int])?)|e(?:val(?:[it]?)|xec(?:[it]?))|init|l(?:assign(?:[it]?)|call(?:(?:1[it]|2[it]|3[it]|4[it]|5[it]|6[it]|7[it]|8[it]|ni|[12345678int])?)|e(?:val(?:[it]?)|xec(?:[it]?)))))|q(?:inf|nan)|r(?:2c|and(?:(?:om(?:[hi]?)|[hi])?)|bjeq|e(?:ad(?:clock|fi|k[234s]|sc(?:ore|ratch)|[fk])|ct2pol|init|lease|mo(?:teport|ve)|pluck|s(?:on(?:(?:xk|[krxyz])?)|yn)|verb(?:(?:2|sc)?)|windscore|zzy)|fft|i(?:fft|return)|ms|nd(?:(?:31)?)|ound|spline|tclock)|s(?:16b14|32b14|a(?:mphold|ndpaper)|c(?:a(?:le(?:(?:array|t)?)|n(?:hammer|table|[su]))|hed(?:kwhen(?:(?:named)?)|ule|when))|e(?:ed|kere|mitone|nse(?:(?:key)?)|qtime(?:(?:2)?)|rial(?:Begin|End|Flush|Print|Read|Write(?:(?:_i)?))|t(?:c(?:(?:o|tr)l)|ksmps|row|scorepos))|f(?:i(?:list|nstr(?:(?:3m|[3m])?))|lo(?:ad|oper)|p(?:assign|l(?:ay(?:(?:3m|[3m])?)|ist)|reset))|h(?:aker|ift(?:in|out))|i(?:gn(?:alflowgraph|um)|n(?:(?:h|inv|syn)?))|l(?:eighbells|i(?:cearray|der(?:16(?:(?:f|table(?:(?:f)?))?)|32(?:(?:f|table(?:(?:f)?))?)|64(?:(?:f|table(?:(?:f)?))?)|8(?:(?:f|table(?:(?:f)?))?)|Kawai)))|nd(?:lo(?:ad|op)|warp(?:(?:st)?))|o(?:ck(?:recv(?:(?:s)?)|send(?:(?:s)?))|und(?:in|out(?:(?:s)?)))|p(?:a(?:ce|t3d(?:[it]?))|dist|ec(?:addm|di(?:ff|sp)|filt|hist|ptrk|s(?:cal|um)|trum)|litrig|rintf(?:(?:k)?)|send)|qrt|t(?:a(?:ck|tevar)|ix|r(?:c(?:at(?:(?:k)?)|har(?:(?:k)?)|mp(?:(?:k)?)|py(?:(?:k)?))|e(?:cv|son)|fromurl|get|index(?:(?:k)?)|l(?:en(?:(?:k)?)|ower(?:(?:k)?))|rindex(?:(?:k)?)|s(?:et|ub(?:(?:k)?))|to(?:[dl]k|[dl])|upper(?:(?:k)?))|send)|u(?:binstr(?:(?:init)?)|m(?:(?:array|tab)?))|vfilter|y(?:nc(?:grain|loop|phasor)|stem(?:(?:_i)?)))|t(?:a(?:b(?:2pvs|_i|gen|le(?:(?:3kt|copy|filter(?:(?:i)?)|gpw|i(?:copy|gpw|kt|mix|w)|kt|mix|ng|ra|s(?:eg|huffle(?:(?:i)?))|w(?:a|kt)|x(?:kt|seg)|[3iw])?)|m(?:ap(?:(?:_i)?)|orph(?:(?:ak|[ai])?))|play|rec|s(?:lice|um)|w(?:(?:_i)?))|mbourine|n(?:h|inv(?:(?:2)?))|[bn])|b(?:0_init|1(?:(?:[012345]?)_init|[012345])|2_init|3_init|4_init|5_init|6_init|7_init|8_init|9_init|vcf|[0123456789])|emp(?:est|o(?:(?:(?:sc|v)al)?))|i(?:me(?:dseq|inst[ks]|[ks])|val)|lineto|one(?:[kx]?)|r(?:a(?:dsyn|n(?:dom|seg(?:[br]?)))|cross|filter|highest|i(?:g(?:ger|seq)|rand)|lowest|mix|s(?:cale|(?:hif|pli)t))|urno(?:ff(?:(?:2)?)|n))|u(?:n(?:irand|wrap)|psamp|rd)|v(?:a(?:ctrol|dd(?:(?:_i|v(?:(?:_i)?))?)|get|lpass|set)|bap(?:(?:16|4move|8move|gmove|lsinit|(?:(?:z)?)move|[48gz])?)|c(?:ella|o(?:(?:2(?:(?:(?:f|i(?:f|ni))t)?)|mb|py(?:(?:_i)?))?))|d(?:el(?:_k|ay(?:(?:x(?:w[qs]|[qsw])|[3kx])?))|ivv(?:(?:_i)?))|e(?:cdelay|loc|xp(?:(?:_i|seg|v(?:(?:_i)?))?))|i(?:b(?:es|r(?:(?:ato)?))|ncr)|l(?:i(?:mit|nseg)|owres)|m(?:ap|irror|ult(?:(?:_i|v(?:(?:_i)?))?))|o(?:ice|sim)|p(?:haseseg|o(?:rt|w(?:(?:_i|v(?:(?:_i)?))?))|voc)|rand[hi]|subv(?:(?:_i)?)|tab(?:le(?:1k|w[aik]|[aik])|w[aik]|[aik])|wrap)|w(?:aveset|eibull|g(?:b(?:ow(?:(?:edbar)?)|rass)|clar|flute|pluck(?:(?:2)?)|uide[12])|i(?:i(?:connect|data|range|send)|ndow)|r(?:ap|itescratch)|terrain)|x(?:adsr|in|out|scan(?:map|smap|[su])|tratim|yin)|z(?:a(?:cl|kinit|mod|rg|wm|[rw])|filter2|i(?:wm|[rw])|k(?:cl|mod|wm|[rw]))|[aikp])\\b"
366
+ },
367
+ {
368
+ "name": "meta.other.csound",
369
+ "match": "\\b[a-zA-Z_]\\w*\\b"
370
+ }
371
+ ]
372
+ },
373
+ "preprocessorDirectives": {
374
+ "patterns": [
375
+ {
376
+ "name": "keyword.preprocessor.csound",
377
+ "match": "\\#(?:(?:e(?:lse|nd(?:if)?)|i(?:fn?def)|undef)\\b|\\#\\#)|@+[ \\t]*\\d*"
378
+ },
379
+ {
380
+ "begin": "\\#include\\b",
381
+ "beginCaptures": {
382
+ "0": {
383
+ "name": "keyword.include.preprocessor.csound"
384
+ }
385
+ },
386
+ "end": "\\n",
387
+ "patterns": [
388
+ {
389
+ "include": "#commentsAndMacroCalls"
390
+ },
391
+ {
392
+ "name": "string.quoted.include.csound",
393
+ "begin": "\"",
394
+ "beginCaptures": {
395
+ "0": {
396
+ "name": "punctuation.definition.string.begin.csound"
397
+ }
398
+ },
399
+ "end": "\"",
400
+ "endCaptures": {
401
+ "0": {
402
+ "name": "punctuation.definition.string.end.csound"
403
+ }
404
+ }
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "begin": "\\#[ \\t]*define\\b",
410
+ "beginCaptures": {
411
+ "0": {
412
+ "name": "keyword.define.preprocessor.csound"
413
+ }
414
+ },
415
+ "end": "(?<=\\#)",
416
+ "patterns": [
417
+ {
418
+ "include": "#commentsAndMacroCalls"
419
+ },
420
+ {
421
+ "name": "entity.name.function.preprocessor.csound",
422
+ "match": "\\w+"
423
+ },
424
+ {
425
+ "begin": "\\(",
426
+ "end": "\\)",
427
+ "patterns": [
428
+ {
429
+ "name": "variable.parameter.preprocessor.csound",
430
+ "match": "\\w+\\b"
431
+ }
432
+ ]
433
+ },
434
+ {
435
+ "begin": "\\#",
436
+ "beginCaptures": {
437
+ "0": {
438
+ "name": "punctuation.definition.macro.begin.csound"
439
+ }
440
+ },
441
+ "end": "\\#",
442
+ "endCaptures": {
443
+ "0": {
444
+ "name": "punctuation.definition.macro.end.csound"
445
+ }
446
+ },
447
+ "patterns": [
448
+ {
449
+ "include": "$self"
450
+ }
451
+ ]
452
+ }
453
+ ]
454
+ }
455
+ ]
456
+ },
457
+ "quotedStrings": {
458
+ "patterns": [
459
+ {
460
+ "name": "string.quoted.csound",
461
+ "begin": "\"",
462
+ "beginCaptures": {
463
+ "0": {
464
+ "name": "punctuation.definition.string.begin.csound"
465
+ }
466
+ },
467
+ "end": "\"",
468
+ "endCaptures": {
469
+ "0": {
470
+ "name": "punctuation.definition.string.end.csound"
471
+ }
472
+ },
473
+ "patterns": [
474
+ {
475
+ "include": "#macroCalls"
476
+ },
477
+ {
478
+ "name": "constant.character.escape.csound",
479
+ "match": "%\\d*(\\.\\d+)?[cdhilouxX]"
480
+ },
481
+ {
482
+ "name": "constant.character.escape.csound",
483
+ "match": "%[!%nNrRtT]|[~^]|\\\\(?:\\\\|[aAbBnNrRtT\"]|[0-7]{1,3})"
484
+ },
485
+ {
486
+ "name": "invalid.illegal.unknown-escape.csound",
487
+ "match": "\\\\."
488
+ }
489
+ ]
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ }