chamba 0.7.0 → 0.8.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 (120) hide show
  1. package/LICENSE +53 -14
  2. package/README.md +28 -8
  3. package/dist/commands/advanced.js +7 -278
  4. package/dist/commands/dev.js +11 -612
  5. package/dist/commands/doctor.js +1 -29
  6. package/dist/commands/menu.js +1 -80
  7. package/dist/commands/onboard.js +6 -230
  8. package/dist/commands/settings.js +15 -349
  9. package/dist/lib/agent-commands.js +2 -0
  10. package/dist/lib/agent-context.js +6 -210
  11. package/dist/lib/browser.js +1 -40
  12. package/dist/lib/chamba-yaml.js +10 -191
  13. package/dist/lib/constants.js +1 -125
  14. package/dist/lib/dockerfile-builder.js +41 -261
  15. package/dist/lib/env.js +2 -78
  16. package/dist/lib/git-env.js +1 -21
  17. package/dist/lib/global-config.js +4 -66
  18. package/dist/lib/pnpm-store.js +1 -19
  19. package/dist/lib/ports.js +1 -210
  20. package/dist/lib/safe-rm.js +1 -36
  21. package/dist/lib/sessions.js +2 -34
  22. package/dist/lib/shadows.js +1 -176
  23. package/dist/lib/skills.js +2 -0
  24. package/dist/lib/templates.js +1 -0
  25. package/dist/lib/webterm.js +1 -305
  26. package/dist/lib/workspace-identity.js +4 -260
  27. package/package.json +4 -4
  28. package/templates/Dockerfile +12 -19
  29. package/templates/claude-statusline.sh +5 -7
  30. package/templates/context/baseline.md +2 -0
  31. package/templates/pane-apps/client/assets/c-BNa-DeUl.json +3552 -0
  32. package/templates/pane-apps/client/assets/cpp-B-T4NRoH.json +20239 -0
  33. package/templates/pane-apps/client/assets/csharp-BbxHChhA.json +6010 -0
  34. package/templates/pane-apps/client/assets/css-CWCxuwmz.json +1860 -0
  35. package/templates/pane-apps/client/assets/diff-B-2N89g8.json +154 -0
  36. package/templates/pane-apps/client/assets/docker-DWTvYW26.json +103 -0
  37. package/templates/pane-apps/client/assets/files-D0nJgFAA.js +12 -0
  38. package/templates/pane-apps/client/assets/files-h0K1vZyQ.css +1 -0
  39. package/templates/pane-apps/client/assets/go-B2hyYeNg.json +3156 -0
  40. package/templates/pane-apps/client/assets/graphql-Z6Id2aNO.json +1292 -0
  41. package/templates/pane-apps/client/assets/html-BtzvlIfu.json +2627 -0
  42. package/templates/pane-apps/client/assets/ini-Bn3Twap1.json +108 -0
  43. package/templates/pane-apps/client/assets/java-C7t2dwLO.json +1885 -0
  44. package/templates/pane-apps/client/assets/javascript-DuC2v0C0.json +5996 -0
  45. package/templates/pane-apps/client/assets/json-CwdkWeV5.json +206 -0
  46. package/templates/pane-apps/client/assets/jsonc-MYWDbTU3.json +206 -0
  47. package/templates/pane-apps/client/assets/jsx-Cn8EZuIC.json +5996 -0
  48. package/templates/pane-apps/client/assets/kotlin-CFNOz1gw.json +580 -0
  49. package/templates/pane-apps/client/assets/make-BVnlFCcl.json +629 -0
  50. package/templates/pane-apps/client/assets/markdown-B4Xk2WM_.json +3263 -0
  51. package/templates/pane-apps/client/assets/php-CAQzQmmI.json +4188 -0
  52. package/templates/pane-apps/client/assets/python-CYQee8m4.json +4174 -0
  53. package/templates/pane-apps/client/assets/reviews-BsoGZ35r.css +1 -0
  54. package/templates/pane-apps/client/assets/reviews-iW0Mbn4e.js +153 -0
  55. package/templates/pane-apps/client/assets/ruby-D7R58tus.json +3114 -0
  56. package/templates/pane-apps/client/assets/rust-BFBbFiei.json +1103 -0
  57. package/templates/pane-apps/client/assets/scss-TQRhBkPG.json +1874 -0
  58. package/templates/pane-apps/client/assets/shellscript-DieAkC4W.json +2375 -0
  59. package/templates/pane-apps/client/assets/specs-D9z3neR-.js +13 -0
  60. package/templates/pane-apps/client/assets/sql-Bxd030LV.json +634 -0
  61. package/templates/pane-apps/client/assets/toml-ChrKGzsV.json +430 -0
  62. package/templates/pane-apps/client/assets/tsx-D2e90MFw.json +5996 -0
  63. package/templates/pane-apps/client/assets/typescript-DonXQ_n1.json +5747 -0
  64. package/templates/pane-apps/client/assets/xml-B17r2RXF.json +382 -0
  65. package/templates/pane-apps/client/assets/yaml-CKn4h1zy.json +627 -0
  66. package/templates/pane-apps/client/reviews/index.html +15 -0
  67. package/templates/pane-apps/client/specs/index.html +3 -2
  68. package/templates/pane-apps/server/reviews.mjs +20 -0
  69. package/templates/pane-apps/server/specs.mjs +5 -1588
  70. package/templates/skills/chamba-statusline/SKILL.md +7 -19
  71. package/templates/skills/dx-review/SKILL.md +123 -0
  72. package/templates/skills/dx-review/references/acts.md +162 -0
  73. package/templates/skills/dx-spec/SKILL.md +223 -27
  74. package/templates/skills/dx-spec/references/principles-template.md +2 -0
  75. package/templates/skills/dx-spec/references/review-guide.md +4 -50
  76. package/templates/skills/dx-spec/references/spec-guide.md +24 -4
  77. package/templates/skills/dx-spec/references/stages.md +143 -58
  78. package/templates/skills/dx-spec-execute/SKILL.md +148 -35
  79. package/templates/startup.mjs +10 -4
  80. package/templates/tool-helper.sh +166 -0
  81. package/templates/webterm/README.md +60 -26
  82. package/templates/webterm/color.js +61 -0
  83. package/templates/webterm/config.js +35 -4
  84. package/templates/webterm/context/claude.md +0 -1
  85. package/templates/webterm/public/app/alerts.js +4 -4
  86. package/templates/webterm/public/app/anchored.js +81 -0
  87. package/templates/webterm/public/app/connection.js +9 -0
  88. package/templates/webterm/public/app/dom.js +2 -0
  89. package/templates/webterm/public/app/frames.js +51 -17
  90. package/templates/webterm/public/app/main.js +22 -8
  91. package/templates/webterm/public/app/new-session.js +13 -41
  92. package/templates/webterm/public/app/palette.js +58 -0
  93. package/templates/webterm/public/app/pane-shape.js +167 -0
  94. package/templates/webterm/public/app/pane-shell.js +199 -134
  95. package/templates/webterm/public/app/pane.js +33 -24
  96. package/templates/webterm/public/app/reviews-host.js +15 -0
  97. package/templates/webterm/public/app/specs-host.js +12 -218
  98. package/templates/webterm/public/app/state.js +5 -0
  99. package/templates/webterm/public/app/tabs.js +6 -2
  100. package/templates/webterm/public/app/theme.js +75 -27
  101. package/templates/webterm/public/app/tool-host.js +302 -0
  102. package/templates/webterm/public/app/workspace-color.js +192 -0
  103. package/templates/webterm/public/index.html +17 -3
  104. package/templates/webterm/public/styles.css +143 -21
  105. package/templates/webterm/server.js +198 -150
  106. package/templates/webterm/tools/commands.js +61 -0
  107. package/templates/webterm/tools/index.js +25 -0
  108. package/templates/webterm/tools/mount.js +337 -0
  109. package/templates/webterm/tools/paths.js +34 -0
  110. package/templates/webterm/tools/reviews.js +133 -0
  111. package/templates/webterm/tools/specs.js +154 -0
  112. package/templates/webterm/typed-line.js +70 -7
  113. package/templates/context/context-usage.md +0 -1
  114. package/templates/context-usage.sh +0 -266
  115. package/templates/pane-apps/client/assets/specs-B1970L17.css +0 -1
  116. package/templates/pane-apps/client/assets/specs-cEee_SPn.js +0 -23
  117. package/templates/skills/dx-spec-config/SKILL.md +0 -313
  118. package/templates/skills/dx-spec-config/references/principles-template.md +0 -12
  119. package/templates/specs.sh +0 -106
  120. package/templates/webterm/specs.js +0 -358
@@ -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-Z_a-z][-\\w]|-[A-Z_a-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)-(?:|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[XY])(\\()",
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]+)(\\()\\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]+)",
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": "\\\\(\\h{1,6}|.)",
1309
+ "name": "constant.character.escape.scss"
1310
+ },
1311
+ {
1312
+ "match": "[$}]",
1313
+ "name": "invalid.illegal.identifier.scss"
1314
+ }
1315
+ ]
1316
+ }
1317
+ },
1318
+ "match": "(?<=&)((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|[$}])+)(?=$|[#)+,.:>\\[{|~\\s]|/\\*)",
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": "\\\\(\\h{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": "\\\\(\\h{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": "\\\\(\\h{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": "\\\\(\\h{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": "(?i)(\\[)\\s*((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|\\.?\\$|})+?)(?:\\s*([$*^|~]?=)\\s*(?:((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|\\.?\\$|})+)|((\")(.*?)(\"))|((')(.*?)('))))?\\s*(])",
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": "\\\\(\\h{1,6}|.)",
1584
+ "name": "constant.character.escape.scss"
1585
+ },
1586
+ {
1587
+ "match": "[$}]",
1588
+ "name": "invalid.illegal.scss"
1589
+ }
1590
+ ]
1591
+ }
1592
+ },
1593
+ "match": "(\\.)((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|\\.?\\$|})+)(?=$|[#)+,:>\\[{|~\\s]|\\.[^$]|/\\*|;)",
1594
+ "name": "entity.other.attribute-name.class.css"
1595
+ },
1596
+ "selector_custom": {
1597
+ "match": "\\b([0-9A-Za-z]+(-[0-9A-Za-z]+)+)(?=\\.|\\s++[^:]|\\s*[,\\[{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-((?:|last-)(?:child|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": "\\\\(\\h{1,6}|.)",
1612
+ "name": "constant.character.escape.scss"
1613
+ },
1614
+ {
1615
+ "match": "[$}]",
1616
+ "name": "invalid.illegal.identifier.scss"
1617
+ }
1618
+ ]
1619
+ }
1620
+ },
1621
+ "match": "(#)((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|\\.?\\$|})+)(?=$|[#)+,:>\\[{|~\\s]|\\.[^$]|/\\*)",
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": "\\\\(\\h{1,6}|.)",
1636
+ "name": "constant.character.escape.scss"
1637
+ },
1638
+ {
1639
+ "match": "[$}]",
1640
+ "name": "invalid.illegal.identifier.scss"
1641
+ }
1642
+ ]
1643
+ }
1644
+ },
1645
+ "match": "(%)((?:[-0-9A-Z_a-z[^\\x00-\\x7F]]|\\\\(?:\\h{1,6}|.)|#\\{|\\.\\$|[$}])+)(?=;|$|[#)+,:>\\[{|~\\s]|\\.[^$]|/\\*)",
1646
+ "name": "entity.other.attribute-name.placeholder.css"
1647
+ },
1648
+ "selector_pseudo_class": {
1649
+ "patterns": [
1650
+ {
1651
+ "begin": "((:)\\bnth-(?:|last-)(?:child|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(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": "(\\$|--)[-0-9A-Z_a-z]+\\b",
1868
+ "name": "variable.scss"
1869
+ }
1870
+ ]
1871
+ }
1872
+ },
1873
+ "scopeName": "source.css.scss"
1874
+ }