tm-grammars 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +6565 -0
  3. package/README.md +211 -0
  4. package/grammars/abap.json +380 -0
  5. package/grammars/actionscript-3.json +951 -0
  6. package/grammars/ada.json +3874 -0
  7. package/grammars/apache.json +562 -0
  8. package/grammars/apex.json +3203 -0
  9. package/grammars/apl.json +1479 -0
  10. package/grammars/applescript.json +1406 -0
  11. package/grammars/ara.json +428 -0
  12. package/grammars/asm.json +1741 -0
  13. package/grammars/astro.json +776 -0
  14. package/grammars/awk.json +388 -0
  15. package/grammars/ballerina.json +3768 -0
  16. package/grammars/bat.json +783 -0
  17. package/grammars/beancount.json +831 -0
  18. package/grammars/berry.json +172 -0
  19. package/grammars/bibtex.json +315 -0
  20. package/grammars/bicep.json +239 -0
  21. package/grammars/blade.json +3870 -0
  22. package/grammars/c.json +3552 -0
  23. package/grammars/cadence.json +738 -0
  24. package/grammars/clarity.json +877 -0
  25. package/grammars/clojure.json +426 -0
  26. package/grammars/cmake.json +143 -0
  27. package/grammars/cobol.json +1124 -0
  28. package/grammars/codeql.json +1540 -0
  29. package/grammars/coffee.json +1311 -0
  30. package/grammars/cpp-macro.json +9498 -0
  31. package/grammars/cpp.json +16635 -0
  32. package/grammars/crystal.json +1866 -0
  33. package/grammars/csharp.json +5722 -0
  34. package/grammars/css.json +1860 -0
  35. package/grammars/csv.json +46 -0
  36. package/grammars/cue.json +1128 -0
  37. package/grammars/cypher.json +353 -0
  38. package/grammars/d.json +3185 -0
  39. package/grammars/dart.json +522 -0
  40. package/grammars/dax.json +185 -0
  41. package/grammars/diff.json +155 -0
  42. package/grammars/docker.json +97 -0
  43. package/grammars/dream-maker.json +640 -0
  44. package/grammars/elixir.json +1014 -0
  45. package/grammars/elm.json +751 -0
  46. package/grammars/erb.json +156 -0
  47. package/grammars/erlang.json +1757 -0
  48. package/grammars/fish.json +189 -0
  49. package/grammars/fsharp.json +1831 -0
  50. package/grammars/gdresource.json +290 -0
  51. package/grammars/gdscript.json +969 -0
  52. package/grammars/gdshader.json +405 -0
  53. package/grammars/gherkin.json +133 -0
  54. package/grammars/git-commit.json +85 -0
  55. package/grammars/git-rebase.json +56 -0
  56. package/grammars/glimmer-js.json +98 -0
  57. package/grammars/glimmer-ts.json +98 -0
  58. package/grammars/glsl.json +57 -0
  59. package/grammars/gnuplot.json +892 -0
  60. package/grammars/go.json +1012 -0
  61. package/grammars/graphql.json +1295 -0
  62. package/grammars/groovy.json +1378 -0
  63. package/grammars/hack.json +2650 -0
  64. package/grammars/haml.json +598 -0
  65. package/grammars/handlebars.json +848 -0
  66. package/grammars/haskell.json +2431 -0
  67. package/grammars/hcl.json +787 -0
  68. package/grammars/hjson.json +821 -0
  69. package/grammars/hlsl.json +212 -0
  70. package/grammars/html.json +93 -0
  71. package/grammars/imba.json +2696 -0
  72. package/grammars/ini.json +108 -0
  73. package/grammars/java.json +1885 -0
  74. package/grammars/javascript.json +5984 -0
  75. package/grammars/jinja-html.json +16 -0
  76. package/grammars/jinja.json +345 -0
  77. package/grammars/jison.json +715 -0
  78. package/grammars/jsdoc.json +21 -0
  79. package/grammars/json.json +208 -0
  80. package/grammars/json5.json +244 -0
  81. package/grammars/jsonc.json +208 -0
  82. package/grammars/jsonl.json +208 -0
  83. package/grammars/jsonnet.json +211 -0
  84. package/grammars/jssm.json +159 -0
  85. package/grammars/jsx.json +5984 -0
  86. package/grammars/julia.json +1061 -0
  87. package/grammars/kotlin.json +580 -0
  88. package/grammars/kusto.json +687 -0
  89. package/grammars/latex.json +2395 -0
  90. package/grammars/less.json +5012 -0
  91. package/grammars/liquid.json +990 -0
  92. package/grammars/lisp.json +121 -0
  93. package/grammars/logo.json +55 -0
  94. package/grammars/lua.json +956 -0
  95. package/grammars/make.json +629 -0
  96. package/grammars/markdown.json +3066 -0
  97. package/grammars/marko.json +1344 -0
  98. package/grammars/matlab.json +1131 -0
  99. package/grammars/mdc.json +571 -0
  100. package/grammars/mdx.json +5629 -0
  101. package/grammars/mermaid.json +1382 -0
  102. package/grammars/mojo.json +4153 -0
  103. package/grammars/narrat.json +227 -0
  104. package/grammars/nextflow.json +298 -0
  105. package/grammars/nginx.json +2121 -0
  106. package/grammars/nim.json +1522 -0
  107. package/grammars/nix.json +1200 -0
  108. package/grammars/nushell.json +1047 -0
  109. package/grammars/objective-c.json +3750 -0
  110. package/grammars/objective-cpp.json +7242 -0
  111. package/grammars/ocaml.json +2967 -0
  112. package/grammars/pascal.json +154 -0
  113. package/grammars/perl.json +2971 -0
  114. package/grammars/php.json +4024 -0
  115. package/grammars/plsql.json +241 -0
  116. package/grammars/postcss.json +377 -0
  117. package/grammars/powerquery.json +349 -0
  118. package/grammars/powershell.json +1024 -0
  119. package/grammars/prisma.json +443 -0
  120. package/grammars/prolog.json +298 -0
  121. package/grammars/proto.json +507 -0
  122. package/grammars/pug.json +1033 -0
  123. package/grammars/puppet.json +777 -0
  124. package/grammars/purescript.json +871 -0
  125. package/grammars/python.json +4208 -0
  126. package/grammars/r.json +637 -0
  127. package/grammars/raku.json +310 -0
  128. package/grammars/razor.json +1813 -0
  129. package/grammars/reg.json +136 -0
  130. package/grammars/rel.json +200 -0
  131. package/grammars/riscv.json +298 -0
  132. package/grammars/rst.json +734 -0
  133. package/grammars/ruby.json +2769 -0
  134. package/grammars/rust.json +1171 -0
  135. package/grammars/sas.json +302 -0
  136. package/grammars/sass.json +618 -0
  137. package/grammars/scala.json +1313 -0
  138. package/grammars/scheme.json +384 -0
  139. package/grammars/scss.json +1874 -0
  140. package/grammars/shaderlab.json +199 -0
  141. package/grammars/shellscript.json +2025 -0
  142. package/grammars/shellsession.json +33 -0
  143. package/grammars/smalltalk.json +235 -0
  144. package/grammars/solidity.json +1210 -0
  145. package/grammars/sparql.json +45 -0
  146. package/grammars/splunk.json +91 -0
  147. package/grammars/sql.json +631 -0
  148. package/grammars/ssh-config.json +88 -0
  149. package/grammars/stata.json +3050 -0
  150. package/grammars/stylus.json +1208 -0
  151. package/grammars/svelte.json +1171 -0
  152. package/grammars/swift.json +4203 -0
  153. package/grammars/system-verilog.json +1063 -0
  154. package/grammars/tasl.json +292 -0
  155. package/grammars/tcl.json +291 -0
  156. package/grammars/tex.json +281 -0
  157. package/grammars/toml.json +431 -0
  158. package/grammars/tsx.json +5984 -0
  159. package/grammars/turtle.json +261 -0
  160. package/grammars/twig.json +1394 -0
  161. package/grammars/typescript.json +5735 -0
  162. package/grammars/v.json +1001 -0
  163. package/grammars/vb.json +232 -0
  164. package/grammars/verilog.json +305 -0
  165. package/grammars/vhdl.json +1484 -0
  166. package/grammars/viml.json +445 -0
  167. package/grammars/vue-html.json +559 -0
  168. package/grammars/vue.json +1237 -0
  169. package/grammars/vyper.json +5415 -0
  170. package/grammars/wasm.json +831 -0
  171. package/grammars/wenyan.json +129 -0
  172. package/grammars/wgsl.json +391 -0
  173. package/grammars/wolfram.json +2370 -0
  174. package/grammars/xml.json +382 -0
  175. package/grammars/xsl.json +89 -0
  176. package/grammars/yaml.json +616 -0
  177. package/grammars/zenscript.json +257 -0
  178. package/grammars/zig.json +312 -0
  179. package/index.d.ts +18 -0
  180. package/index.js +2165 -0
  181. package/package.json +46 -0
@@ -0,0 +1,1874 @@
1
+ {
2
+ "displayName": "SCSS",
3
+ "name": "scss",
4
+ "patterns": [
5
+ {
6
+ "include": "#variable_setting"
7
+ },
8
+ {
9
+ "include": "#at_rule_forward"
10
+ },
11
+ {
12
+ "include": "#at_rule_use"
13
+ },
14
+ {
15
+ "include": "#at_rule_include"
16
+ },
17
+ {
18
+ "include": "#at_rule_import"
19
+ },
20
+ {
21
+ "include": "#general"
22
+ },
23
+ {
24
+ "include": "#flow_control"
25
+ },
26
+ {
27
+ "include": "#rules"
28
+ },
29
+ {
30
+ "include": "#property_list"
31
+ },
32
+ {
33
+ "include": "#at_rule_mixin"
34
+ },
35
+ {
36
+ "include": "#at_rule_media"
37
+ },
38
+ {
39
+ "include": "#at_rule_function"
40
+ },
41
+ {
42
+ "include": "#at_rule_charset"
43
+ },
44
+ {
45
+ "include": "#at_rule_option"
46
+ },
47
+ {
48
+ "include": "#at_rule_namespace"
49
+ },
50
+ {
51
+ "include": "#at_rule_fontface"
52
+ },
53
+ {
54
+ "include": "#at_rule_page"
55
+ },
56
+ {
57
+ "include": "#at_rule_keyframes"
58
+ },
59
+ {
60
+ "include": "#at_rule_at_root"
61
+ },
62
+ {
63
+ "include": "#at_rule_supports"
64
+ },
65
+ {
66
+ "match": ";",
67
+ "name": "punctuation.terminator.rule.css"
68
+ }
69
+ ],
70
+ "repository": {
71
+ "at_rule_at_root": {
72
+ "begin": "\\s*((@)(at-root))(\\s+|$)",
73
+ "beginCaptures": {
74
+ "1": {
75
+ "name": "keyword.control.at-rule.at-root.scss"
76
+ },
77
+ "2": {
78
+ "name": "punctuation.definition.keyword.scss"
79
+ }
80
+ },
81
+ "end": "\\s*(?={)",
82
+ "name": "meta.at-rule.at-root.scss",
83
+ "patterns": [
84
+ {
85
+ "include": "#function_attributes"
86
+ },
87
+ {
88
+ "include": "#functions"
89
+ },
90
+ {
91
+ "include": "#selectors"
92
+ }
93
+ ]
94
+ },
95
+ "at_rule_charset": {
96
+ "begin": "\\s*((@)charset\\b)\\s*",
97
+ "captures": {
98
+ "1": {
99
+ "name": "keyword.control.at-rule.charset.scss"
100
+ },
101
+ "2": {
102
+ "name": "punctuation.definition.keyword.scss"
103
+ }
104
+ },
105
+ "end": "\\s*((?=;|$))",
106
+ "name": "meta.at-rule.charset.scss",
107
+ "patterns": [
108
+ {
109
+ "include": "#variable"
110
+ },
111
+ {
112
+ "include": "#string_single"
113
+ },
114
+ {
115
+ "include": "#string_double"
116
+ }
117
+ ]
118
+ },
119
+ "at_rule_content": {
120
+ "begin": "\\s*((@)content\\b)\\s*",
121
+ "captures": {
122
+ "1": {
123
+ "name": "keyword.control.content.scss"
124
+ }
125
+ },
126
+ "end": "\\s*((?=;))",
127
+ "name": "meta.content.scss",
128
+ "patterns": [
129
+ {
130
+ "include": "#variable"
131
+ },
132
+ {
133
+ "include": "#selectors"
134
+ },
135
+ {
136
+ "include": "#property_values"
137
+ }
138
+ ]
139
+ },
140
+ "at_rule_each": {
141
+ "begin": "\\s*((@)each\\b)\\s*",
142
+ "captures": {
143
+ "1": {
144
+ "name": "keyword.control.each.scss"
145
+ },
146
+ "2": {
147
+ "name": "punctuation.definition.keyword.scss"
148
+ }
149
+ },
150
+ "end": "\\s*((?=}))",
151
+ "name": "meta.at-rule.each.scss",
152
+ "patterns": [
153
+ {
154
+ "match": "\\b(in|,)\\b",
155
+ "name": "keyword.control.operator"
156
+ },
157
+ {
158
+ "include": "#variable"
159
+ },
160
+ {
161
+ "include": "#property_values"
162
+ },
163
+ {
164
+ "include": "$self"
165
+ }
166
+ ]
167
+ },
168
+ "at_rule_else": {
169
+ "begin": "\\s*((@)else(\\s*(if)?))\\s*",
170
+ "captures": {
171
+ "1": {
172
+ "name": "keyword.control.else.scss"
173
+ },
174
+ "2": {
175
+ "name": "punctuation.definition.keyword.scss"
176
+ }
177
+ },
178
+ "end": "\\s*(?={)",
179
+ "name": "meta.at-rule.else.scss",
180
+ "patterns": [
181
+ {
182
+ "include": "#conditional_operators"
183
+ },
184
+ {
185
+ "include": "#variable"
186
+ },
187
+ {
188
+ "include": "#property_values"
189
+ }
190
+ ]
191
+ },
192
+ "at_rule_extend": {
193
+ "begin": "\\s*((@)extend\\b)\\s*",
194
+ "captures": {
195
+ "1": {
196
+ "name": "keyword.control.at-rule.extend.scss"
197
+ },
198
+ "2": {
199
+ "name": "punctuation.definition.keyword.scss"
200
+ }
201
+ },
202
+ "end": "\\s*(?=;)",
203
+ "name": "meta.at-rule.extend.scss",
204
+ "patterns": [
205
+ {
206
+ "include": "#variable"
207
+ },
208
+ {
209
+ "include": "#selectors"
210
+ },
211
+ {
212
+ "include": "#property_values"
213
+ }
214
+ ]
215
+ },
216
+ "at_rule_fontface": {
217
+ "patterns": [
218
+ {
219
+ "begin": "^\\s*((@)font-face\\b)",
220
+ "beginCaptures": {
221
+ "1": {
222
+ "name": "keyword.control.at-rule.fontface.scss"
223
+ },
224
+ "2": {
225
+ "name": "punctuation.definition.keyword.scss"
226
+ }
227
+ },
228
+ "end": "\\s*(?={)",
229
+ "name": "meta.at-rule.fontface.scss",
230
+ "patterns": [
231
+ {
232
+ "include": "#function_attributes"
233
+ }
234
+ ]
235
+ }
236
+ ]
237
+ },
238
+ "at_rule_for": {
239
+ "begin": "\\s*((@)for\\b)\\s*",
240
+ "captures": {
241
+ "1": {
242
+ "name": "keyword.control.for.scss"
243
+ },
244
+ "2": {
245
+ "name": "punctuation.definition.keyword.scss"
246
+ }
247
+ },
248
+ "end": "\\s*(?={)",
249
+ "name": "meta.at-rule.for.scss",
250
+ "patterns": [
251
+ {
252
+ "match": "(==|!=|<=|>=|<|>|from|to|through)",
253
+ "name": "keyword.control.operator"
254
+ },
255
+ {
256
+ "include": "#variable"
257
+ },
258
+ {
259
+ "include": "#property_values"
260
+ },
261
+ {
262
+ "include": "$self"
263
+ }
264
+ ]
265
+ },
266
+ "at_rule_forward": {
267
+ "begin": "\\s*((@)forward\\b)\\s*",
268
+ "captures": {
269
+ "1": {
270
+ "name": "keyword.control.at-rule.forward.scss"
271
+ },
272
+ "2": {
273
+ "name": "punctuation.definition.keyword.scss"
274
+ }
275
+ },
276
+ "end": "\\s*(?=;)",
277
+ "name": "meta.at-rule.forward.scss",
278
+ "patterns": [
279
+ {
280
+ "match": "\\b(as|hide|show)\\b",
281
+ "name": "keyword.control.operator"
282
+ },
283
+ {
284
+ "captures": {
285
+ "1": {
286
+ "name": "entity.other.attribute-name.module.scss"
287
+ },
288
+ "2": {
289
+ "name": "punctuation.definition.wildcard.scss"
290
+ }
291
+ },
292
+ "match": "\\b([\\w-]+)(\\*)"
293
+ },
294
+ {
295
+ "match": "\\b[\\w-]+\\b",
296
+ "name": "entity.name.function.scss"
297
+ },
298
+ {
299
+ "include": "#variable"
300
+ },
301
+ {
302
+ "include": "#string_single"
303
+ },
304
+ {
305
+ "include": "#string_double"
306
+ },
307
+ {
308
+ "include": "#comment_line"
309
+ },
310
+ {
311
+ "include": "#comment_block"
312
+ }
313
+ ]
314
+ },
315
+ "at_rule_function": {
316
+ "patterns": [
317
+ {
318
+ "begin": "\\s*((@)function\\b)\\s*",
319
+ "captures": {
320
+ "1": {
321
+ "name": "keyword.control.at-rule.function.scss"
322
+ },
323
+ "2": {
324
+ "name": "punctuation.definition.keyword.scss"
325
+ },
326
+ "3": {
327
+ "name": "entity.name.function.scss"
328
+ }
329
+ },
330
+ "end": "\\s*(?={)",
331
+ "name": "meta.at-rule.function.scss",
332
+ "patterns": [
333
+ {
334
+ "include": "#function_attributes"
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ "captures": {
340
+ "1": {
341
+ "name": "keyword.control.at-rule.function.scss"
342
+ },
343
+ "2": {
344
+ "name": "punctuation.definition.keyword.scss"
345
+ },
346
+ "3": {
347
+ "name": "entity.name.function.scss"
348
+ }
349
+ },
350
+ "match": "\\s*((@)function\\b)\\s*",
351
+ "name": "meta.at-rule.function.scss"
352
+ }
353
+ ]
354
+ },
355
+ "at_rule_if": {
356
+ "begin": "\\s*((@)if\\b)\\s*",
357
+ "captures": {
358
+ "1": {
359
+ "name": "keyword.control.if.scss"
360
+ },
361
+ "2": {
362
+ "name": "punctuation.definition.keyword.scss"
363
+ }
364
+ },
365
+ "end": "\\s*(?={)",
366
+ "name": "meta.at-rule.if.scss",
367
+ "patterns": [
368
+ {
369
+ "include": "#conditional_operators"
370
+ },
371
+ {
372
+ "include": "#variable"
373
+ },
374
+ {
375
+ "include": "#property_values"
376
+ }
377
+ ]
378
+ },
379
+ "at_rule_import": {
380
+ "begin": "\\s*((@)import\\b)\\s*",
381
+ "captures": {
382
+ "1": {
383
+ "name": "keyword.control.at-rule.import.scss"
384
+ },
385
+ "2": {
386
+ "name": "punctuation.definition.keyword.scss"
387
+ }
388
+ },
389
+ "end": "\\s*((?=;)|(?=}))",
390
+ "name": "meta.at-rule.import.scss",
391
+ "patterns": [
392
+ {
393
+ "include": "#variable"
394
+ },
395
+ {
396
+ "include": "#string_single"
397
+ },
398
+ {
399
+ "include": "#string_double"
400
+ },
401
+ {
402
+ "include": "#functions"
403
+ },
404
+ {
405
+ "include": "#comment_line"
406
+ }
407
+ ]
408
+ },
409
+ "at_rule_include": {
410
+ "patterns": [
411
+ {
412
+ "begin": "(?<=@include)\\s+(?:([\\w-]+)\\s*(\\.))?([\\w-]+)\\s*(\\()",
413
+ "beginCaptures": {
414
+ "1": {
415
+ "name": "variable.scss"
416
+ },
417
+ "2": {
418
+ "name": "punctuation.access.module.scss"
419
+ },
420
+ "3": {
421
+ "name": "entity.name.function.scss"
422
+ },
423
+ "4": {
424
+ "name": "punctuation.definition.parameters.begin.bracket.round.scss"
425
+ }
426
+ },
427
+ "end": "\\)",
428
+ "endCaptures": {
429
+ "0": {
430
+ "name": "punctuation.definition.parameters.end.bracket.round.scss"
431
+ }
432
+ },
433
+ "name": "meta.at-rule.include.scss",
434
+ "patterns": [
435
+ {
436
+ "include": "#function_attributes"
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "captures": {
442
+ "0": {
443
+ "name": "meta.at-rule.include.scss"
444
+ },
445
+ "1": {
446
+ "name": "variable.scss"
447
+ },
448
+ "2": {
449
+ "name": "punctuation.access.module.scss"
450
+ },
451
+ "3": {
452
+ "name": "entity.name.function.scss"
453
+ }
454
+ },
455
+ "match": "(?<=@include)\\s+(?:([\\w-]+)\\s*(\\.))?([\\w-]+)"
456
+ },
457
+ {
458
+ "captures": {
459
+ "0": {
460
+ "name": "meta.at-rule.include.scss"
461
+ },
462
+ "1": {
463
+ "name": "keyword.control.at-rule.include.scss"
464
+ },
465
+ "2": {
466
+ "name": "punctuation.definition.keyword.scss"
467
+ }
468
+ },
469
+ "match": "((@)include)\\b"
470
+ }
471
+ ]
472
+ },
473
+ "at_rule_keyframes": {
474
+ "begin": "(?<=^|\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\b",
475
+ "beginCaptures": {
476
+ "0": {
477
+ "name": "keyword.control.at-rule.keyframes.scss"
478
+ },
479
+ "1": {
480
+ "name": "punctuation.definition.keyword.scss"
481
+ }
482
+ },
483
+ "end": "(?<=})",
484
+ "name": "meta.at-rule.keyframes.scss",
485
+ "patterns": [
486
+ {
487
+ "captures": {
488
+ "1": {
489
+ "name": "entity.name.function.scss"
490
+ }
491
+ },
492
+ "match": "(?<=@keyframes)\\s+((?:[_A-Za-z][-\\w]|-[_A-Za-z])[-\\w]*)"
493
+ },
494
+ {
495
+ "begin": "(?<=@keyframes)\\s+(\")",
496
+ "beginCaptures": {
497
+ "1": {
498
+ "name": "punctuation.definition.string.begin.scss"
499
+ }
500
+ },
501
+ "contentName": "entity.name.function.scss",
502
+ "end": "\"",
503
+ "endCaptures": {
504
+ "0": {
505
+ "name": "punctuation.definition.string.end.scss"
506
+ }
507
+ },
508
+ "name": "string.quoted.double.scss",
509
+ "patterns": [
510
+ {
511
+ "match": "\\\\(\\h{1,6}|.)",
512
+ "name": "constant.character.escape.scss"
513
+ },
514
+ {
515
+ "include": "#interpolation"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "begin": "(?<=@keyframes)\\s+(')",
521
+ "beginCaptures": {
522
+ "1": {
523
+ "name": "punctuation.definition.string.begin.scss"
524
+ }
525
+ },
526
+ "contentName": "entity.name.function.scss",
527
+ "end": "'",
528
+ "endCaptures": {
529
+ "0": {
530
+ "name": "punctuation.definition.string.end.scss"
531
+ }
532
+ },
533
+ "name": "string.quoted.single.scss",
534
+ "patterns": [
535
+ {
536
+ "match": "\\\\(\\h{1,6}|.)",
537
+ "name": "constant.character.escape.scss"
538
+ },
539
+ {
540
+ "include": "#interpolation"
541
+ }
542
+ ]
543
+ },
544
+ {
545
+ "begin": "{",
546
+ "beginCaptures": {
547
+ "0": {
548
+ "name": "punctuation.section.keyframes.begin.scss"
549
+ }
550
+ },
551
+ "end": "}",
552
+ "endCaptures": {
553
+ "0": {
554
+ "name": "punctuation.section.keyframes.end.scss"
555
+ }
556
+ },
557
+ "patterns": [
558
+ {
559
+ "match": "\\b(?:(?:100|[1-9]\\d|\\d)%|from|to)(?=\\s*{)",
560
+ "name": "entity.other.attribute-name.scss"
561
+ },
562
+ {
563
+ "include": "#flow_control"
564
+ },
565
+ {
566
+ "include": "#interpolation"
567
+ },
568
+ {
569
+ "include": "#property_list"
570
+ },
571
+ {
572
+ "include": "#rules"
573
+ }
574
+ ]
575
+ }
576
+ ]
577
+ },
578
+ "at_rule_media": {
579
+ "patterns": [
580
+ {
581
+ "begin": "^\\s*((@)media)\\b",
582
+ "beginCaptures": {
583
+ "1": {
584
+ "name": "keyword.control.at-rule.media.scss"
585
+ },
586
+ "2": {
587
+ "name": "punctuation.definition.keyword.scss"
588
+ }
589
+ },
590
+ "end": "\\s*(?={)",
591
+ "name": "meta.at-rule.media.scss",
592
+ "patterns": [
593
+ {
594
+ "include": "#comment_docblock"
595
+ },
596
+ {
597
+ "include": "#comment_block"
598
+ },
599
+ {
600
+ "include": "#comment_line"
601
+ },
602
+ {
603
+ "match": "\\b(only)\\b",
604
+ "name": "keyword.control.operator.css.scss"
605
+ },
606
+ {
607
+ "begin": "\\(",
608
+ "beginCaptures": {
609
+ "0": {
610
+ "name": "punctuation.definition.media-query.begin.bracket.round.scss"
611
+ }
612
+ },
613
+ "end": "\\)",
614
+ "endCaptures": {
615
+ "0": {
616
+ "name": "punctuation.definition.media-query.end.bracket.round.scss"
617
+ }
618
+ },
619
+ "name": "meta.property-list.media-query.scss",
620
+ "patterns": [
621
+ {
622
+ "begin": "(?<![-a-z])(?=[-a-z])",
623
+ "end": "$|(?![-a-z])",
624
+ "name": "meta.property-name.media-query.scss",
625
+ "patterns": [
626
+ {
627
+ "include": "source.css#media-features"
628
+ },
629
+ {
630
+ "include": "source.css#property-names"
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "begin": "(:)\\s*(?!(\\s*{))",
636
+ "beginCaptures": {
637
+ "1": {
638
+ "name": "punctuation.separator.key-value.scss"
639
+ }
640
+ },
641
+ "contentName": "meta.property-value.media-query.scss",
642
+ "end": "\\s*(;|(?=}|\\)))",
643
+ "endCaptures": {
644
+ "1": {
645
+ "name": "punctuation.terminator.rule.scss"
646
+ }
647
+ },
648
+ "patterns": [
649
+ {
650
+ "include": "#general"
651
+ },
652
+ {
653
+ "include": "#property_values"
654
+ }
655
+ ]
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "include": "#variable"
661
+ },
662
+ {
663
+ "include": "#conditional_operators"
664
+ },
665
+ {
666
+ "include": "source.css#media-types"
667
+ }
668
+ ]
669
+ }
670
+ ]
671
+ },
672
+ "at_rule_mixin": {
673
+ "patterns": [
674
+ {
675
+ "begin": "(?<=@mixin)\\s+([\\w-]+)\\s*(\\()",
676
+ "beginCaptures": {
677
+ "1": {
678
+ "name": "entity.name.function.scss"
679
+ },
680
+ "2": {
681
+ "name": "punctuation.definition.parameters.begin.bracket.round.scss"
682
+ }
683
+ },
684
+ "end": "\\)",
685
+ "endCaptures": {
686
+ "0": {
687
+ "name": "punctuation.definition.parameters.end.bracket.round.scss"
688
+ }
689
+ },
690
+ "name": "meta.at-rule.mixin.scss",
691
+ "patterns": [
692
+ {
693
+ "include": "#function_attributes"
694
+ }
695
+ ]
696
+ },
697
+ {
698
+ "captures": {
699
+ "1": {
700
+ "name": "entity.name.function.scss"
701
+ }
702
+ },
703
+ "match": "(?<=@mixin)\\s+([\\w-]+)",
704
+ "name": "meta.at-rule.mixin.scss"
705
+ },
706
+ {
707
+ "captures": {
708
+ "1": {
709
+ "name": "keyword.control.at-rule.mixin.scss"
710
+ },
711
+ "2": {
712
+ "name": "punctuation.definition.keyword.scss"
713
+ }
714
+ },
715
+ "match": "((@)mixin)\\b",
716
+ "name": "meta.at-rule.mixin.scss"
717
+ }
718
+ ]
719
+ },
720
+ "at_rule_namespace": {
721
+ "patterns": [
722
+ {
723
+ "begin": "(?<=@namespace)\\s+(?=url)",
724
+ "end": "(?=;|$)",
725
+ "name": "meta.at-rule.namespace.scss",
726
+ "patterns": [
727
+ {
728
+ "include": "#property_values"
729
+ },
730
+ {
731
+ "include": "#string_single"
732
+ },
733
+ {
734
+ "include": "#string_double"
735
+ }
736
+ ]
737
+ },
738
+ {
739
+ "begin": "(?<=@namespace)\\s+([\\w-]*)",
740
+ "captures": {
741
+ "1": {
742
+ "name": "entity.name.namespace-prefix.scss"
743
+ }
744
+ },
745
+ "end": "(?=;|$)",
746
+ "name": "meta.at-rule.namespace.scss",
747
+ "patterns": [
748
+ {
749
+ "include": "#variables"
750
+ },
751
+ {
752
+ "include": "#property_values"
753
+ },
754
+ {
755
+ "include": "#string_single"
756
+ },
757
+ {
758
+ "include": "#string_double"
759
+ }
760
+ ]
761
+ },
762
+ {
763
+ "captures": {
764
+ "1": {
765
+ "name": "keyword.control.at-rule.namespace.scss"
766
+ },
767
+ "2": {
768
+ "name": "punctuation.definition.keyword.scss"
769
+ }
770
+ },
771
+ "match": "((@)namespace)\\b",
772
+ "name": "meta.at-rule.namespace.scss"
773
+ }
774
+ ]
775
+ },
776
+ "at_rule_option": {
777
+ "captures": {
778
+ "1": {
779
+ "name": "keyword.control.at-rule.charset.scss"
780
+ },
781
+ "2": {
782
+ "name": "punctuation.definition.keyword.scss"
783
+ }
784
+ },
785
+ "match": "^\\s*((@)option\\b)\\s*",
786
+ "name": "meta.at-rule.option.scss"
787
+ },
788
+ "at_rule_page": {
789
+ "patterns": [
790
+ {
791
+ "begin": "^\\s*((@)page)(?=:|\\s)\\s*([-:\\w]*)",
792
+ "captures": {
793
+ "1": {
794
+ "name": "keyword.control.at-rule.page.scss"
795
+ },
796
+ "2": {
797
+ "name": "punctuation.definition.keyword.scss"
798
+ },
799
+ "3": {
800
+ "name": "entity.name.function.scss"
801
+ }
802
+ },
803
+ "end": "\\s*(?={)",
804
+ "name": "meta.at-rule.page.scss"
805
+ }
806
+ ]
807
+ },
808
+ "at_rule_return": {
809
+ "begin": "\\s*((@)(return)\\b)",
810
+ "captures": {
811
+ "1": {
812
+ "name": "keyword.control.return.scss"
813
+ },
814
+ "2": {
815
+ "name": "punctuation.definition.keyword.scss"
816
+ }
817
+ },
818
+ "end": "\\s*((?=;))",
819
+ "name": "meta.at-rule.return.scss",
820
+ "patterns": [
821
+ {
822
+ "include": "#variable"
823
+ },
824
+ {
825
+ "include": "#property_values"
826
+ }
827
+ ]
828
+ },
829
+ "at_rule_supports": {
830
+ "begin": "(?<=^|\\s)(@)supports\\b",
831
+ "captures": {
832
+ "0": {
833
+ "name": "keyword.control.at-rule.supports.scss"
834
+ },
835
+ "1": {
836
+ "name": "punctuation.definition.keyword.scss"
837
+ }
838
+ },
839
+ "end": "(?={)|$",
840
+ "name": "meta.at-rule.supports.scss",
841
+ "patterns": [
842
+ {
843
+ "include": "#logical_operators"
844
+ },
845
+ {
846
+ "include": "#properties"
847
+ },
848
+ {
849
+ "match": "\\(",
850
+ "name": "punctuation.definition.condition.begin.bracket.round.scss"
851
+ },
852
+ {
853
+ "match": "\\)",
854
+ "name": "punctuation.definition.condition.end.bracket.round.scss"
855
+ }
856
+ ]
857
+ },
858
+ "at_rule_use": {
859
+ "begin": "\\s*((@)use\\b)\\s*",
860
+ "captures": {
861
+ "1": {
862
+ "name": "keyword.control.at-rule.use.scss"
863
+ },
864
+ "2": {
865
+ "name": "punctuation.definition.keyword.scss"
866
+ }
867
+ },
868
+ "end": "\\s*(?=;)",
869
+ "name": "meta.at-rule.use.scss",
870
+ "patterns": [
871
+ {
872
+ "match": "\\b(as|with)\\b",
873
+ "name": "keyword.control.operator"
874
+ },
875
+ {
876
+ "match": "\\b[\\w-]+\\b",
877
+ "name": "variable.scss"
878
+ },
879
+ {
880
+ "match": "\\*",
881
+ "name": "variable.language.expanded-namespace.scss"
882
+ },
883
+ {
884
+ "include": "#string_single"
885
+ },
886
+ {
887
+ "include": "#string_double"
888
+ },
889
+ {
890
+ "include": "#comment_line"
891
+ },
892
+ {
893
+ "include": "#comment_block"
894
+ },
895
+ {
896
+ "begin": "\\(",
897
+ "beginCaptures": {
898
+ "0": {
899
+ "name": "punctuation.definition.parameters.begin.bracket.round.scss"
900
+ }
901
+ },
902
+ "end": "\\)",
903
+ "endCaptures": {
904
+ "0": {
905
+ "name": "punctuation.definition.parameters.end.bracket.round.scss"
906
+ }
907
+ },
908
+ "patterns": [
909
+ {
910
+ "include": "#function_attributes"
911
+ }
912
+ ]
913
+ }
914
+ ]
915
+ },
916
+ "at_rule_warn": {
917
+ "begin": "\\s*((@)(warn|debug|error)\\b)\\s*",
918
+ "captures": {
919
+ "1": {
920
+ "name": "keyword.control.warn.scss"
921
+ },
922
+ "2": {
923
+ "name": "punctuation.definition.keyword.scss"
924
+ }
925
+ },
926
+ "end": "\\s*(?=;)",
927
+ "name": "meta.at-rule.warn.scss",
928
+ "patterns": [
929
+ {
930
+ "include": "#variable"
931
+ },
932
+ {
933
+ "include": "#string_double"
934
+ },
935
+ {
936
+ "include": "#string_single"
937
+ }
938
+ ]
939
+ },
940
+ "at_rule_while": {
941
+ "begin": "\\s*((@)while\\b)\\s*",
942
+ "captures": {
943
+ "1": {
944
+ "name": "keyword.control.while.scss"
945
+ },
946
+ "2": {
947
+ "name": "punctuation.definition.keyword.scss"
948
+ }
949
+ },
950
+ "end": "\\s*(?=})",
951
+ "name": "meta.at-rule.while.scss",
952
+ "patterns": [
953
+ {
954
+ "include": "#conditional_operators"
955
+ },
956
+ {
957
+ "include": "#variable"
958
+ },
959
+ {
960
+ "include": "#property_values"
961
+ },
962
+ {
963
+ "include": "$self"
964
+ }
965
+ ]
966
+ },
967
+ "comment_block": {
968
+ "begin": "/\\*",
969
+ "beginCaptures": {
970
+ "0": {
971
+ "name": "punctuation.definition.comment.scss"
972
+ }
973
+ },
974
+ "end": "\\*/",
975
+ "endCaptures": {
976
+ "0": {
977
+ "name": "punctuation.definition.comment.scss"
978
+ }
979
+ },
980
+ "name": "comment.block.scss"
981
+ },
982
+ "comment_docblock": {
983
+ "begin": "///",
984
+ "beginCaptures": {
985
+ "0": {
986
+ "name": "punctuation.definition.comment.scss"
987
+ }
988
+ },
989
+ "end": "(?=$)",
990
+ "name": "comment.block.documentation.scss",
991
+ "patterns": [
992
+ {
993
+ "include": "source.sassdoc"
994
+ }
995
+ ]
996
+ },
997
+ "comment_line": {
998
+ "begin": "//",
999
+ "beginCaptures": {
1000
+ "0": {
1001
+ "name": "punctuation.definition.comment.scss"
1002
+ }
1003
+ },
1004
+ "end": "\\n",
1005
+ "name": "comment.line.scss"
1006
+ },
1007
+ "comparison_operators": {
1008
+ "match": "==|!=|<=|>=|<|>",
1009
+ "name": "keyword.operator.comparison.scss"
1010
+ },
1011
+ "conditional_operators": {
1012
+ "patterns": [
1013
+ {
1014
+ "include": "#comparison_operators"
1015
+ },
1016
+ {
1017
+ "include": "#logical_operators"
1018
+ }
1019
+ ]
1020
+ },
1021
+ "constant_default": {
1022
+ "match": "!default",
1023
+ "name": "keyword.other.default.scss"
1024
+ },
1025
+ "constant_functions": {
1026
+ "begin": "(?:([\\w-]+)(\\.))?([\\w-]+)(\\()",
1027
+ "beginCaptures": {
1028
+ "1": {
1029
+ "name": "variable.scss"
1030
+ },
1031
+ "2": {
1032
+ "name": "punctuation.access.module.scss"
1033
+ },
1034
+ "3": {
1035
+ "name": "support.function.misc.scss"
1036
+ },
1037
+ "4": {
1038
+ "name": "punctuation.section.function.scss"
1039
+ }
1040
+ },
1041
+ "end": "(\\))",
1042
+ "endCaptures": {
1043
+ "1": {
1044
+ "name": "punctuation.section.function.scss"
1045
+ }
1046
+ },
1047
+ "patterns": [
1048
+ {
1049
+ "include": "#parameters"
1050
+ }
1051
+ ]
1052
+ },
1053
+ "constant_important": {
1054
+ "match": "!important",
1055
+ "name": "keyword.other.important.scss"
1056
+ },
1057
+ "constant_mathematical_symbols": {
1058
+ "match": "\\b(\\+|-|\\*|/)\\b",
1059
+ "name": "support.constant.mathematical-symbols.scss"
1060
+ },
1061
+ "constant_optional": {
1062
+ "match": "!optional",
1063
+ "name": "keyword.other.optional.scss"
1064
+ },
1065
+ "constant_sass_functions": {
1066
+ "begin": "(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate(?:X|Y))(\\()",
1067
+ "beginCaptures": {
1068
+ "1": {
1069
+ "name": "support.function.misc.scss"
1070
+ },
1071
+ "2": {
1072
+ "name": "punctuation.section.function.scss"
1073
+ }
1074
+ },
1075
+ "end": "(\\))",
1076
+ "endCaptures": {
1077
+ "1": {
1078
+ "name": "punctuation.section.function.scss"
1079
+ }
1080
+ },
1081
+ "patterns": [
1082
+ {
1083
+ "include": "#parameters"
1084
+ }
1085
+ ]
1086
+ },
1087
+ "flow_control": {
1088
+ "patterns": [
1089
+ {
1090
+ "include": "#at_rule_if"
1091
+ },
1092
+ {
1093
+ "include": "#at_rule_else"
1094
+ },
1095
+ {
1096
+ "include": "#at_rule_warn"
1097
+ },
1098
+ {
1099
+ "include": "#at_rule_for"
1100
+ },
1101
+ {
1102
+ "include": "#at_rule_while"
1103
+ },
1104
+ {
1105
+ "include": "#at_rule_each"
1106
+ },
1107
+ {
1108
+ "include": "#at_rule_return"
1109
+ }
1110
+ ]
1111
+ },
1112
+ "function_attributes": {
1113
+ "patterns": [
1114
+ {
1115
+ "match": ":",
1116
+ "name": "punctuation.separator.key-value.scss"
1117
+ },
1118
+ {
1119
+ "include": "#general"
1120
+ },
1121
+ {
1122
+ "include": "#property_values"
1123
+ },
1124
+ {
1125
+ "match": "[={}\\?;@]",
1126
+ "name": "invalid.illegal.scss"
1127
+ }
1128
+ ]
1129
+ },
1130
+ "functions": {
1131
+ "patterns": [
1132
+ {
1133
+ "begin": "([\\w-]{1,})(\\()\\s*",
1134
+ "beginCaptures": {
1135
+ "1": {
1136
+ "name": "support.function.misc.scss"
1137
+ },
1138
+ "2": {
1139
+ "name": "punctuation.section.function.scss"
1140
+ }
1141
+ },
1142
+ "end": "(\\))",
1143
+ "endCaptures": {
1144
+ "1": {
1145
+ "name": "punctuation.section.function.scss"
1146
+ }
1147
+ },
1148
+ "patterns": [
1149
+ {
1150
+ "include": "#parameters"
1151
+ }
1152
+ ]
1153
+ },
1154
+ {
1155
+ "match": "([\\w-]{1,})",
1156
+ "name": "support.function.misc.scss"
1157
+ }
1158
+ ]
1159
+ },
1160
+ "general": {
1161
+ "patterns": [
1162
+ {
1163
+ "include": "#variable"
1164
+ },
1165
+ {
1166
+ "include": "#comment_docblock"
1167
+ },
1168
+ {
1169
+ "include": "#comment_block"
1170
+ },
1171
+ {
1172
+ "include": "#comment_line"
1173
+ }
1174
+ ]
1175
+ },
1176
+ "interpolation": {
1177
+ "begin": "#{",
1178
+ "beginCaptures": {
1179
+ "0": {
1180
+ "name": "punctuation.definition.interpolation.begin.bracket.curly.scss"
1181
+ }
1182
+ },
1183
+ "end": "}",
1184
+ "endCaptures": {
1185
+ "0": {
1186
+ "name": "punctuation.definition.interpolation.end.bracket.curly.scss"
1187
+ }
1188
+ },
1189
+ "name": "variable.interpolation.scss",
1190
+ "patterns": [
1191
+ {
1192
+ "include": "#variable"
1193
+ },
1194
+ {
1195
+ "include": "#property_values"
1196
+ }
1197
+ ]
1198
+ },
1199
+ "logical_operators": {
1200
+ "match": "\\b(not|or|and)\\b",
1201
+ "name": "keyword.operator.logical.scss"
1202
+ },
1203
+ "map": {
1204
+ "begin": "\\(",
1205
+ "beginCaptures": {
1206
+ "0": {
1207
+ "name": "punctuation.definition.map.begin.bracket.round.scss"
1208
+ }
1209
+ },
1210
+ "end": "\\)",
1211
+ "endCaptures": {
1212
+ "0": {
1213
+ "name": "punctuation.definition.map.end.bracket.round.scss"
1214
+ }
1215
+ },
1216
+ "name": "meta.definition.variable.map.scss",
1217
+ "patterns": [
1218
+ {
1219
+ "include": "#comment_docblock"
1220
+ },
1221
+ {
1222
+ "include": "#comment_block"
1223
+ },
1224
+ {
1225
+ "include": "#comment_line"
1226
+ },
1227
+ {
1228
+ "captures": {
1229
+ "1": {
1230
+ "name": "support.type.map.key.scss"
1231
+ },
1232
+ "2": {
1233
+ "name": "punctuation.separator.key-value.scss"
1234
+ }
1235
+ },
1236
+ "match": "\\b([\\w-]+)\\s*(:)"
1237
+ },
1238
+ {
1239
+ "match": ",",
1240
+ "name": "punctuation.separator.delimiter.scss"
1241
+ },
1242
+ {
1243
+ "include": "#map"
1244
+ },
1245
+ {
1246
+ "include": "#variable"
1247
+ },
1248
+ {
1249
+ "include": "#property_values"
1250
+ }
1251
+ ]
1252
+ },
1253
+ "operators": {
1254
+ "match": "[-+*/](?!\\s*[-+*/])",
1255
+ "name": "keyword.operator.css"
1256
+ },
1257
+ "parameters": {
1258
+ "patterns": [
1259
+ {
1260
+ "include": "#variable"
1261
+ },
1262
+ {
1263
+ "begin": "\\(",
1264
+ "beginCaptures": {
1265
+ "0": {
1266
+ "name": "punctuation.definition.begin.bracket.round.scss"
1267
+ }
1268
+ },
1269
+ "end": "\\)",
1270
+ "endCaptures": {
1271
+ "0": {
1272
+ "name": "punctuation.definition.end.bracket.round.scss"
1273
+ }
1274
+ },
1275
+ "patterns": [
1276
+ {
1277
+ "include": "#function_attributes"
1278
+ }
1279
+ ]
1280
+ },
1281
+ {
1282
+ "include": "#property_values"
1283
+ },
1284
+ {
1285
+ "include": "#comment_block"
1286
+ },
1287
+ {
1288
+ "match": "[^'\",) \\t]+",
1289
+ "name": "variable.parameter.url.scss"
1290
+ },
1291
+ {
1292
+ "match": ",",
1293
+ "name": "punctuation.separator.delimiter.scss"
1294
+ }
1295
+ ]
1296
+ },
1297
+ "parent_selector_suffix": {
1298
+ "captures": {
1299
+ "1": {
1300
+ "name": "punctuation.definition.entity.css"
1301
+ },
1302
+ "2": {
1303
+ "patterns": [
1304
+ {
1305
+ "include": "#interpolation"
1306
+ },
1307
+ {
1308
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1309
+ "name": "constant.character.escape.scss"
1310
+ },
1311
+ {
1312
+ "match": "\\$|}",
1313
+ "name": "invalid.illegal.identifier.scss"
1314
+ }
1315
+ ]
1316
+ }
1317
+ },
1318
+ "match": "(?x)\n(?<=&)\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>+~|] # - Another selector\n | /\\* # - A block comment\n)",
1319
+ "name": "entity.other.attribute-name.parent-selector-suffix.css"
1320
+ },
1321
+ "properties": {
1322
+ "patterns": [
1323
+ {
1324
+ "begin": "(?<![-a-z])(?=[-a-z])",
1325
+ "end": "$|(?![-a-z])",
1326
+ "name": "meta.property-name.scss",
1327
+ "patterns": [
1328
+ {
1329
+ "include": "source.css#property-names"
1330
+ },
1331
+ {
1332
+ "include": "#at_rule_include"
1333
+ }
1334
+ ]
1335
+ },
1336
+ {
1337
+ "begin": "(:)\\s*(?!(\\s*{))",
1338
+ "beginCaptures": {
1339
+ "1": {
1340
+ "name": "punctuation.separator.key-value.scss"
1341
+ }
1342
+ },
1343
+ "contentName": "meta.property-value.scss",
1344
+ "end": "\\s*(;|(?=}|\\)))",
1345
+ "endCaptures": {
1346
+ "1": {
1347
+ "name": "punctuation.terminator.rule.scss"
1348
+ }
1349
+ },
1350
+ "patterns": [
1351
+ {
1352
+ "include": "#general"
1353
+ },
1354
+ {
1355
+ "include": "#property_values"
1356
+ }
1357
+ ]
1358
+ }
1359
+ ]
1360
+ },
1361
+ "property_list": {
1362
+ "begin": "{",
1363
+ "beginCaptures": {
1364
+ "0": {
1365
+ "name": "punctuation.section.property-list.begin.bracket.curly.scss"
1366
+ }
1367
+ },
1368
+ "end": "}",
1369
+ "endCaptures": {
1370
+ "0": {
1371
+ "name": "punctuation.section.property-list.end.bracket.curly.scss"
1372
+ }
1373
+ },
1374
+ "name": "meta.property-list.scss",
1375
+ "patterns": [
1376
+ {
1377
+ "include": "#flow_control"
1378
+ },
1379
+ {
1380
+ "include": "#rules"
1381
+ },
1382
+ {
1383
+ "include": "#properties"
1384
+ },
1385
+ {
1386
+ "include": "$self"
1387
+ }
1388
+ ]
1389
+ },
1390
+ "property_values": {
1391
+ "patterns": [
1392
+ {
1393
+ "include": "#string_single"
1394
+ },
1395
+ {
1396
+ "include": "#string_double"
1397
+ },
1398
+ {
1399
+ "include": "#constant_functions"
1400
+ },
1401
+ {
1402
+ "include": "#constant_sass_functions"
1403
+ },
1404
+ {
1405
+ "include": "#constant_important"
1406
+ },
1407
+ {
1408
+ "include": "#constant_default"
1409
+ },
1410
+ {
1411
+ "include": "#constant_optional"
1412
+ },
1413
+ {
1414
+ "include": "source.css#numeric-values"
1415
+ },
1416
+ {
1417
+ "include": "source.css#property-keywords"
1418
+ },
1419
+ {
1420
+ "include": "source.css#color-keywords"
1421
+ },
1422
+ {
1423
+ "include": "source.css#property-names"
1424
+ },
1425
+ {
1426
+ "include": "#constant_mathematical_symbols"
1427
+ },
1428
+ {
1429
+ "include": "#operators"
1430
+ },
1431
+ {
1432
+ "begin": "\\(",
1433
+ "beginCaptures": {
1434
+ "0": {
1435
+ "name": "punctuation.definition.begin.bracket.round.scss"
1436
+ }
1437
+ },
1438
+ "end": "\\)",
1439
+ "endCaptures": {
1440
+ "0": {
1441
+ "name": "punctuation.definition.end.bracket.round.scss"
1442
+ }
1443
+ },
1444
+ "patterns": [
1445
+ {
1446
+ "include": "#general"
1447
+ },
1448
+ {
1449
+ "include": "#property_values"
1450
+ }
1451
+ ]
1452
+ }
1453
+ ]
1454
+ },
1455
+ "rules": {
1456
+ "patterns": [
1457
+ {
1458
+ "include": "#general"
1459
+ },
1460
+ {
1461
+ "include": "#at_rule_extend"
1462
+ },
1463
+ {
1464
+ "include": "#at_rule_content"
1465
+ },
1466
+ {
1467
+ "include": "#at_rule_include"
1468
+ },
1469
+ {
1470
+ "include": "#at_rule_media"
1471
+ },
1472
+ {
1473
+ "include": "#selectors"
1474
+ }
1475
+ ]
1476
+ },
1477
+ "selector_attribute": {
1478
+ "captures": {
1479
+ "1": {
1480
+ "name": "punctuation.definition.attribute-selector.begin.bracket.square.scss"
1481
+ },
1482
+ "10": {
1483
+ "name": "punctuation.definition.string.begin.scss"
1484
+ },
1485
+ "11": {
1486
+ "patterns": [
1487
+ {
1488
+ "include": "#interpolation"
1489
+ },
1490
+ {
1491
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1492
+ "name": "constant.character.escape.scss"
1493
+ },
1494
+ {
1495
+ "match": "\\$|}",
1496
+ "name": "invalid.illegal.scss"
1497
+ }
1498
+ ]
1499
+ },
1500
+ "12": {
1501
+ "name": "punctuation.definition.string.end.scss"
1502
+ },
1503
+ "13": {
1504
+ "name": "punctuation.definition.attribute-selector.end.bracket.square.scss"
1505
+ },
1506
+ "2": {
1507
+ "name": "entity.other.attribute-name.attribute.scss",
1508
+ "patterns": [
1509
+ {
1510
+ "include": "#interpolation"
1511
+ },
1512
+ {
1513
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1514
+ "name": "constant.character.escape.scss"
1515
+ },
1516
+ {
1517
+ "match": "\\$|}",
1518
+ "name": "invalid.illegal.scss"
1519
+ }
1520
+ ]
1521
+ },
1522
+ "3": {
1523
+ "name": "keyword.operator.scss"
1524
+ },
1525
+ "4": {
1526
+ "name": "string.unquoted.attribute-value.scss",
1527
+ "patterns": [
1528
+ {
1529
+ "include": "#interpolation"
1530
+ },
1531
+ {
1532
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1533
+ "name": "constant.character.escape.scss"
1534
+ },
1535
+ {
1536
+ "match": "\\$|}",
1537
+ "name": "invalid.illegal.scss"
1538
+ }
1539
+ ]
1540
+ },
1541
+ "5": {
1542
+ "name": "string.quoted.double.attribute-value.scss"
1543
+ },
1544
+ "6": {
1545
+ "name": "punctuation.definition.string.begin.scss"
1546
+ },
1547
+ "7": {
1548
+ "patterns": [
1549
+ {
1550
+ "include": "#interpolation"
1551
+ },
1552
+ {
1553
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1554
+ "name": "constant.character.escape.scss"
1555
+ },
1556
+ {
1557
+ "match": "\\$|}",
1558
+ "name": "invalid.illegal.scss"
1559
+ }
1560
+ ]
1561
+ },
1562
+ "8": {
1563
+ "name": "punctuation.definition.string.end.scss"
1564
+ },
1565
+ "9": {
1566
+ "name": "string.quoted.single.attribute-value.scss"
1567
+ }
1568
+ },
1569
+ "match": "(?xi)\n(\\[)\n\\s*\n(\n (?:\n [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\.?\\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+?\n)\n(?:\n \\s*([~|^$*]?=)\\s*\n (?:\n (\n (?:\n [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\.?\\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+\n )\n |\n ((\")(.*?)(\"))\n |\n ((')(.*?)('))\n )\n)?\n\\s*\n(\\])",
1570
+ "name": "meta.attribute-selector.scss"
1571
+ },
1572
+ "selector_class": {
1573
+ "captures": {
1574
+ "1": {
1575
+ "name": "punctuation.definition.entity.css"
1576
+ },
1577
+ "2": {
1578
+ "patterns": [
1579
+ {
1580
+ "include": "#interpolation"
1581
+ },
1582
+ {
1583
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1584
+ "name": "constant.character.escape.scss"
1585
+ },
1586
+ {
1587
+ "match": "\\$|}",
1588
+ "name": "invalid.illegal.scss"
1589
+ }
1590
+ ]
1591
+ }
1592
+ },
1593
+ "match": "(?x)\n(\\.) # Valid class-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\.?\\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,\\#)\\[:{>+~|] # - Another selector\n | \\.[^$] # - Class selector, negating module variable\n | /\\* # - A block comment\n | ; # - A semicolon\n)",
1594
+ "name": "entity.other.attribute-name.class.css"
1595
+ },
1596
+ "selector_custom": {
1597
+ "match": "\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|\\s++[^:]|\\s*[,\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-(child|last-child|of-type|last-of-type)|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\([0-9A-Za-z]*\\))?)",
1598
+ "name": "entity.name.tag.custom.scss"
1599
+ },
1600
+ "selector_id": {
1601
+ "captures": {
1602
+ "1": {
1603
+ "name": "punctuation.definition.entity.css"
1604
+ },
1605
+ "2": {
1606
+ "patterns": [
1607
+ {
1608
+ "include": "#interpolation"
1609
+ },
1610
+ {
1611
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1612
+ "name": "constant.character.escape.scss"
1613
+ },
1614
+ {
1615
+ "match": "\\$|}",
1616
+ "name": "invalid.illegal.identifier.scss"
1617
+ }
1618
+ ]
1619
+ }
1620
+ },
1621
+ "match": "(?x)\n(\\#) # Valid id-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\.?\\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,\\#)\\[:{>+~|] # - Another selector\n | \\.[^$] # - Class selector, negating module variable\n | /\\* # - A block comment\n)",
1622
+ "name": "entity.other.attribute-name.id.css"
1623
+ },
1624
+ "selector_placeholder": {
1625
+ "captures": {
1626
+ "1": {
1627
+ "name": "punctuation.definition.entity.css"
1628
+ },
1629
+ "2": {
1630
+ "patterns": [
1631
+ {
1632
+ "include": "#interpolation"
1633
+ },
1634
+ {
1635
+ "match": "\\\\([0-9a-fA-F]{1,6}|.)",
1636
+ "name": "constant.character.escape.scss"
1637
+ },
1638
+ {
1639
+ "match": "\\$|}",
1640
+ "name": "invalid.illegal.identifier.scss"
1641
+ }
1642
+ ]
1643
+ }
1644
+ },
1645
+ "match": "(?x)\n(%) # Valid placeholder-name\n(\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # Valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # Escape sequence\n | \\#\\{ # Interpolation (escaped to avoid Coffeelint errors)\n | \\.\\$ # Possible start of interpolation module scope variable\n | \\$ # Possible start of interpolation variable\n | } # Possible end of interpolation\n )+\n) # Followed by either:\n(?= ; # - End of statement\n | $ # - End of the line\n | [\\s,\\#)\\[:{>+~|] # - Another selector\n | \\.[^$] # - Class selector, negating module variable\n | /\\* # - A block comment\n)",
1646
+ "name": "entity.other.attribute-name.placeholder.css"
1647
+ },
1648
+ "selector_pseudo_class": {
1649
+ "patterns": [
1650
+ {
1651
+ "begin": "((:)\\bnth-(?:child|last-child|of-type|last-of-type))(\\()",
1652
+ "beginCaptures": {
1653
+ "1": {
1654
+ "name": "entity.other.attribute-name.pseudo-class.css"
1655
+ },
1656
+ "2": {
1657
+ "name": "punctuation.definition.entity.css"
1658
+ },
1659
+ "3": {
1660
+ "name": "punctuation.definition.pseudo-class.begin.bracket.round.css"
1661
+ }
1662
+ },
1663
+ "end": "\\)",
1664
+ "endCaptures": {
1665
+ "0": {
1666
+ "name": "punctuation.definition.pseudo-class.end.bracket.round.css"
1667
+ }
1668
+ },
1669
+ "patterns": [
1670
+ {
1671
+ "include": "#interpolation"
1672
+ },
1673
+ {
1674
+ "match": "\\d+",
1675
+ "name": "constant.numeric.css"
1676
+ },
1677
+ {
1678
+ "match": "(?<=\\d)n\\b|\\b(n|even|odd)\\b",
1679
+ "name": "constant.other.scss"
1680
+ },
1681
+ {
1682
+ "match": "\\w+",
1683
+ "name": "invalid.illegal.scss"
1684
+ }
1685
+ ]
1686
+ },
1687
+ {
1688
+ "include": "source.css#pseudo-classes"
1689
+ },
1690
+ {
1691
+ "include": "source.css#pseudo-elements"
1692
+ },
1693
+ {
1694
+ "include": "source.css#functional-pseudo-classes"
1695
+ }
1696
+ ]
1697
+ },
1698
+ "selectors": {
1699
+ "patterns": [
1700
+ {
1701
+ "include": "source.css#tag-names"
1702
+ },
1703
+ {
1704
+ "include": "#selector_custom"
1705
+ },
1706
+ {
1707
+ "include": "#selector_class"
1708
+ },
1709
+ {
1710
+ "include": "#selector_id"
1711
+ },
1712
+ {
1713
+ "include": "#selector_pseudo_class"
1714
+ },
1715
+ {
1716
+ "include": "#tag_wildcard"
1717
+ },
1718
+ {
1719
+ "include": "#tag_parent_reference"
1720
+ },
1721
+ {
1722
+ "include": "source.css#pseudo-elements"
1723
+ },
1724
+ {
1725
+ "include": "#selector_attribute"
1726
+ },
1727
+ {
1728
+ "include": "#selector_placeholder"
1729
+ },
1730
+ {
1731
+ "include": "#parent_selector_suffix"
1732
+ }
1733
+ ]
1734
+ },
1735
+ "string_double": {
1736
+ "begin": "\"",
1737
+ "beginCaptures": {
1738
+ "0": {
1739
+ "name": "punctuation.definition.string.begin.scss"
1740
+ }
1741
+ },
1742
+ "end": "\"",
1743
+ "endCaptures": {
1744
+ "0": {
1745
+ "name": "punctuation.definition.string.end.scss"
1746
+ }
1747
+ },
1748
+ "name": "string.quoted.double.scss",
1749
+ "patterns": [
1750
+ {
1751
+ "match": "\\\\(\\h{1,6}|.)",
1752
+ "name": "constant.character.escape.scss"
1753
+ },
1754
+ {
1755
+ "include": "#interpolation"
1756
+ }
1757
+ ]
1758
+ },
1759
+ "string_single": {
1760
+ "begin": "'",
1761
+ "beginCaptures": {
1762
+ "0": {
1763
+ "name": "punctuation.definition.string.begin.scss"
1764
+ }
1765
+ },
1766
+ "end": "'",
1767
+ "endCaptures": {
1768
+ "0": {
1769
+ "name": "punctuation.definition.string.end.scss"
1770
+ }
1771
+ },
1772
+ "name": "string.quoted.single.scss",
1773
+ "patterns": [
1774
+ {
1775
+ "match": "\\\\(\\h{1,6}|.)",
1776
+ "name": "constant.character.escape.scss"
1777
+ },
1778
+ {
1779
+ "include": "#interpolation"
1780
+ }
1781
+ ]
1782
+ },
1783
+ "tag_parent_reference": {
1784
+ "match": "&",
1785
+ "name": "entity.name.tag.reference.scss"
1786
+ },
1787
+ "tag_wildcard": {
1788
+ "match": "\\*",
1789
+ "name": "entity.name.tag.wildcard.scss"
1790
+ },
1791
+ "variable": {
1792
+ "patterns": [
1793
+ {
1794
+ "include": "#variables"
1795
+ },
1796
+ {
1797
+ "include": "#interpolation"
1798
+ }
1799
+ ]
1800
+ },
1801
+ "variable_setting": {
1802
+ "begin": "(?=\\$[\\w-]+\\s*:)",
1803
+ "contentName": "meta.definition.variable.scss",
1804
+ "end": ";",
1805
+ "endCaptures": {
1806
+ "0": {
1807
+ "name": "punctuation.terminator.rule.scss"
1808
+ }
1809
+ },
1810
+ "patterns": [
1811
+ {
1812
+ "match": "\\$[\\w-]+(?=\\s*:)",
1813
+ "name": "variable.scss"
1814
+ },
1815
+ {
1816
+ "begin": ":",
1817
+ "beginCaptures": {
1818
+ "0": {
1819
+ "name": "punctuation.separator.key-value.scss"
1820
+ }
1821
+ },
1822
+ "end": "(?=;)",
1823
+ "patterns": [
1824
+ {
1825
+ "include": "#comment_docblock"
1826
+ },
1827
+ {
1828
+ "include": "#comment_block"
1829
+ },
1830
+ {
1831
+ "include": "#comment_line"
1832
+ },
1833
+ {
1834
+ "include": "#map"
1835
+ },
1836
+ {
1837
+ "include": "#property_values"
1838
+ },
1839
+ {
1840
+ "include": "#variable"
1841
+ },
1842
+ {
1843
+ "match": ",",
1844
+ "name": "punctuation.separator.delimiter.scss"
1845
+ }
1846
+ ]
1847
+ }
1848
+ ]
1849
+ },
1850
+ "variables": {
1851
+ "patterns": [
1852
+ {
1853
+ "captures": {
1854
+ "1": {
1855
+ "name": "variable.scss"
1856
+ },
1857
+ "2": {
1858
+ "name": "punctuation.access.module.scss"
1859
+ },
1860
+ "3": {
1861
+ "name": "variable.scss"
1862
+ }
1863
+ },
1864
+ "match": "\\b([\\w-]+)(\\.)(\\$[\\w-]+)\\b"
1865
+ },
1866
+ {
1867
+ "match": "(\\$|\\-\\-)[A-Za-z0-9_-]+\\b",
1868
+ "name": "variable.scss"
1869
+ }
1870
+ ]
1871
+ }
1872
+ },
1873
+ "scopeName": "source.css.scss"
1874
+ }