github-linguist 4.8.8 → 4.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/hint.haskell.json +1123 -0
  3. data/grammars/hint.message.haskell.json +1147 -0
  4. data/grammars/hint.type.haskell.json +1120 -0
  5. data/grammars/source.asn.json +59 -0
  6. data/grammars/source.blitzmax.json +0 -2
  7. data/grammars/source.bsl.json +372 -0
  8. data/grammars/source.c++.json +67 -0
  9. data/grammars/source.c2hs.json +27 -0
  10. data/grammars/source.cabal.json +66 -0
  11. data/grammars/source.coffee.json +6 -5
  12. data/grammars/source.crystal.json +0 -11
  13. data/grammars/source.csound-score.json +3 -3
  14. data/grammars/source.csound.json +51 -15
  15. data/grammars/source.css.json +1 -1
  16. data/grammars/source.css.less.json +9 -5
  17. data/grammars/source.cython.json +42 -193
  18. data/grammars/source.d.json +7 -7
  19. data/grammars/source.elixir.json +2 -2
  20. data/grammars/source.forth.json +0 -2
  21. data/grammars/source.graphql.json +8 -2
  22. data/grammars/source.haskell.json +1089 -323
  23. data/grammars/source.hsc2hs.json +12 -0
  24. data/grammars/source.ideal.json +356 -0
  25. data/grammars/source.java.json +3 -0
  26. data/grammars/source.js.json +262 -131
  27. data/grammars/source.js.jsx.json +848 -256
  28. data/grammars/source.lsl.json +51 -103
  29. data/grammars/source.objc.json +1 -1
  30. data/grammars/source.parrot.pir.json +49 -15
  31. data/grammars/source.pic.json +868 -0
  32. data/grammars/source.purescript.json +114 -90
  33. data/grammars/source.python.json +11 -9
  34. data/grammars/source.regexp.babel.json +1 -1
  35. data/grammars/source.renpy.json +7 -7
  36. data/grammars/source.rexx.json +59 -0
  37. data/grammars/source.sas.json +8 -75
  38. data/grammars/source.sdbl.json +97 -0
  39. data/grammars/source.shell.json +1 -0
  40. data/grammars/source.smali.json +2 -2
  41. data/grammars/source.sqf.json +11 -11
  42. data/grammars/source.stan.json +60 -25
  43. data/grammars/source.tla.json +18 -6
  44. data/grammars/source.toc.json +5 -1
  45. data/grammars/source.ts.json +134 -31
  46. data/grammars/source.tsx.json +134 -31
  47. data/grammars/source.vhdl.json +150 -117
  48. data/grammars/source.viml.json +4 -4
  49. data/grammars/source.xquery.json +23 -5
  50. data/grammars/source.yaml.json +35 -19
  51. data/grammars/text.html.handlebars.json +2 -2
  52. data/grammars/text.html.php.blade.json +1 -1
  53. data/grammars/text.html.twig.json +1 -4
  54. data/grammars/text.html.vue.json +41 -1
  55. data/grammars/text.restructuredtext.json +56 -1
  56. data/grammars/text.roff.json +5089 -0
  57. data/grammars/text.runoff.json +321 -0
  58. data/grammars/text.slim.json +126 -105
  59. data/grammars/text.tex.latex.haskell.json +1335 -21
  60. data/lib/linguist/heuristics.rb +8 -0
  61. data/lib/linguist/languages.json +1 -1
  62. data/lib/linguist/languages.yml +58 -3
  63. data/lib/linguist/samples.json +5257 -76
  64. data/lib/linguist/version.rb +1 -1
  65. metadata +16 -4
  66. data/grammars/source.man.json +0 -53
  67. data/grammars/text.groff.json +0 -113
@@ -0,0 +1,27 @@
1
+ {
2
+ "fileTypes": [
3
+ "chs"
4
+ ],
5
+ "name": "C2Hs",
6
+ "scopeName": "source.c2hs",
7
+ "patterns": [
8
+ {
9
+ "begin": "\\{#",
10
+ "end": "#\\}",
11
+ "beginCaptures": {
12
+ "0": {
13
+ "name": "punctuation.definition.preprocessor.begin.c2hs"
14
+ }
15
+ },
16
+ "endCaptures": {
17
+ "0": {
18
+ "name": "punctuation.definition.preprocessor.end.c2hs"
19
+ }
20
+ },
21
+ "name": "meta.preprocessor.c2hs"
22
+ },
23
+ {
24
+ "include": "source.haskell"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "scopeName": "source.cabal",
3
+ "fileTypes": [
4
+ "cabal"
5
+ ],
6
+ "name": "Cabal",
7
+ "patterns": [
8
+ {
9
+ "match": "(version)\\W*:\\W*([\\d.]+)",
10
+ "captures": {
11
+ "1": {
12
+ "name": "keyword.other"
13
+ },
14
+ "2": {
15
+ "name": "constant.numeric"
16
+ }
17
+ },
18
+ "name": "version"
19
+ },
20
+ {
21
+ "match": "(\\S+):[^/]",
22
+ "captures": {
23
+ "1": {
24
+ "name": "keyword.other"
25
+ }
26
+ },
27
+ "name": "cabal-keyword"
28
+ },
29
+ {
30
+ "match": "&&",
31
+ "name": "keyword.other"
32
+ },
33
+ {
34
+ "match": "([><=]+)\\s*([\\d.]+)",
35
+ "captures": {
36
+ "1": {
37
+ "name": "keyword.other"
38
+ },
39
+ "2": {
40
+ "name": "constant.numeric"
41
+ }
42
+ },
43
+ "name": "cabal-keyword"
44
+ },
45
+ {
46
+ "match": "(benchmark|executable|flag|source-repository|test-suite)\\s+(\\S+)",
47
+ "captures": {
48
+ "1": {
49
+ "name": "entity.name.function"
50
+ },
51
+ "2": {
52
+ "name": "support.other"
53
+ }
54
+ },
55
+ "name": "module-type"
56
+ },
57
+ {
58
+ "match": "library",
59
+ "name": "entity.name.function"
60
+ },
61
+ {
62
+ "match": "--.*\\n",
63
+ "name": "comment"
64
+ }
65
+ ]
66
+ }
@@ -118,13 +118,14 @@
118
118
  ]
119
119
  },
120
120
  {
121
- "match": "(#).*$",
122
- "name": "comment.line.number-sign.coffee",
123
- "captures": {
124
- "1": {
121
+ "begin": "#",
122
+ "beginCaptures": {
123
+ "0": {
125
124
  "name": "punctuation.definition.comment.coffee"
126
125
  }
127
- }
126
+ },
127
+ "end": "$",
128
+ "name": "comment.line.number-sign.coffee"
128
129
  },
129
130
  {
130
131
  "begin": "/{3}",
@@ -1790,17 +1790,6 @@
1790
1790
  "match": "(?<!:)(:)(?>[$a-zA-Z_]\\w*(?>[?!]|=(?![>=]))?|===?|<=>|>[>=]?|<[<=]?|[%&`/\\|]|\\*\\*?|=?~|[-+]@?|\\[\\]=?|@@?[a-zA-Z_]\\w*)",
1791
1791
  "name": "constant.other.symbol.crystal"
1792
1792
  },
1793
- {
1794
- "begin": "^=begin",
1795
- "captures": {
1796
- "0": {
1797
- "name": "punctuation.definition.comment.crystal"
1798
- }
1799
- },
1800
- "comment": "multiline comments",
1801
- "end": "^=end",
1802
- "name": "comment.block.documentation.crystal"
1803
- },
1804
1793
  {
1805
1794
  "begin": "(^[ \\t]+)?(?=#)",
1806
1795
  "beginCaptures": {
@@ -5,6 +5,9 @@
5
5
  ],
6
6
  "name": "Csound Score",
7
7
  "patterns": [
8
+ {
9
+ "include": "source.csound#preprocessorDirectives"
10
+ },
8
11
  {
9
12
  "include": "source.csound#commentsAndMacroCalls"
10
13
  },
@@ -33,9 +36,6 @@
33
36
  "repository": {
34
37
  "partialExpressions": {
35
38
  "patterns": [
36
- {
37
- "include": "source.csound#preprocessorDirectives"
38
- },
39
39
  {
40
40
  "include": "source.csound#numbers"
41
41
  },
@@ -173,7 +173,7 @@
173
173
  "labels": {
174
174
  "patterns": [
175
175
  {
176
- "match": "^[ \\t]*(\\w+)(:)",
176
+ "match": "^[ \\t]*(\\w+)(:)(?:[ \\t]+|$)",
177
177
  "captures": {
178
178
  "1": {
179
179
  "name": "entity.name.label.csound"
@@ -189,7 +189,7 @@
189
189
  "patterns": [
190
190
  {
191
191
  "name": "entity.name.function.preprocessor.csound",
192
- "match": "\\$\\w+(?:\\.|\\b)"
192
+ "match": "\\$[A-Z_a-z]\\w*(?:\\.|\\b)"
193
193
  }
194
194
  ]
195
195
  },
@@ -201,7 +201,7 @@
201
201
  },
202
202
  {
203
203
  "name": "constant.numeric.integer.hexadecimal.csound",
204
- "match": "0[Xx][a-fA-F0-9]+"
204
+ "match": "0[Xx][0-9A-Fa-f]+"
205
205
  },
206
206
  {
207
207
  "name": "constant.numeric.integer.decimal.csound",
@@ -270,6 +270,36 @@
270
270
  }
271
271
  ]
272
272
  },
273
+ {
274
+ "name": "string.quoted.csound",
275
+ "begin": "\\b(printk?s)[ \\t]*(\")",
276
+ "beginCaptures": {
277
+ "1": {
278
+ "name": "support.function.csound"
279
+ },
280
+ "2": {
281
+ "name": "punctuation.definition.string.begin.csound"
282
+ }
283
+ },
284
+ "end": "\"",
285
+ "endCaptures": {
286
+ "0": {
287
+ "name": "punctuation.definition.string.end.csound"
288
+ }
289
+ },
290
+ "patterns": [
291
+ {
292
+ "include": "#macroCalls"
293
+ },
294
+ {
295
+ "name": "constant.character.escape.csound",
296
+ "match": "%(?:\\d*(?:\\.\\d+)?[cdhilouxX]|[!%nNrRtT])|[~^]"
297
+ },
298
+ {
299
+ "include": "#escapeSequences"
300
+ }
301
+ ]
302
+ },
273
303
  {
274
304
  "begin": "\\b(scoreline(?:_i)?)[ \\t]*(\\{\\{)",
275
305
  "beginCaptures": {
@@ -337,7 +367,7 @@
337
367
  ]
338
368
  },
339
369
  {
340
- "begin": "\\blua_opdef",
370
+ "begin": "\\blua_opdef\\b",
341
371
  "beginCaptures": {
342
372
  "0": {
343
373
  "name": "support.function.csound"
@@ -374,12 +404,22 @@
374
404
  "match": "\\bp\\d+\\b"
375
405
  },
376
406
  {
377
- "name": "support.function.csound",
378
- "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(?:(?:inv)?))|h(?:an(?:ctrl|ged(?:(?:2)?)|[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(?:(?:2)?)))|n(?:nect|trol|v(?:(?:l|olv)e))|py(?: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|rectory|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|s(?:cal|r)|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(?:a(?:c(?:(?:talnoise)?)|mebuffer)|eeverb)|t(?:c(?:hnls|onv|ps)|free|gen(?:(?:once|tmp)?)|l(?:en|oad(?:(?:k)?)|ptim)|morf|resize(?:(?:i)?)|s(?:a(?:mplebank|ve(?:(?:k)?))|r)))|g(?:a(?:in(?:(?:slider)?)|uss(?:(?:i|trig)?))|buzz|e(?:n(?:array(?:(?:_i)?)|dy(?:(?:[cx])?))|t(?:c(?:fg|ol)|row|seed))|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(?: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(?:enarray|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_(?:exec|opdef))|m(?:a(?:ca|dsr|gs|nd(?:(?:[eo])l)|parray(?:(?:_i)?)|rimba|ssign|x(?:_k|a(?:bs(?:(?:accum)?)|ccum|lloc|rray))|[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)?)|rror)|o(?:d(?:e|matrix)|nitor|og(?:(?:ladder(?:(?:2)?)|vcf(?:(?:2)?))?)|scil)|p(?:3(?:bitrate|in|len|nchnls|s(?:cal(?:(?:_(?:check|load(?:(?:2)?)|play(?:(?:2)?)))?)|r))|ulse)|rtmsg|u(?:ltitap|te)|vc(?:hpf|lpf(?:[1234]))|xadsr)|n(?:chnls_hw|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)|labuffer|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|t(?:2txt|i(?:als|kkel(?:(?:get|s(?:et|ync))?))))|ssign|ulstretch)|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])?))|run(?:(?:[it])?))|run(?:(?:[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|ifft|ms|nd(?:(?:31)?)|ound|spline|tclock)|s(?:16b14|32b14|a(?:mphold|ndpaper)|c(?:a(?:le(?:(?:array)?)|n(?:hammer|table|[su]))|hed(?:kwhen(?:(?:named)?)|ule|when)|oreline(?:(?:_i)?))|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)?))|vfilter|y(?:nc(?:grain|loop|phasor)|stem(?:(?:_i)?)))|t(?:a(?:b(?:2pvs|_i|ifd|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])?)|morph(?:(?:ak|[ai])?)|play|rec|sum|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|r(?:andom|d))|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]))|[Saikp])\\b"
407
+ "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(?:(?:inv)?))|h(?:an(?:ctrl|ged(?:(?:2)?)|[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(?:(?:2)?)))|n(?:nect|trol|v(?:(?:l|olv)e))|py(?: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|rectory|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|s(?:cal|r)|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(?:a(?:c(?:(?:talnoise)?)|mebuffer)|eeverb)|t(?:c(?:hnls|onv|ps)|free|gen(?:(?:once|tmp)?)|l(?:en|oad(?:(?:k)?)|ptim)|morf|resize(?:(?:i)?)|s(?:a(?:mplebank|ve(?:(?:k)?))|r)))|g(?:a(?:in(?:(?:slider)?)|uss(?:(?:i|trig)?))|buzz|e(?:n(?:array(?:(?:_i)?)|dy(?:(?:[cx])?))|t(?:c(?:fg|ol)|row|seed))|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(?: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(?:enarray|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_(?:exec|opdef))|m(?:a(?:ca|dsr|gs|nd(?:(?:[eo])l)|parray(?:(?:_i)?)|rimba|ssign|x(?:_k|a(?:bs(?:(?:accum)?)|ccum|lloc|rray))|[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)?)|rror)|o(?:d(?:e|matrix)|nitor|og(?:(?:ladder(?:(?:2)?)|vcf(?:(?:2)?))?)|scil)|p(?:3(?:bitrate|in|len|nchnls|s(?:cal(?:(?:_(?:check|load(?:(?:2)?)|play(?:(?:2)?)))?)|r))|ulse)|rtmsg|u(?:ltitap|te)|vc(?:hpf|lpf(?:[1234]))|xadsr)|n(?:chnls_hw|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)|labuffer|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|t(?:2txt|i(?:als|kkel(?:(?:get|s(?:et|ync))?))))|ssign|ulstretch)|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])?))|run(?:(?:[it])?))|run(?:(?:[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|ifft|ms|nd(?:(?:31)?)|ound|spline|tclock)|s(?:16b14|32b14|a(?:mphold|ndpaper)|c(?:a(?:le(?:(?:array)?)|n(?:hammer|table|[su]))|hed(?:kwhen(?:(?:named)?)|ule|when)|oreline(?:(?:_i)?))|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)?))|vfilter|y(?:nc(?:grain|loop|phasor)|stem(?:(?:_i)?)))|t(?:a(?:b(?:2pvs|_i|ifd|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])?)|morph(?:(?:ak|[ai])?)|play|rec|sum|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|r(?:andom|d))|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]))|[Saikp])\\b(?:(\\:)([A-Za-z]))?",
408
+ "captures": {
409
+ "1": {
410
+ "name": "support.function.csound"
411
+ },
412
+ "2": {
413
+ "name": "punctuation.type-annotation.csound"
414
+ },
415
+ "3": {
416
+ "name": "type-annotation.storage.type.csound"
417
+ }
418
+ }
379
419
  },
380
420
  {
381
421
  "name": "meta.other.csound",
382
- "match": "\\b[a-zA-Z_]\\w*\\b"
422
+ "match": "\\b[A-Z_a-z]\\w*\\b"
383
423
  }
384
424
  ]
385
425
  },
@@ -403,13 +443,13 @@
403
443
  },
404
444
  {
405
445
  "name": "string.quoted.include.csound",
406
- "begin": "\"",
446
+ "begin": "([^ \\t])",
407
447
  "beginCaptures": {
408
448
  "0": {
409
449
  "name": "punctuation.definition.string.begin.csound"
410
450
  }
411
451
  },
412
- "end": "\"",
452
+ "end": "\\1",
413
453
  "endCaptures": {
414
454
  "0": {
415
455
  "name": "punctuation.definition.string.end.csound"
@@ -432,7 +472,7 @@
432
472
  },
433
473
  {
434
474
  "name": "entity.name.function.preprocessor.csound",
435
- "match": "[a-zA-Z_]\\w*"
475
+ "match": "[A-Z_a-z]\\w*"
436
476
  },
437
477
  {
438
478
  "begin": "\\(",
@@ -440,7 +480,7 @@
440
480
  "patterns": [
441
481
  {
442
482
  "name": "variable.parameter.preprocessor.csound",
443
- "match": "\\w+\\b"
483
+ "match": "[A-Z_a-z]\\w*\\b"
444
484
  }
445
485
  ]
446
486
  },
@@ -491,10 +531,6 @@
491
531
  {
492
532
  "include": "#macroCalls"
493
533
  },
494
- {
495
- "name": "constant.character.escape.csound",
496
- "match": "%\\d*(\\.\\d+)?[cdhilouxX]"
497
- },
498
534
  {
499
535
  "include": "#escapeSequences"
500
536
  }
@@ -447,7 +447,7 @@
447
447
  "name": "meta.selector.css",
448
448
  "patterns": [
449
449
  {
450
- "match": "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",
450
+ "match": "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|main|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",
451
451
  "name": "entity.name.tag.css"
452
452
  },
453
453
  {
@@ -3,7 +3,11 @@
3
3
  "scopeName": "source.css.less",
4
4
  "fileTypes": [
5
5
  "less",
6
- "less.erb"
6
+ "less.erb",
7
+ "rc",
8
+ "gtkrc",
9
+ "gtkrc-2.0",
10
+ "themerc"
7
11
  ],
8
12
  "patterns": [
9
13
  {
@@ -447,8 +451,8 @@
447
451
  "name": "string.quoted.double.css",
448
452
  "patterns": [
449
453
  {
450
- "match": "\\\\(\\d{1,6}|.)",
451
- "name": "constant.character.escaped.css"
454
+ "match": "\\\\(\\h{1,6}|.)",
455
+ "name": "constant.character.escape.css"
452
456
  },
453
457
  {
454
458
  "include": "#variable_interpolation"
@@ -471,8 +475,8 @@
471
475
  "name": "string.quoted.single.css",
472
476
  "patterns": [
473
477
  {
474
- "match": "\\\\.",
475
- "name": "constant.character.escaped.css"
478
+ "match": "\\\\(\\h{1,6}|.)",
479
+ "name": "constant.character.escape.css"
476
480
  },
477
481
  {
478
482
  "include": "#variable_interpolation"
@@ -1,23 +1,33 @@
1
1
  {
2
- "bundleUUID": "E3BADC20-6B0E-11D9-9DC9-000D93589AF6",
2
+ "comment": "\n\ttodo:\n\t\tlist comprehension / generator comprehension scope.\n\t\t\n\t",
3
3
  "fileTypes": [
4
4
  "pyx",
5
- "pxi",
6
- "pxd"
5
+ "pxi"
7
6
  ],
8
- "foldingStartMarker": "^\\s*((cp?)?def|class|property|struct|enum|union)\\s+([.a-zA-Z0-9_ <]+)\\s*(\\((.*)\\)|['\"]+.+['\"]+)?\\s*:|\\{\\s*$|\\(\\s*$|\\[\\s*$|^\\s*\"\"\"(?=.)(?!.*\"\"\")",
9
- "foldingStopMarker": "^\\s*$|^\\s*\\}|^\\s*\\]|^\\s*\\)|^\\s*\"\"\"\\s*$",
7
+ "firstLineMatch": "^#!/.*\\bcython\\b",
10
8
  "keyEquivalent": "^~C",
11
9
  "name": "Cython",
12
10
  "patterns": [
13
11
  {
14
- "captures": {
12
+ "begin": "(^[ \\t]+)?(?=#)",
13
+ "beginCaptures": {
15
14
  "1": {
16
- "name": "punctuation.definition.comment.cython"
15
+ "name": "punctuation.whitespace.comment.leading.cython"
17
16
  }
18
17
  },
19
- "match": "(#).*$\\n?",
20
- "name": "comment.line.number-sign.cython"
18
+ "end": "(?!\\G)",
19
+ "patterns": [
20
+ {
21
+ "begin": "#",
22
+ "beginCaptures": {
23
+ "0": {
24
+ "name": "punctuation.definition.comment.cython"
25
+ }
26
+ },
27
+ "end": "\\n",
28
+ "name": "comment.line.number-sign.cython"
29
+ }
30
+ ]
21
31
  },
22
32
  {
23
33
  "match": "\\b(?i:(0x\\h*)L)",
@@ -65,7 +75,7 @@
65
75
  "name": "storage.modifier.global.cython"
66
76
  }
67
77
  },
68
- "match": "\\b(global|readonly|public|api|nogil|gil)\\b"
78
+ "match": "\\b(global)\\b"
69
79
  },
70
80
  {
71
81
  "captures": {
@@ -76,21 +86,13 @@
76
86
  "name": "keyword.control.import.from.cython"
77
87
  }
78
88
  },
79
- "match": "\\b(?:(c?import|include)|(from))\\b"
80
- },
81
- {
82
- "match": "\\bexcept\\?",
83
- "name": "keyword.control.flow.cython"
89
+ "match": "\\b(?:(import|include)|(from))\\b"
84
90
  },
85
91
  {
86
92
  "comment": "keywords that delimit flow blocks",
87
93
  "match": "\\b(elif|else|except|finally|for|if|try|while|with|IF|ELIF|ELSE)\\b",
88
94
  "name": "keyword.control.flow.cython"
89
95
  },
90
- {
91
- "match": "\\bDEF\\b",
92
- "name": "keyword.control.define.cython"
93
- },
94
96
  {
95
97
  "comment": "keywords that alter flow from within a block",
96
98
  "match": "\\b(break|continue|pass|raise|return|yield)\\b",
@@ -108,20 +110,11 @@
108
110
  }
109
111
  },
110
112
  "comment": "keywords that haven't fit into other groups (yet).",
111
- "match": "\\b(as|assert|del|exec|print|by)\\b"
113
+ "match": "\\b(as|assert|del|exec|print)\\b"
112
114
  },
113
115
  {
114
- "match": "\\b(extern|register|restrict|static|volatile|inline)\\b",
115
- "name": "storage.modifier.cython"
116
- },
117
- {
118
- "captures": {
119
- "2": {
120
- "name": "storage.type.cython"
121
- }
122
- },
123
- "match": "(<)\\s*(([a-zA-Z_][a-zA-Z0-9_]*)(\\s+[a-zA-Z_][a-zA-Z0-9_]*)*[ *]*)\\s*\\??\\s*(>)",
124
- "name": "operator.cast.cython"
116
+ "match": "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b",
117
+ "name": "storage.type.cython"
125
118
  },
126
119
  {
127
120
  "match": "<\\=|>\\=|\\=\\=|<|>|<>",
@@ -140,159 +133,46 @@
140
133
  "name": "keyword.operator.assignment.cython"
141
134
  },
142
135
  {
143
- "begin": "^(cdef)\\s+(extern|import)\\s+(from)",
136
+ "begin": "^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\:)",
144
137
  "beginCaptures": {
145
138
  "1": {
146
- "name": "storage.type.cdef.cython"
147
- },
148
- "2": {
149
- "name": "keyword.control.import.cython"
150
- },
151
- "3": {
152
- "name": "keyword.control.import.from.cython"
153
- }
154
- },
155
- "end": ":",
156
- "name": "meta.cextern.cython",
157
- "patterns": [
158
- {
159
- "include": "#strings"
160
- }
161
- ]
162
- },
163
- {
164
- "begin": "^\\s*(cp?def\\s+)?(?!(raise|return|yield|assert|del|print|exec|def|class|if|elif|for|while|except|with|IF|ELIF)\\b)(([a-zA-Z_][a-zA-Z0-9_]*)(\\s+[a-zA-Z_][a-zA-Z0-9_]*)*([ *]*))\\s*(\\b[a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=\\(|'|\")(?=.*\\()",
165
- "beginCaptures": {
166
- "1": {
167
- "name": "storage.type.cdef.cython"
168
- },
169
- "3": {
170
- "name": "storage.type.cython"
171
- },
172
- "7": {
173
- "name": "entity.name.cfunction.cython"
174
- },
175
- "8": {
176
- "name": "punctuation.definition.cfunction.cython"
139
+ "name": "storage.type.class.cython"
177
140
  }
178
141
  },
179
- "end": "(\\)):?",
142
+ "contentName": "entity.name.type.class.cython",
143
+ "end": "\\s*(:)",
180
144
  "endCaptures": {
181
145
  "1": {
182
- "name": "punctuation.definition.cfunction.cython"
146
+ "name": "punctuation.section.class.begin.cython"
183
147
  }
184
148
  },
185
- "name": "meta.cfunction.cython",
149
+ "name": "meta.class.old-style.cython",
186
150
  "patterns": [
187
151
  {
188
- "include": "#strings"
152
+ "include": "#entity_name_class"
189
153
  }
190
154
  ]
191
155
  },
192
156
  {
193
- "captures": {
194
- "1": {
195
- "name": "storage.type.property.cython"
196
- },
197
- "2": {
198
- "name": "entity.name.type.property.cython"
199
- }
200
- },
201
- "match": "^\\s*(property)\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
202
- "name": "meta.property.cython"
203
- },
204
- {
205
- "captures": {
206
- "1": {
207
- "name": "storage.type.cdef.cython"
208
- },
209
- "3": {
210
- "name": "storage.modifier.cython"
211
- },
212
- "4": {
213
- "name": "storage.type.struct.cython"
214
- },
215
- "5": {
216
- "name": "entity.name.type.struct.cython"
217
- }
218
- },
219
- "match": "^\\s*(cdef\\s+)?((extern|api|public)\\s+)?(struct)\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
220
- "name": "meta.struct.cython"
221
- },
222
- {
223
- "captures": {
224
- "1": {
225
- "name": "storage.type.cdef.cython"
226
- },
227
- "3": {
228
- "name": "storage.modifier.cython"
229
- },
230
- "4": {
231
- "name": "storage.type.union.cython"
232
- },
233
- "5": {
234
- "name": "entity.name.type.union.cython"
235
- }
236
- },
237
- "match": "^\\s*(cdef\\s+)?((extern|api|public)\\s+)?(union)\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
238
- "name": "meta.union.cython"
239
- },
240
- {
241
- "captures": {
242
- "1": {
243
- "name": "storage.type.cdef.cython"
244
- },
245
- "3": {
246
- "name": "storage.modifier.cython"
247
- },
248
- "4": {
249
- "name": "storage.type.enum.cython"
250
- },
251
- "5": {
252
- "name": "entity.name.type.enum.cython"
253
- }
254
- },
255
- "match": "^\\s*(cdef\\s+)?((extern|api|public)\\s+)?(enum)\\s+([a-zA-Z_][a-zA-Z_0-9]*)",
256
- "name": "meta.enum.cython"
257
- },
258
- {
259
- "match": "\\b(object|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|ctypedef|typedef|union|unsigned|void)\\b",
260
- "name": "storage.type.cython"
261
- },
262
- {
263
- "begin": "^\\s*(cdef\\s+)?(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\:)",
157
+ "begin": "^\\s*(property)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\:)",
264
158
  "beginCaptures": {
265
159
  "1": {
266
- "name": "storage.type.cdef.cython"
267
- },
268
- "2": {
269
- "name": "storage.type.class.cython"
160
+ "name": "storage.type.property.cython"
270
161
  }
271
162
  },
272
- "contentName": "entity.name.type.class.cython",
163
+ "contentName": "entity.name.type.property.cython",
273
164
  "end": "\\s*(:)",
274
165
  "endCaptures": {
275
166
  "1": {
276
- "name": "punctuation.section.class.begin.cython"
167
+ "name": "punctuation.section.property.begin.cython"
277
168
  }
278
169
  },
279
- "name": "meta.class.cython",
280
- "patterns": [
281
- {
282
- "include": "#entity_name_class"
283
- }
284
- ]
170
+ "name": "meta.property.cython"
285
171
  },
286
172
  {
287
- "begin": "^\\s*(cdef\\s+)?((extern|api|public)\\s+)?(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\()",
173
+ "begin": "^\\s*(class)\\s+(?=[a-zA-Z_][a-zA-Z_0-9]*\\s*\\()",
288
174
  "beginCaptures": {
289
175
  "1": {
290
- "name": "storage.type.cdef.cython"
291
- },
292
- "3": {
293
- "name": "storage.modifier.cython"
294
- },
295
- "4": {
296
176
  "name": "storage.type.class.cython"
297
177
  }
298
178
  },
@@ -423,9 +303,6 @@
423
303
  {
424
304
  "include": "#keyword_arguments"
425
305
  },
426
- {
427
- "include": "#typed_arguments"
428
- },
429
306
  {
430
307
  "captures": {
431
308
  "1": {
@@ -719,14 +596,6 @@
719
596
  },
720
597
  "match": "\\b(class)\\b"
721
598
  },
722
- {
723
- "captures": {
724
- "1": {
725
- "name": "storage.type.cdef.cython"
726
- }
727
- },
728
- "match": "\\b(cdef)\\b"
729
- },
730
599
  {
731
600
  "include": "#line_continuation"
732
601
  },
@@ -885,16 +754,13 @@
885
754
  "name": "support.type.exception.cython"
886
755
  },
887
756
  "builtin_functions": {
888
- "match": "(?x)\\b(\n __import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|\n divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|\n input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|\n ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|\n sum|unichr|vars|zip|sizeof\n\t\t\t)\\b",
757
+ "match": "(?x)\\b(\n __import__|all|abs|any|apply|callable|chr|cmp|coerce|compile|delattr|dir|\n divmod|eval|execfile|filter|getattr|globals|hasattr|hash|hex|id|\n input|intern|isinstance|issubclass|iter|len|locals|map|max|min|oct|\n ord|pow|range|raw_input|reduce|reload|repr|round|setattr|sorted|\n sum|unichr|vars|zip\n\t\t\t)\\b",
889
758
  "name": "support.function.builtin.cython"
890
759
  },
891
760
  "builtin_types": {
892
- "match": "(?x)\\b(\n\t\t\t\tbasestring|bool|buffer|classmethod|complex|dict|enumerate|file|\n\t\t\t\tfloat|frozenset|int|list|long|open|reversed|set|\n\t\t\t\tslice|staticmethod|str|super|tuple|type|unicode|xrange\n\t\t\t)\\b",
761
+ "match": "(?x)\\b(\n\t\t\t\tbasestring|bool|buffer|classmethod|complex|dict|enumerate|file|\n\t\t\t\tfloat|frozenset|int|list|long|object|open|reversed|set|\n\t\t\t\tslice|staticmethod|str|super|tuple|type|unicode|xrange\n\t\t\t)\\b",
893
762
  "name": "support.type.cython"
894
763
  },
895
- "c_type": {
896
- "match": "([a-zA-Z_][a-zA-Z0-9_]*)(\\s+[a-zA-Z_][a-zA-Z0-9_]*)*([ *]*)"
897
- },
898
764
  "constant_placeholder": {
899
765
  "match": "(?i:%(\\([a-z_]+\\))?#?0?\\-?[ ]?\\+?([0-9]*|\\*)(\\.([0-9]*|\\*))?[hL]?[a-z%])",
900
766
  "name": "constant.other.placeholder.cython"
@@ -1088,15 +954,12 @@
1088
954
  "name": "invalid.illegal.name.cython"
1089
955
  },
1090
956
  "keyword_arguments": {
1091
- "begin": "\\b(([a-zA-Z_][a-zA-Z0-9_]*)(\\s+[a-zA-Z_][a-zA-Z0-9_]*)*([ *]+))?([a-zA-Z_][a-zA-Z_0-9]*)\\s*(=)(?!=)",
957
+ "begin": "\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(=)(?!=)",
1092
958
  "beginCaptures": {
1093
959
  "1": {
1094
- "name": "storage.type.cython"
1095
- },
1096
- "5": {
1097
960
  "name": "variable.parameter.function.cython"
1098
961
  },
1099
- "6": {
962
+ "2": {
1100
963
  "name": "keyword.operator.assignment.cython"
1101
964
  }
1102
965
  },
@@ -1129,7 +992,7 @@
1129
992
  },
1130
993
  "magic_function_names": {
1131
994
  "comment": "these methods have magic interpretation by cython and are generally called indirectly through syntactic constructs",
1132
- "match": "(?x)\\b(__(?:\n\t\t\t\t\t\tabs|add|and|call|cmp|coerce|complex|contains|del|delattr|\n\t\t\t\t\t\tdelete|delitem|delslice|div|divmod|enter|exit|float|\n\t\t\t\t\t\tfloordiv|get|getattr|getattribute|getitem|getslice|\n\t\t\t\t\t\thash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|\n\t\t\t\t\t\tint|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|len|\n\t\t\t\t\t\tlong|lshift|mod|mul|neg|new|nonzero|oct|or|pos|pow|\n\t\t\t\t\t\tradd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|\n\t\t\t\t\t\trpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|\n\t\t\t\t\t\tsetslice|str|sub|truediv|unicode|xor|cinit|dealloc|richcmp|\n\t\t\t\t\t\tnext|index|getreadbuffer|getwritebuffer|getsegcount|getcharbuffer\n\t\t\t\t\t)__)\\b",
995
+ "match": "(?x)\\b(__(?:\n\t\t\t\t\t\tabs|add|and|call|cmp|coerce|complex|contains|del|delattr|\n\t\t\t\t\t\tdelete|delitem|delslice|div|divmod|enter|eq|exit|float|\n\t\t\t\t\t\tfloordiv|ge|get|getattr|getattribute|getitem|getslice|gt|\n\t\t\t\t\t\thash|hex|iadd|iand|idiv|ifloordiv|ilshift|imod|imul|init|\n\t\t\t\t\t\tint|invert|ior|ipow|irshift|isub|iter|itruediv|ixor|le|len|\n\t\t\t\t\t\tlong|lshift|lt|mod|mul|ne|neg|new|nonzero|oct|or|pos|pow|\n\t\t\t\t\t\tradd|rand|rdiv|rdivmod|repr|rfloordiv|rlshift|rmod|rmul|ror|\n\t\t\t\t\t\trpow|rrshift|rshift|rsub|rtruediv|rxor|set|setattr|setitem|\n\t\t\t\t\t\tsetslice|str|sub|truediv|unicode|xor\n\t\t\t\t\t)__)\\b",
1133
996
  "name": "support.function.magic.cython"
1134
997
  },
1135
998
  "magic_variable_names": {
@@ -2087,20 +1950,6 @@
2087
1950
  "include": "#string_quoted_single"
2088
1951
  }
2089
1952
  ]
2090
- },
2091
- "typed_arguments": {
2092
- "captures": {
2093
- "1": {
2094
- "name": "storage.type.cython"
2095
- },
2096
- "6": {
2097
- "name": "variable.parameter.function.cython"
2098
- },
2099
- "7": {
2100
- "name": "storage.type.conditional.cython"
2101
- }
2102
- },
2103
- "match": "(([a-zA-Z_][a-zA-Z0-9_]*)(\\s+[a-zA-Z_][a-zA-Z0-9_]*)*([ *]+))(?!(not|None)\\b)([a-zA-Z_][a-zA-Z0-9_]*)(\\s+not\\s*None)?"
2104
1953
  }
2105
1954
  },
2106
1955
  "scopeName": "source.cython",