@iyio/syn-taxi 0.5.18 → 0.6.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 (43) hide show
  1. package/esm/src/lib/CodeInput.d.ts +7 -1
  2. package/esm/src/lib/CodeInput.js +130 -35
  3. package/esm/src/lib/CodeInput.js.map +1 -1
  4. package/esm/src/lib/CodeView.d.ts +3 -0
  5. package/esm/src/lib/CodeView.js +6 -3
  6. package/esm/src/lib/CodeView.js.map +1 -1
  7. package/esm/src/lib/LineNumbers.d.ts +3 -0
  8. package/esm/src/lib/LineNumbers.js +3 -0
  9. package/esm/src/lib/LineNumbers.js.map +1 -1
  10. package/esm/src/lib/grammar/atDotCss.d.ts +1349 -0
  11. package/esm/src/lib/grammar/atDotCss.js +2157 -0
  12. package/esm/src/lib/grammar/atDotCss.js.map +1 -0
  13. package/esm/src/lib/grammar/convo.d.ts +534 -0
  14. package/esm/src/lib/grammar/convo.js +570 -0
  15. package/esm/src/lib/grammar/convo.js.map +1 -0
  16. package/esm/src/lib/grammar/mdx.d.ts +2812 -0
  17. package/esm/src/lib/grammar/mdx.js +3758 -0
  18. package/esm/src/lib/grammar/mdx.js.map +1 -0
  19. package/esm/src/lib/shiki.d.ts +7 -2
  20. package/esm/src/lib/shiki.js +113 -441
  21. package/esm/src/lib/shiki.js.map +1 -1
  22. package/package.json +10 -11
  23. package/src/lib/CodeInput.d.ts +7 -1
  24. package/src/lib/CodeInput.js +128 -33
  25. package/src/lib/CodeInput.js.map +1 -1
  26. package/src/lib/CodeView.d.ts +3 -0
  27. package/src/lib/CodeView.js +6 -3
  28. package/src/lib/CodeView.js.map +1 -1
  29. package/src/lib/LineNumbers.d.ts +3 -0
  30. package/src/lib/LineNumbers.js +3 -0
  31. package/src/lib/LineNumbers.js.map +1 -1
  32. package/src/lib/grammar/atDotCss.d.ts +1349 -0
  33. package/src/lib/grammar/atDotCss.js +2160 -0
  34. package/src/lib/grammar/atDotCss.js.map +1 -0
  35. package/src/lib/grammar/convo.d.ts +534 -0
  36. package/src/lib/grammar/convo.js +573 -0
  37. package/src/lib/grammar/convo.js.map +1 -0
  38. package/src/lib/grammar/mdx.d.ts +2812 -0
  39. package/src/lib/grammar/mdx.js +3761 -0
  40. package/src/lib/grammar/mdx.js.map +1 -0
  41. package/src/lib/shiki.d.ts +7 -2
  42. package/src/lib/shiki.js +116 -442
  43. package/src/lib/shiki.js.map +1 -1
@@ -0,0 +1,2157 @@
1
+ export const atDotCssGrammar = {
2
+ "information_for_contributors": [
3
+ "This file has been converted from https://github.com/atom/language-css/blob/master/grammars/css.cson",
4
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
+ "Once accepted there, we are happy to receive an update request."
6
+ ],
7
+ "name": "atdot",
8
+ "scopeName": "source.atdot",
9
+ "patterns": [
10
+ {
11
+ "include": "#comment-block"
12
+ },
13
+ {
14
+ "include": "#escapes"
15
+ },
16
+ {
17
+ "include": "#combinators"
18
+ },
19
+ {
20
+ "include": "#selector"
21
+ },
22
+ {
23
+ "include": "#at-rules"
24
+ },
25
+ {
26
+ "include": "#rule-list"
27
+ },
28
+ {
29
+ "include": "#interpolation"
30
+ },
31
+ {
32
+ "include": "#at-triple-dot"
33
+ }
34
+ ],
35
+ "repository": {
36
+ "at-triple-dot": {
37
+ "match": "@@@[\\w-]+",
38
+ "name": "support.type"
39
+ },
40
+ "at-dot": {
41
+ "match": "@@[\\w-]+",
42
+ "name": "variable.other.constant.object.ts"
43
+ },
44
+ "interpolation": {
45
+ "patterns": [
46
+ {
47
+ "include": "#at-triple-dot"
48
+ },
49
+ {
50
+ "contentName": "meta.embedded.line.ts",
51
+ "begin": "\\${",
52
+ "beginCaptures": {
53
+ "0": {
54
+ "name": "punctuation.definition.interpolation.begin.bracket.curly.scss punctuation.definition.template-expression.begin.js"
55
+ }
56
+ },
57
+ "end": "}",
58
+ "endCaptures": {
59
+ "0": {
60
+ "name": "punctuation.definition.interpolation.end.bracket.curly.scss punctuation.definition.template-expression.end.js"
61
+ }
62
+ },
63
+ "name": "variable.interpolation.scss",
64
+ "patterns": [
65
+ {
66
+ "include": "source.ts#expression"
67
+ },
68
+ {
69
+ "include": "#interpolation"
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ },
75
+ "at-rules": {
76
+ "patterns": [
77
+ {
78
+ "include": "#interpolation"
79
+ },
80
+ {
81
+ "begin": "\\A(?:\\xEF\\xBB\\xBF)?(?i:(?=\\s*@charset\\b))",
82
+ "end": ";|(?=$)",
83
+ "endCaptures": {
84
+ "0": {
85
+ "name": "punctuation.terminator.rule.css"
86
+ }
87
+ },
88
+ "name": "meta.at-rule.charset.css",
89
+ "patterns": [
90
+ {
91
+ "include": "#interpolation"
92
+ },
93
+ {
94
+ "captures": {
95
+ "1": {
96
+ "name": "invalid.illegal.not-lowercase.charset.css"
97
+ },
98
+ "2": {
99
+ "name": "invalid.illegal.leading-whitespace.charset.css"
100
+ },
101
+ "3": {
102
+ "name": "invalid.illegal.no-whitespace.charset.css"
103
+ },
104
+ "4": {
105
+ "name": "invalid.illegal.whitespace.charset.css"
106
+ },
107
+ "5": {
108
+ "name": "invalid.illegal.not-double-quoted.charset.css"
109
+ },
110
+ "6": {
111
+ "name": "invalid.illegal.unclosed-string.charset.css"
112
+ },
113
+ "7": {
114
+ "name": "invalid.illegal.unexpected-characters.charset.css"
115
+ }
116
+ },
117
+ "match": "(?x) # Possible errors:\n\\G\n((?!@charset)@\\w+) # Not lowercase (@charset is case-sensitive)\n|\n\\G(\\s+) # Preceding whitespace\n|\n(@charset\\S[^;]*) # No whitespace after @charset\n|\n(?<=@charset) # Before quoted charset name\n(\\x20{2,}|\\t+) # More than one space used, or a tab\n|\n(?<=@charset\\x20) # Beginning of charset name\n([^\";]+) # Not double-quoted\n|\n(\"[^\"]+$) # Unclosed quote\n|\n(?<=\") # After charset name\n([^;]+) # Unexpected junk instead of semicolon"
118
+ },
119
+ {
120
+ "captures": {
121
+ "1": {
122
+ "name": "keyword.control.at-rule.charset.css"
123
+ },
124
+ "2": {
125
+ "name": "punctuation.definition.keyword.css"
126
+ }
127
+ },
128
+ "match": "((@)charset)(?=\\s)"
129
+ },
130
+ {
131
+ "begin": "\"",
132
+ "beginCaptures": {
133
+ "0": {
134
+ "name": "punctuation.definition.string.begin.css"
135
+ }
136
+ },
137
+ "end": "\"|$",
138
+ "endCaptures": {
139
+ "0": {
140
+ "name": "punctuation.definition.string.end.css"
141
+ }
142
+ },
143
+ "name": "string.quoted.double.css",
144
+ "patterns": [
145
+ {
146
+ "include": "#interpolation"
147
+ },
148
+ {
149
+ "begin": "(?:\\G|^)(?=(?:[^\"])+$)",
150
+ "end": "$",
151
+ "name": "invalid.illegal.unclosed.string.css"
152
+ }
153
+ ]
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "begin": "(?i)((@)import)(?:\\s+|$|(?=['\"]|/\\*))",
159
+ "beginCaptures": {
160
+ "1": {
161
+ "name": "keyword.control.at-rule.import.css"
162
+ },
163
+ "2": {
164
+ "name": "punctuation.definition.keyword.css"
165
+ }
166
+ },
167
+ "end": ";",
168
+ "endCaptures": {
169
+ "0": {
170
+ "name": "punctuation.terminator.rule.css"
171
+ }
172
+ },
173
+ "name": "meta.at-rule.import.css",
174
+ "patterns": [
175
+ {
176
+ "include": "#interpolation"
177
+ },
178
+ {
179
+ "begin": "\\G\\s*(?=/\\*)",
180
+ "end": "(?<=\\*/)\\s*",
181
+ "patterns": [
182
+ {
183
+ "include": "#interpolation"
184
+ },
185
+ {
186
+ "include": "#comment-block"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "include": "#string"
192
+ },
193
+ {
194
+ "include": "#url"
195
+ },
196
+ {
197
+ "include": "#media-query-list"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "begin": "(?i)((@)font-face)(?=\\s*|{|/\\*|$)",
203
+ "beginCaptures": {
204
+ "1": {
205
+ "name": "keyword.control.at-rule.font-face.css"
206
+ },
207
+ "2": {
208
+ "name": "punctuation.definition.keyword.css"
209
+ }
210
+ },
211
+ "end": "(?!\\G)",
212
+ "name": "meta.at-rule.font-face.css",
213
+ "patterns": [
214
+ {
215
+ "include": "#interpolation"
216
+ },
217
+ {
218
+ "include": "#comment-block"
219
+ },
220
+ {
221
+ "include": "#escapes"
222
+ },
223
+ {
224
+ "include": "#rule-list"
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "begin": "(?i)(@)page(?=[\\s:{]|/\\*|$)",
230
+ "captures": {
231
+ "0": {
232
+ "name": "keyword.control.at-rule.page.css"
233
+ },
234
+ "1": {
235
+ "name": "punctuation.definition.keyword.css"
236
+ }
237
+ },
238
+ "end": "(?=\\s*($|[:{;]))",
239
+ "name": "meta.at-rule.page.css",
240
+ "patterns": [
241
+ {
242
+ "include": "#interpolation"
243
+ },
244
+ {
245
+ "include": "#rule-list"
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "match": "(@)\\.(\\w*)",
251
+ "captures": {
252
+ "1": {
253
+ "name": "keyword.control.export"
254
+ },
255
+ "2": {
256
+ "name": "entity.other.attribute-name.class.css",
257
+ "patterns": [
258
+ {
259
+ "match": "root",
260
+ "captures": {
261
+ "0": {
262
+ "name": "keyword.control.export"
263
+ }
264
+ }
265
+ }
266
+ ]
267
+ }
268
+ }
269
+ },
270
+ {
271
+ "begin": "(?=@(mobileSmUp|mobileUp|tabletSmUp|tabletUp|desktopSmUp|desktopUp|mobileSmDown|mobileDown|tabletSmDown|tabletDown|desktopSmDown|desktopDown))",
272
+ "end": "(?<=})(?!\\G)",
273
+ "patterns": [
274
+ {
275
+ "include": "#interpolation"
276
+ },
277
+ {
278
+ "match": "\\G(@)(mobileSmUp|mobileUp|tabletSmUp|tabletUp|desktopSmUp|desktopUp|mobileSmDown|mobileDown|tabletSmDown|tabletDown|desktopSmDown|desktopDown)",
279
+ "captures": {
280
+ "0": {
281
+ "name": "keyword.control.at-rule.media.css"
282
+ },
283
+ "1": {
284
+ "name": "punctuation.definition.keyword.css"
285
+ }
286
+ }
287
+ },
288
+ {
289
+ "begin": "{",
290
+ "beginCaptures": {
291
+ "0": {
292
+ "name": "punctuation.section.media.begin.bracket.curly.css"
293
+ }
294
+ },
295
+ "end": "}",
296
+ "endCaptures": {
297
+ "0": {
298
+ "name": "punctuation.section.media.end.bracket.curly.css"
299
+ }
300
+ },
301
+ "name": "meta.at-rule.media.body.css",
302
+ "patterns": [
303
+ {
304
+ "include": "#interpolation"
305
+ },
306
+ {
307
+ "include": "$self"
308
+ }
309
+ ]
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "begin": "(?i)(?=@media(\\s|\\(|/\\*|$))",
315
+ "end": "(?<=})(?!\\G)",
316
+ "patterns": [
317
+ {
318
+ "include": "#interpolation"
319
+ },
320
+ {
321
+ "begin": "(?i)\\G(@)media",
322
+ "beginCaptures": {
323
+ "0": {
324
+ "name": "keyword.control.at-rule.media.css"
325
+ },
326
+ "1": {
327
+ "name": "punctuation.definition.keyword.css"
328
+ }
329
+ },
330
+ "end": "(?=\\s*[{;])",
331
+ "name": "meta.at-rule.media.header.css",
332
+ "patterns": [
333
+ {
334
+ "include": "#interpolation"
335
+ },
336
+ {
337
+ "include": "#media-query-list"
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ "begin": "{",
343
+ "beginCaptures": {
344
+ "0": {
345
+ "name": "punctuation.section.media.begin.bracket.curly.css"
346
+ }
347
+ },
348
+ "end": "}",
349
+ "endCaptures": {
350
+ "0": {
351
+ "name": "punctuation.section.media.end.bracket.curly.css"
352
+ }
353
+ },
354
+ "name": "meta.at-rule.media.body.css",
355
+ "patterns": [
356
+ {
357
+ "include": "#interpolation"
358
+ },
359
+ {
360
+ "include": "$self"
361
+ }
362
+ ]
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "begin": "(?i)(?=@counter-style([\\s'\"{;]|/\\*|$))",
368
+ "end": "(?<=})(?!\\G)",
369
+ "patterns": [
370
+ {
371
+ "include": "#interpolation"
372
+ },
373
+ {
374
+ "begin": "(?i)\\G(@)counter-style",
375
+ "beginCaptures": {
376
+ "0": {
377
+ "name": "keyword.control.at-rule.counter-style.css"
378
+ },
379
+ "1": {
380
+ "name": "punctuation.definition.keyword.css"
381
+ }
382
+ },
383
+ "end": "(?=\\s*{)",
384
+ "name": "meta.at-rule.counter-style.header.css",
385
+ "patterns": [
386
+ {
387
+ "include": "#interpolation"
388
+ },
389
+ {
390
+ "include": "#comment-block"
391
+ },
392
+ {
393
+ "include": "#escapes"
394
+ },
395
+ {
396
+ "captures": {
397
+ "0": {
398
+ "patterns": [
399
+ {
400
+ "include": "#escapes"
401
+ }
402
+ ]
403
+ }
404
+ },
405
+ "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
406
+ "name": "variable.parameter.style-name.css"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "begin": "{",
412
+ "beginCaptures": {
413
+ "0": {
414
+ "name": "punctuation.section.property-list.begin.bracket.curly.css"
415
+ }
416
+ },
417
+ "end": "}",
418
+ "endCaptures": {
419
+ "0": {
420
+ "name": "punctuation.section.property-list.end.bracket.curly.css"
421
+ }
422
+ },
423
+ "name": "meta.at-rule.counter-style.body.css",
424
+ "patterns": [
425
+ {
426
+ "include": "#interpolation"
427
+ },
428
+ {
429
+ "include": "#comment-block"
430
+ },
431
+ {
432
+ "include": "#escapes"
433
+ },
434
+ {
435
+ "include": "#rule-list-innards"
436
+ }
437
+ ]
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "begin": "(?i)(?=@document([\\s'\"{;]|/\\*|$))",
443
+ "end": "(?<=})(?!\\G)",
444
+ "patterns": [
445
+ {
446
+ "include": "#interpolation"
447
+ },
448
+ {
449
+ "begin": "(?i)\\G(@)document",
450
+ "beginCaptures": {
451
+ "0": {
452
+ "name": "keyword.control.at-rule.document.css"
453
+ },
454
+ "1": {
455
+ "name": "punctuation.definition.keyword.css"
456
+ }
457
+ },
458
+ "end": "(?=\\s*[{;])",
459
+ "name": "meta.at-rule.document.header.css",
460
+ "patterns": [
461
+ {
462
+ "include": "#interpolation"
463
+ },
464
+ {
465
+ "begin": "(?i)(?<![\\w-])(url-prefix|domain|regexp)(\\()",
466
+ "beginCaptures": {
467
+ "1": {
468
+ "name": "support.function.document-rule.css"
469
+ },
470
+ "2": {
471
+ "name": "punctuation.section.function.begin.bracket.round.css"
472
+ }
473
+ },
474
+ "end": "\\)",
475
+ "endCaptures": {
476
+ "0": {
477
+ "name": "punctuation.section.function.end.bracket.round.css"
478
+ }
479
+ },
480
+ "name": "meta.function.document-rule.css",
481
+ "patterns": [
482
+ {
483
+ "include": "#interpolation"
484
+ },
485
+ {
486
+ "include": "#string"
487
+ },
488
+ {
489
+ "include": "#comment-block"
490
+ },
491
+ {
492
+ "include": "#escapes"
493
+ },
494
+ {
495
+ "match": "[^'\")\\s]+",
496
+ "name": "variable.parameter.document-rule.css"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "include": "#url"
502
+ },
503
+ {
504
+ "include": "#commas"
505
+ },
506
+ {
507
+ "include": "#comment-block"
508
+ },
509
+ {
510
+ "include": "#escapes"
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "begin": "{",
516
+ "beginCaptures": {
517
+ "0": {
518
+ "name": "punctuation.section.document.begin.bracket.curly.css"
519
+ }
520
+ },
521
+ "end": "}",
522
+ "endCaptures": {
523
+ "0": {
524
+ "name": "punctuation.section.document.end.bracket.curly.css"
525
+ }
526
+ },
527
+ "name": "meta.at-rule.document.body.css",
528
+ "patterns": [
529
+ {
530
+ "include": "#interpolation"
531
+ },
532
+ {
533
+ "include": "$self"
534
+ }
535
+ ]
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "begin": "(?i)(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\\s'\"{;]|/\\*|$))",
541
+ "end": "(?<=})(?!\\G)",
542
+ "patterns": [
543
+ {
544
+ "include": "#interpolation"
545
+ },
546
+ {
547
+ "begin": "(?i)\\G(@)(?:-(?:webkit|moz|o|ms)-)?keyframes",
548
+ "beginCaptures": {
549
+ "0": {
550
+ "name": "keyword.control.at-rule.keyframes.css"
551
+ },
552
+ "1": {
553
+ "name": "punctuation.definition.keyword.css"
554
+ }
555
+ },
556
+ "end": "(?=\\s*{)",
557
+ "name": "meta.at-rule.keyframes.header.css",
558
+ "patterns": [
559
+ {
560
+ "include": "#interpolation"
561
+ },
562
+ {
563
+ "include": "#comment-block"
564
+ },
565
+ {
566
+ "include": "#escapes"
567
+ },
568
+ {
569
+ "captures": {
570
+ "0": {
571
+ "patterns": [
572
+ {
573
+ "include": "#interpolation"
574
+ },
575
+ {
576
+ "include": "#escapes"
577
+ }
578
+ ]
579
+ }
580
+ },
581
+ "match": "(?x)\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
582
+ "name": "variable.parameter.keyframe-list.css"
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ "begin": "{",
588
+ "beginCaptures": {
589
+ "0": {
590
+ "name": "punctuation.section.keyframes.begin.bracket.curly.css"
591
+ }
592
+ },
593
+ "end": "}",
594
+ "endCaptures": {
595
+ "0": {
596
+ "name": "punctuation.section.keyframes.end.bracket.curly.css"
597
+ }
598
+ },
599
+ "name": "meta.at-rule.keyframes.body.css",
600
+ "patterns": [
601
+ {
602
+ "include": "#interpolation"
603
+ },
604
+ {
605
+ "include": "#comment-block"
606
+ },
607
+ {
608
+ "include": "#escapes"
609
+ },
610
+ {
611
+ "captures": {
612
+ "1": {
613
+ "name": "entity.other.keyframe-offset.css"
614
+ },
615
+ "2": {
616
+ "name": "entity.other.keyframe-offset.percentage.css"
617
+ }
618
+ },
619
+ "match": "(?xi)\n(?<![\\w-]) (from|to) (?![\\w-]) # Keywords for 0% | 100%\n|\n([-+]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%) # Percentile value"
620
+ },
621
+ {
622
+ "include": "#rule-list"
623
+ }
624
+ ]
625
+ }
626
+ ]
627
+ },
628
+ {
629
+ "begin": "(?i)(?=@supports(\\s|\\(|/\\*|$))",
630
+ "end": "(?<=})(?!\\G)|(?=;)",
631
+ "patterns": [
632
+ {
633
+ "include": "#interpolation"
634
+ },
635
+ {
636
+ "begin": "(?i)\\G(@)supports",
637
+ "beginCaptures": {
638
+ "0": {
639
+ "name": "keyword.control.at-rule.supports.css"
640
+ },
641
+ "1": {
642
+ "name": "punctuation.definition.keyword.css"
643
+ }
644
+ },
645
+ "end": "(?=\\s*[{;])",
646
+ "name": "meta.at-rule.supports.header.css",
647
+ "patterns": [
648
+ {
649
+ "include": "#interpolation"
650
+ },
651
+ {
652
+ "include": "#feature-query-operators"
653
+ },
654
+ {
655
+ "include": "#feature-query"
656
+ },
657
+ {
658
+ "include": "#comment-block"
659
+ },
660
+ {
661
+ "include": "#escapes"
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "begin": "{",
667
+ "beginCaptures": {
668
+ "0": {
669
+ "name": "punctuation.section.supports.begin.bracket.curly.css"
670
+ }
671
+ },
672
+ "end": "}",
673
+ "endCaptures": {
674
+ "0": {
675
+ "name": "punctuation.section.supports.end.bracket.curly.css"
676
+ }
677
+ },
678
+ "name": "meta.at-rule.supports.body.css",
679
+ "patterns": [
680
+ {
681
+ "include": "#interpolation"
682
+ },
683
+ {
684
+ "include": "$self"
685
+ }
686
+ ]
687
+ }
688
+ ]
689
+ },
690
+ {
691
+ "begin": "(?i)((@)viewport)(?=[\\s'\"{;]|/\\*|$)",
692
+ "beginCaptures": {
693
+ "1": {
694
+ "name": "keyword.control.at-rule.viewport.css"
695
+ },
696
+ "2": {
697
+ "name": "punctuation.definition.keyword.css"
698
+ }
699
+ },
700
+ "end": "(?=\\s*[@{;])",
701
+ "name": "meta.at-rule.viewport.css",
702
+ "patterns": [
703
+ {
704
+ "include": "#interpolation"
705
+ },
706
+ {
707
+ "include": "#comment-block"
708
+ },
709
+ {
710
+ "include": "#escapes"
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "begin": "(?i)((@)font-feature-values)(?=[\\s'\"{;]|/\\*|$)\\s*",
716
+ "beginCaptures": {
717
+ "1": {
718
+ "name": "keyword.control.at-rule.font-feature-values.css"
719
+ },
720
+ "2": {
721
+ "name": "punctuation.definition.keyword.css"
722
+ }
723
+ },
724
+ "contentName": "variable.parameter.font-name.css",
725
+ "end": "(?=\\s*[@{;])",
726
+ "name": "meta.at-rule.font-features.css",
727
+ "patterns": [
728
+ {
729
+ "include": "#interpolation"
730
+ },
731
+ {
732
+ "include": "#comment-block"
733
+ },
734
+ {
735
+ "include": "#escapes"
736
+ }
737
+ ]
738
+ },
739
+ {
740
+ "include": "#font-features"
741
+ },
742
+ {
743
+ "begin": "(?i)((@)namespace)(?=[\\s'\";]|/\\*|$)",
744
+ "beginCaptures": {
745
+ "1": {
746
+ "name": "keyword.control.at-rule.namespace.css"
747
+ },
748
+ "2": {
749
+ "name": "punctuation.definition.keyword.css"
750
+ }
751
+ },
752
+ "end": ";|(?=[@{])",
753
+ "endCaptures": {
754
+ "0": {
755
+ "name": "punctuation.terminator.rule.css"
756
+ }
757
+ },
758
+ "name": "meta.at-rule.namespace.css",
759
+ "patterns": [
760
+ {
761
+ "include": "#interpolation"
762
+ },
763
+ {
764
+ "include": "#url"
765
+ },
766
+ {
767
+ "captures": {
768
+ "1": {
769
+ "patterns": [
770
+ {
771
+ "include": "#interpolation"
772
+ },
773
+ {
774
+ "include": "#comment-block"
775
+ }
776
+ ]
777
+ },
778
+ "2": {
779
+ "name": "entity.name.function.namespace-prefix.css",
780
+ "patterns": [
781
+ {
782
+ "include": "#interpolation"
783
+ },
784
+ {
785
+ "include": "#escapes"
786
+ }
787
+ ]
788
+ }
789
+ },
790
+ "match": "(?xi)\n(?:\\G|^|(?<=\\s))\n(?=\n (?<=\\s|^) # Starts with whitespace\n (?:[-a-zA-Z_]|[^\\x00-\\x7F]) # Then a valid identifier character\n |\n \\s* # Possible adjoining whitespace\n /\\*(?:[^*]|\\*[^/])*\\*/ # Injected comment\n)\n(.*?) # Grouped to embed #comment-block\n(\n (?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n (?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n)"
791
+ },
792
+ {
793
+ "include": "#comment-block"
794
+ },
795
+ {
796
+ "include": "#escapes"
797
+ },
798
+ {
799
+ "include": "#string"
800
+ }
801
+ ]
802
+ }
803
+ ]
804
+ },
805
+ "color-keywords": {
806
+ "patterns": [
807
+ {
808
+ "include": "#interpolation"
809
+ },
810
+ {
811
+ "match": "(?i)(?<![\\w-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\\w-])",
812
+ "name": "support.constant.color.w3c-standard-color-name.css"
813
+ },
814
+ {
815
+ "match": "(?xi) (?<![\\w-])\n(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood\n|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan\n|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange\n|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise\n|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen\n|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki\n|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow\n|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray\n|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue\n|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise\n|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered\n|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum\n|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell\n|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato\n|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)\n(?![\\w-])",
816
+ "name": "support.constant.color.w3c-extended-color-name.css"
817
+ },
818
+ {
819
+ "match": "(?i)(?<![\\w-])currentColor(?![\\w-])",
820
+ "name": "support.constant.color.current.css"
821
+ },
822
+ {
823
+ "match": "(?xi) (?<![\\w-])\n(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow\n|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption\n|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow\n|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)\n(?![\\w-])",
824
+ "name": "invalid.deprecated.color.system.css"
825
+ }
826
+ ]
827
+ },
828
+ "combinators": {
829
+ "patterns": [
830
+ {
831
+ "include": "#interpolation"
832
+ },
833
+ {
834
+ "match": "/deep/|>>>",
835
+ "name": "invalid.deprecated.combinator.css"
836
+ },
837
+ {
838
+ "match": ">>|>|\\+|~",
839
+ "name": "keyword.operator.combinator.css"
840
+ }
841
+ ]
842
+ },
843
+ "commas": {
844
+ "match": ",",
845
+ "name": "punctuation.separator.list.comma.css"
846
+ },
847
+ "comment-block": {
848
+ "begin": "/\\*",
849
+ "beginCaptures": {
850
+ "0": {
851
+ "name": "punctuation.definition.comment.begin.css"
852
+ }
853
+ },
854
+ "end": "\\*/",
855
+ "endCaptures": {
856
+ "0": {
857
+ "name": "punctuation.definition.comment.end.css"
858
+ }
859
+ },
860
+ "name": "comment.block.css"
861
+ },
862
+ "escapes": {
863
+ "patterns": [
864
+ {
865
+ "include": "#interpolation"
866
+ },
867
+ {
868
+ "match": "\\\\[0-9a-fA-F]{1,6}",
869
+ "name": "constant.character.escape.codepoint.css"
870
+ },
871
+ {
872
+ "begin": "\\\\$\\s*",
873
+ "end": "^(?<!\\G)",
874
+ "name": "constant.character.escape.newline.css"
875
+ },
876
+ {
877
+ "match": "\\\\.",
878
+ "name": "constant.character.escape.css"
879
+ }
880
+ ]
881
+ },
882
+ "feature-query": {
883
+ "begin": "\\(",
884
+ "beginCaptures": {
885
+ "0": {
886
+ "name": "punctuation.definition.condition.begin.bracket.round.css"
887
+ }
888
+ },
889
+ "end": "\\)",
890
+ "endCaptures": {
891
+ "0": {
892
+ "name": "punctuation.definition.condition.end.bracket.round.css"
893
+ }
894
+ },
895
+ "name": "meta.feature-query.css",
896
+ "patterns": [
897
+ {
898
+ "include": "#interpolation"
899
+ },
900
+ {
901
+ "include": "#feature-query-operators"
902
+ },
903
+ {
904
+ "include": "#feature-query"
905
+ }
906
+ ]
907
+ },
908
+ "feature-query-operators": {
909
+ "patterns": [
910
+ {
911
+ "include": "#interpolation"
912
+ },
913
+ {
914
+ "match": "(?i)(?<=[\\s()]|^|\\*/)(and|not|or)(?=[\\s()]|/\\*|$)",
915
+ "name": "keyword.operator.logical.feature.$1.css"
916
+ },
917
+ {
918
+ "include": "#rule-list-innards"
919
+ }
920
+ ]
921
+ },
922
+ "font-features": {
923
+ "begin": "(?xi)\n((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))\n(?=[\\s@'\"{;]|/\\*|$)",
924
+ "beginCaptures": {
925
+ "1": {
926
+ "name": "keyword.control.at-rule.${3:/downcase}.css"
927
+ },
928
+ "2": {
929
+ "name": "punctuation.definition.keyword.css"
930
+ }
931
+ },
932
+ "end": "(?<=})",
933
+ "name": "meta.at-rule.${3:/downcase}.css",
934
+ "patterns": [
935
+ {
936
+ "include": "#interpolation"
937
+ },
938
+ {
939
+ "begin": "{",
940
+ "beginCaptures": {
941
+ "0": {
942
+ "name": "punctuation.section.property-list.begin.bracket.curly.css"
943
+ }
944
+ },
945
+ "end": "}",
946
+ "endCaptures": {
947
+ "0": {
948
+ "name": "punctuation.section.property-list.end.bracket.curly.css"
949
+ }
950
+ },
951
+ "name": "meta.property-list.font-feature.css",
952
+ "patterns": [
953
+ {
954
+ "include": "#interpolation"
955
+ },
956
+ {
957
+ "captures": {
958
+ "0": {
959
+ "patterns": [
960
+ {
961
+ "include": "#interpolation"
962
+ },
963
+ {
964
+ "include": "#escapes"
965
+ }
966
+ ]
967
+ }
968
+ },
969
+ "match": "(?x)\n(?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n(?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
970
+ "name": "variable.font-feature.css"
971
+ },
972
+ {
973
+ "include": "#rule-list-innards"
974
+ }
975
+ ]
976
+ }
977
+ ]
978
+ },
979
+ "functions": {
980
+ "patterns": [
981
+ {
982
+ "include": "#interpolation"
983
+ },
984
+ {
985
+ "begin": "(?i)(?<![\\w-])(calc)(\\()",
986
+ "beginCaptures": {
987
+ "1": {
988
+ "name": "support.function.calc.css"
989
+ },
990
+ "2": {
991
+ "name": "punctuation.section.function.begin.bracket.round.css"
992
+ }
993
+ },
994
+ "end": "\\)",
995
+ "endCaptures": {
996
+ "0": {
997
+ "name": "punctuation.section.function.end.bracket.round.css"
998
+ }
999
+ },
1000
+ "name": "meta.function.calc.css",
1001
+ "patterns": [
1002
+ {
1003
+ "include": "#interpolation"
1004
+ },
1005
+ {
1006
+ "match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
1007
+ "name": "keyword.operator.arithmetic.css"
1008
+ },
1009
+ {
1010
+ "include": "#property-values"
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "begin": "(?i)(?<![\\w-])(rgba?|hsla?)(\\()",
1016
+ "beginCaptures": {
1017
+ "1": {
1018
+ "name": "support.function.misc.css"
1019
+ },
1020
+ "2": {
1021
+ "name": "punctuation.section.function.begin.bracket.round.css"
1022
+ }
1023
+ },
1024
+ "end": "\\)",
1025
+ "endCaptures": {
1026
+ "0": {
1027
+ "name": "punctuation.section.function.end.bracket.round.css"
1028
+ }
1029
+ },
1030
+ "name": "meta.function.color.css",
1031
+ "patterns": [
1032
+ {
1033
+ "include": "#interpolation"
1034
+ },
1035
+ {
1036
+ "include": "#property-values"
1037
+ }
1038
+ ]
1039
+ },
1040
+ {
1041
+ "begin": "(?xi) (?<![\\w-])\n(\n (?:-webkit-|-moz-|-o-)? # Accept prefixed/historical variants\n (?:repeating-)? # \"Repeating\"-type gradient\n (?:linear|radial|conic) # Shape\n -gradient\n)\n(\\()",
1042
+ "beginCaptures": {
1043
+ "1": {
1044
+ "name": "support.function.gradient.css"
1045
+ },
1046
+ "2": {
1047
+ "name": "punctuation.section.function.begin.bracket.round.css"
1048
+ }
1049
+ },
1050
+ "end": "\\)",
1051
+ "endCaptures": {
1052
+ "0": {
1053
+ "name": "punctuation.section.function.end.bracket.round.css"
1054
+ }
1055
+ },
1056
+ "name": "meta.function.gradient.css",
1057
+ "patterns": [
1058
+ {
1059
+ "include": "#interpolation"
1060
+ },
1061
+ {
1062
+ "match": "(?i)(?<![\\w-])(from|to|at)(?![\\w-])",
1063
+ "name": "keyword.operator.gradient.css"
1064
+ },
1065
+ {
1066
+ "include": "#property-values"
1067
+ }
1068
+ ]
1069
+ },
1070
+ {
1071
+ "begin": "(?i)(?<![\\w-])(-webkit-gradient)(\\()",
1072
+ "beginCaptures": {
1073
+ "1": {
1074
+ "name": "invalid.deprecated.gradient.function.css"
1075
+ },
1076
+ "2": {
1077
+ "name": "punctuation.section.function.begin.bracket.round.css"
1078
+ }
1079
+ },
1080
+ "end": "\\)",
1081
+ "endCaptures": {
1082
+ "0": {
1083
+ "name": "punctuation.section.function.end.bracket.round.css"
1084
+ }
1085
+ },
1086
+ "name": "meta.function.gradient.invalid.deprecated.gradient.css",
1087
+ "patterns": [
1088
+ {
1089
+ "include": "#interpolation"
1090
+ },
1091
+ {
1092
+ "begin": "(?i)(?<![\\w-])(from|to|color-stop)(\\()",
1093
+ "beginCaptures": {
1094
+ "1": {
1095
+ "name": "invalid.deprecated.function.css"
1096
+ },
1097
+ "2": {
1098
+ "name": "punctuation.section.function.begin.bracket.round.css"
1099
+ }
1100
+ },
1101
+ "end": "\\)",
1102
+ "endCaptures": {
1103
+ "0": {
1104
+ "name": "punctuation.section.function.end.bracket.round.css"
1105
+ }
1106
+ },
1107
+ "patterns": [
1108
+ {
1109
+ "include": "#interpolation"
1110
+ },
1111
+ {
1112
+ "include": "#property-values"
1113
+ }
1114
+ ]
1115
+ },
1116
+ {
1117
+ "include": "#property-values"
1118
+ }
1119
+ ]
1120
+ },
1121
+ {
1122
+ "begin": "(?xi) (?<![\\w-])\n(annotation|attr|blur|brightness|character-variant|contrast|counters?\n|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate\n|image-set|invert|local|minmax|opacity|ornaments|repeat|saturate|sepia\n|styleset|stylistic|swash|symbols)\n(\\()",
1123
+ "beginCaptures": {
1124
+ "1": {
1125
+ "name": "support.function.misc.css"
1126
+ },
1127
+ "2": {
1128
+ "name": "punctuation.section.function.begin.bracket.round.css"
1129
+ }
1130
+ },
1131
+ "end": "\\)",
1132
+ "endCaptures": {
1133
+ "0": {
1134
+ "name": "punctuation.section.function.end.bracket.round.css"
1135
+ }
1136
+ },
1137
+ "name": "meta.function.misc.css",
1138
+ "patterns": [
1139
+ {
1140
+ "include": "#interpolation"
1141
+ },
1142
+ {
1143
+ "match": "(?i)(?<=[,\\s\"]|\\*/|^)\\d+x(?=[\\s,\"')]|/\\*|$)",
1144
+ "name": "constant.numeric.other.density.css"
1145
+ },
1146
+ {
1147
+ "include": "#property-values"
1148
+ },
1149
+ {
1150
+ "match": "[^'\"),\\s]+",
1151
+ "name": "variable.parameter.misc.css"
1152
+ }
1153
+ ]
1154
+ },
1155
+ {
1156
+ "begin": "(?i)(?<![\\w-])(circle|ellipse|inset|polygon|rect)(\\()",
1157
+ "beginCaptures": {
1158
+ "1": {
1159
+ "name": "support.function.shape.css"
1160
+ },
1161
+ "2": {
1162
+ "name": "punctuation.section.function.begin.bracket.round.css"
1163
+ }
1164
+ },
1165
+ "end": "\\)",
1166
+ "endCaptures": {
1167
+ "0": {
1168
+ "name": "punctuation.section.function.end.bracket.round.css"
1169
+ }
1170
+ },
1171
+ "name": "meta.function.shape.css",
1172
+ "patterns": [
1173
+ {
1174
+ "include": "#interpolation"
1175
+ },
1176
+ {
1177
+ "match": "(?i)(?<=\\s|^|\\*/)(at|round)(?=\\s|/\\*|$)",
1178
+ "name": "keyword.operator.shape.css"
1179
+ },
1180
+ {
1181
+ "include": "#property-values"
1182
+ }
1183
+ ]
1184
+ },
1185
+ {
1186
+ "begin": "(?i)(?<![\\w-])(cubic-bezier|steps)(\\()",
1187
+ "beginCaptures": {
1188
+ "1": {
1189
+ "name": "support.function.timing-function.css"
1190
+ },
1191
+ "2": {
1192
+ "name": "punctuation.section.function.begin.bracket.round.css"
1193
+ }
1194
+ },
1195
+ "end": "\\)",
1196
+ "endCaptures": {
1197
+ "0": {
1198
+ "name": "punctuation.section.function.end.bracket.round.css"
1199
+ }
1200
+ },
1201
+ "name": "meta.function.timing-function.css",
1202
+ "patterns": [
1203
+ {
1204
+ "include": "#interpolation"
1205
+ },
1206
+ {
1207
+ "match": "(?i)(?<![\\w-])(start|end)(?=\\s*\\)|$)",
1208
+ "name": "support.constant.step-direction.css"
1209
+ },
1210
+ {
1211
+ "include": "#property-values"
1212
+ }
1213
+ ]
1214
+ },
1215
+ {
1216
+ "begin": "(?xi) (?<![\\w-])\n( (?:translate|scale|rotate)(?:[XYZ]|3D)?\n| matrix(?:3D)?\n| skew[XY]?\n| perspective\n)\n(\\()",
1217
+ "beginCaptures": {
1218
+ "1": {
1219
+ "name": "support.function.transform.css"
1220
+ },
1221
+ "2": {
1222
+ "name": "punctuation.section.function.begin.bracket.round.css"
1223
+ }
1224
+ },
1225
+ "end": "\\)",
1226
+ "endCaptures": {
1227
+ "0": {
1228
+ "name": "punctuation.section.function.end.bracket.round.css"
1229
+ }
1230
+ },
1231
+ "patterns": [
1232
+ {
1233
+ "include": "#interpolation"
1234
+ },
1235
+ {
1236
+ "include": "#property-values"
1237
+ }
1238
+ ]
1239
+ },
1240
+ {
1241
+ "include": "#url"
1242
+ },
1243
+ {
1244
+ "include": "#at-dot"
1245
+ },
1246
+ {
1247
+ "begin": "(?i)(?<![\\w-])(var)(\\()",
1248
+ "beginCaptures": {
1249
+ "1": {
1250
+ "name": "support.function.misc.css"
1251
+ },
1252
+ "2": {
1253
+ "name": "punctuation.section.function.begin.bracket.round.css"
1254
+ }
1255
+ },
1256
+ "end": "\\)",
1257
+ "endCaptures": {
1258
+ "0": {
1259
+ "name": "punctuation.section.function.end.bracket.round.css"
1260
+ }
1261
+ },
1262
+ "name": "meta.function.variable.css",
1263
+ "patterns": [
1264
+ {
1265
+ "include": "#interpolation"
1266
+ },
1267
+ {
1268
+ "name": "variable.argument.css",
1269
+ "match": "(?x)\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*"
1270
+ },
1271
+ {
1272
+ "include": "#property-values"
1273
+ }
1274
+ ]
1275
+ }
1276
+ ]
1277
+ },
1278
+ "functional-pseudo-classes": {
1279
+ "patterns": [
1280
+ {
1281
+ "include": "#interpolation"
1282
+ },
1283
+ {
1284
+ "begin": "(?i)((:)dir)(\\()",
1285
+ "beginCaptures": {
1286
+ "1": {
1287
+ "name": "entity.other.attribute-name.pseudo-class.css"
1288
+ },
1289
+ "2": {
1290
+ "name": "punctuation.definition.entity.css"
1291
+ },
1292
+ "3": {
1293
+ "name": "punctuation.section.function.begin.bracket.round.css"
1294
+ }
1295
+ },
1296
+ "end": "\\)",
1297
+ "endCaptures": {
1298
+ "0": {
1299
+ "name": "punctuation.section.function.end.bracket.round.css"
1300
+ }
1301
+ },
1302
+ "patterns": [
1303
+ {
1304
+ "include": "#interpolation"
1305
+ },
1306
+ {
1307
+ "include": "#comment-block"
1308
+ },
1309
+ {
1310
+ "include": "#escapes"
1311
+ },
1312
+ {
1313
+ "match": "(?i)(?<![\\w-])(ltr|rtl)(?![\\w-])",
1314
+ "name": "support.constant.text-direction.css"
1315
+ },
1316
+ {
1317
+ "include": "#property-values"
1318
+ }
1319
+ ]
1320
+ },
1321
+ {
1322
+ "begin": "(?i)((:)lang)(\\()",
1323
+ "beginCaptures": {
1324
+ "1": {
1325
+ "name": "entity.other.attribute-name.pseudo-class.css"
1326
+ },
1327
+ "2": {
1328
+ "name": "punctuation.definition.entity.css"
1329
+ },
1330
+ "3": {
1331
+ "name": "punctuation.section.function.begin.bracket.round.css"
1332
+ }
1333
+ },
1334
+ "end": "\\)",
1335
+ "endCaptures": {
1336
+ "0": {
1337
+ "name": "punctuation.section.function.end.bracket.round.css"
1338
+ }
1339
+ },
1340
+ "patterns": [
1341
+ {
1342
+ "include": "#interpolation"
1343
+ },
1344
+ {
1345
+ "match": "(?<=[(,\\s])[a-zA-Z]+(-[a-zA-Z0-9]*|\\\\(?:[0-9a-fA-F]{1,6}|.))*(?=[),\\s])",
1346
+ "name": "support.constant.language-range.css"
1347
+ },
1348
+ {
1349
+ "begin": "\"",
1350
+ "beginCaptures": {
1351
+ "0": {
1352
+ "name": "punctuation.definition.string.begin.css"
1353
+ }
1354
+ },
1355
+ "end": "\"",
1356
+ "endCaptures": {
1357
+ "0": {
1358
+ "name": "punctuation.definition.string.end.css"
1359
+ }
1360
+ },
1361
+ "name": "string.quoted.double.css",
1362
+ "patterns": [
1363
+ {
1364
+ "include": "#interpolation"
1365
+ },
1366
+ {
1367
+ "include": "#escapes"
1368
+ },
1369
+ {
1370
+ "match": "(?<=[\"\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=[\"\\s])",
1371
+ "name": "support.constant.language-range.css"
1372
+ }
1373
+ ]
1374
+ },
1375
+ {
1376
+ "begin": "'",
1377
+ "beginCaptures": {
1378
+ "0": {
1379
+ "name": "punctuation.definition.string.begin.css"
1380
+ }
1381
+ },
1382
+ "end": "'",
1383
+ "endCaptures": {
1384
+ "0": {
1385
+ "name": "punctuation.definition.string.end.css"
1386
+ }
1387
+ },
1388
+ "name": "string.quoted.single.css",
1389
+ "patterns": [
1390
+ {
1391
+ "include": "#interpolation"
1392
+ },
1393
+ {
1394
+ "include": "#escapes"
1395
+ },
1396
+ {
1397
+ "match": "(?<=['\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=['\\s])",
1398
+ "name": "support.constant.language-range.css"
1399
+ }
1400
+ ]
1401
+ },
1402
+ {
1403
+ "include": "#commas"
1404
+ }
1405
+ ]
1406
+ },
1407
+ {
1408
+ "begin": "(?i)((:)(?:not|has|matches))(\\()",
1409
+ "beginCaptures": {
1410
+ "1": {
1411
+ "name": "entity.other.attribute-name.pseudo-class.css"
1412
+ },
1413
+ "2": {
1414
+ "name": "punctuation.definition.entity.css"
1415
+ },
1416
+ "3": {
1417
+ "name": "punctuation.section.function.begin.bracket.round.css"
1418
+ }
1419
+ },
1420
+ "end": "\\)",
1421
+ "endCaptures": {
1422
+ "0": {
1423
+ "name": "punctuation.section.function.end.bracket.round.css"
1424
+ }
1425
+ },
1426
+ "patterns": [
1427
+ {
1428
+ "include": "#interpolation"
1429
+ },
1430
+ {
1431
+ "include": "#selector-innards"
1432
+ }
1433
+ ]
1434
+ },
1435
+ {
1436
+ "begin": "(?i)((:)nth-(?:last-)?(?:child|of-type))(\\()",
1437
+ "beginCaptures": {
1438
+ "1": {
1439
+ "name": "entity.other.attribute-name.pseudo-class.css"
1440
+ },
1441
+ "2": {
1442
+ "name": "punctuation.definition.entity.css"
1443
+ },
1444
+ "3": {
1445
+ "name": "punctuation.section.function.begin.bracket.round.css"
1446
+ }
1447
+ },
1448
+ "end": "\\)",
1449
+ "endCaptures": {
1450
+ "0": {
1451
+ "name": "punctuation.section.function.end.bracket.round.css"
1452
+ }
1453
+ },
1454
+ "patterns": [
1455
+ {
1456
+ "include": "#interpolation"
1457
+ },
1458
+ {
1459
+ "match": "(?i)[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?",
1460
+ "name": "constant.numeric.css"
1461
+ },
1462
+ {
1463
+ "match": "(?i)even|odd",
1464
+ "name": "support.constant.parity.css"
1465
+ }
1466
+ ]
1467
+ }
1468
+ ]
1469
+ },
1470
+ "media-features": {
1471
+ "captures": {
1472
+ "1": {
1473
+ "name": "support.type.property-name.media.css"
1474
+ },
1475
+ "2": {
1476
+ "name": "invalid.deprecated.media.css"
1477
+ },
1478
+ "3": {
1479
+ "name": "support.type.vendored.property-name.media.css"
1480
+ }
1481
+ },
1482
+ "match": "(?xi)\n(?<=^|\\s|\\(|\\*/) # Preceded by whitespace, bracket or comment\n(?:\n # Standardised features\n (\n (?:min-|max-)? # Range features\n (?: height\n | width\n | aspect-ratio\n | color\n | color-index\n | monochrome\n | resolution\n )\n | grid # Discrete features\n | scan\n | orientation\n | display-mode\n )\n |\n # Deprecated features\n (\n (?:min-|max-)? # Deprecated in Media Queries 4\n device-\n (?: height\n | width\n | aspect-ratio\n )\n )\n |\n # Vendor extensions\n (\n (?:\n # Spec-compliant syntax\n [-_]\n (?: webkit # Webkit/Blink\n | apple|khtml # Webkit aliases\n | epub # ePub3\n | moz # Gecko\n | ms # Microsoft\n | o # Presto (pre-Opera 15)\n | xv|ah|rim|atsc| # Less common vendors\n hp|tc|wap|ro\n )\n |\n # Non-standard prefixes\n (?: mso # Microsoft Office\n | prince # YesLogic\n )\n )\n -\n [\\w-]+ # Feature name\n (?= # Terminates correctly\n \\s* # Possible whitespace\n (?: # Possible injected comment\n /\\*\n (?:[^*]|\\*[^/])*\n \\*/\n )?\n \\s*\n [:)] # Ends with a colon or closed bracket\n )\n )\n)\n(?=\\s|$|[><:=]|\\)|/\\*) # Terminates cleanly"
1483
+ },
1484
+ "media-feature-keywords": {
1485
+ "match": "(?xi)\n(?<=^|\\s|:|\\*/)\n(?: portrait # Orientation\n | landscape\n | progressive # Scan types\n | interlace\n | fullscreen # Display modes\n | standalone\n | minimal-ui\n | browser\n)\n(?=\\s|\\)|$)",
1486
+ "name": "support.constant.property-value.css"
1487
+ },
1488
+ "media-query": {
1489
+ "begin": "\\G",
1490
+ "end": "(?=\\s*[{;])",
1491
+ "patterns": [
1492
+ {
1493
+ "include": "#interpolation"
1494
+ },
1495
+ {
1496
+ "include": "#comment-block"
1497
+ },
1498
+ {
1499
+ "include": "#escapes"
1500
+ },
1501
+ {
1502
+ "include": "#media-types"
1503
+ },
1504
+ {
1505
+ "match": "(?i)(?<=\\s|^|,|\\*/)(only|not)(?=\\s|{|/\\*|$)",
1506
+ "name": "keyword.operator.logical.$1.media.css"
1507
+ },
1508
+ {
1509
+ "match": "(?i)(?<=\\s|^|\\*/|\\))and(?=\\s|/\\*|$)",
1510
+ "name": "keyword.operator.logical.and.media.css"
1511
+ },
1512
+ {
1513
+ "match": ",(?:(?:\\s*,)+|(?=\\s*[;){]))",
1514
+ "name": "invalid.illegal.comma.css"
1515
+ },
1516
+ {
1517
+ "include": "#commas"
1518
+ },
1519
+ {
1520
+ "begin": "\\(",
1521
+ "beginCaptures": {
1522
+ "0": {
1523
+ "name": "punctuation.definition.parameters.begin.bracket.round.css"
1524
+ }
1525
+ },
1526
+ "end": "\\)",
1527
+ "endCaptures": {
1528
+ "0": {
1529
+ "name": "punctuation.definition.parameters.end.bracket.round.css"
1530
+ }
1531
+ },
1532
+ "patterns": [
1533
+ {
1534
+ "include": "#interpolation"
1535
+ },
1536
+ {
1537
+ "include": "#media-features"
1538
+ },
1539
+ {
1540
+ "include": "#media-feature-keywords"
1541
+ },
1542
+ {
1543
+ "match": ":",
1544
+ "name": "punctuation.separator.key-value.css"
1545
+ },
1546
+ {
1547
+ "match": ">=|<=|=|<|>",
1548
+ "name": "keyword.operator.comparison.css"
1549
+ },
1550
+ {
1551
+ "captures": {
1552
+ "1": {
1553
+ "name": "constant.numeric.css"
1554
+ },
1555
+ "2": {
1556
+ "name": "keyword.operator.arithmetic.css"
1557
+ },
1558
+ "3": {
1559
+ "name": "constant.numeric.css"
1560
+ }
1561
+ },
1562
+ "match": "(\\d+)\\s*(/)\\s*(\\d+)",
1563
+ "name": "meta.ratio.css"
1564
+ },
1565
+ {
1566
+ "include": "#numeric-values"
1567
+ },
1568
+ {
1569
+ "include": "#comment-block"
1570
+ }
1571
+ ]
1572
+ }
1573
+ ]
1574
+ },
1575
+ "media-query-list": {
1576
+ "begin": "(?=\\s*[^{;])",
1577
+ "end": "(?=\\s*[{;])",
1578
+ "patterns": [
1579
+ {
1580
+ "include": "#interpolation"
1581
+ },
1582
+ {
1583
+ "include": "#media-query"
1584
+ }
1585
+ ]
1586
+ },
1587
+ "media-types": {
1588
+ "captures": {
1589
+ "1": {
1590
+ "name": "support.constant.media.css"
1591
+ },
1592
+ "2": {
1593
+ "name": "invalid.deprecated.constant.media.css"
1594
+ }
1595
+ },
1596
+ "match": "(?xi)\n(?<=^|\\s|,|\\*/)\n(?:\n # Valid media types\n (all|print|screen|speech)\n |\n # Deprecated in Media Queries 4: http://dev.w3.org/csswg/mediaqueries/#media-types\n (aural|braille|embossed|handheld|projection|tty|tv)\n)\n(?=$|[{,\\s;]|/\\*)"
1597
+ },
1598
+ "numeric-values": {
1599
+ "patterns": [
1600
+ {
1601
+ "include": "#interpolation"
1602
+ },
1603
+ {
1604
+ "captures": {
1605
+ "1": {
1606
+ "name": "punctuation.definition.constant.css"
1607
+ }
1608
+ },
1609
+ "match": "(#)(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\\b",
1610
+ "name": "constant.other.color.rgb-value.hex.css"
1611
+ },
1612
+ {
1613
+ "captures": {
1614
+ "1": {
1615
+ "name": "keyword.other.unit.percentage.css"
1616
+ },
1617
+ "2": {
1618
+ "name": "keyword.other.unit.${2:/downcase}.css"
1619
+ }
1620
+ },
1621
+ "match": "(?xi) (?<![\\w-])\n[-+]? # Sign indicator\n\n(?: # Numerals\n [0-9]+ (?:\\.[0-9]+)? # Integer/float with leading digits\n | \\.[0-9]+ # Float without leading digits\n)\n\n(?: # Scientific notation\n (?<=[0-9]) # Exponent must follow a digit\n E # Exponent indicator\n [-+]? # Possible sign indicator\n [0-9]+ # Exponent value\n)?\n\n(?: # Possible unit for data-type:\n (%) # - Percentage\n | ( deg|grad|rad|turn # - Angle\n | Hz|kHz # - Frequency\n | ch|cm|em|ex|fr|in|mm|mozmm| # - Length\n pc|pt|px|q|rem|vh|vmax|vmin|\n vw\n | dpi|dpcm|dppx # - Resolution\n | s|ms # - Time\n )\n \\b # Boundary checking intentionally lax to\n)? # facilitate embedding in CSS-like grammars",
1622
+ "name": "constant.numeric.css"
1623
+ }
1624
+ ]
1625
+ },
1626
+ "property-keywords": {
1627
+ "patterns": [
1628
+ {
1629
+ "include": "#interpolation"
1630
+ },
1631
+ {
1632
+ "match": "(?xi) (?<![\\w-])\n(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse\n|always|antialiased|auto|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel\n|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets\n|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn\n|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover\n|crisp-edges|crispEdges|crosshair|cyclic|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures\n|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in\n|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded\n|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|forwards|freeze\n|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide\n|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space\n|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start\n|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83\n|jis90|justify|justify-all|kannada|keep-all|landscape|large|larger|left|lighten|lighter|line|line-edge|line-through|linear|linearRGB\n|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent\n|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize\n|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures\n|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize\n|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding\n|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line\n|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]\n|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text\n|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate\n|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller\n|smooth|soft-light|solid|space|space-around|space-between|space-evenly|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap\n|step-end|step-start|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table\n|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl\n|text|text-after-edge|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle\n|ultra-condensed|ultra-expanded|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical\n|vertical-ideographic|vertical-lr|vertical-rl|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy\n|weight|whitespace|wider|words|wrap|wrap-reverse|x-large|x-small|xx-large|xx-small|zero|zoom-in|zoom-out)\n(?![\\w-])",
1633
+ "name": "support.constant.property-value.css"
1634
+ },
1635
+ {
1636
+ "match": "(?xi) (?<![\\w-])\n(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic\n|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am\n|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew\n|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer\n|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek\n|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal\n|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian\n|upper-latin|upper-roman|urdu)\n(?![\\w-])",
1637
+ "name": "support.constant.property-value.list-style-type.css"
1638
+ },
1639
+ {
1640
+ "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1641
+ "name": "support.constant.vendored.property-value.css"
1642
+ },
1643
+ {
1644
+ "match": "(?<![\\w-])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)(?![\\w-])",
1645
+ "name": "support.constant.font-name.css"
1646
+ }
1647
+ ]
1648
+ },
1649
+ "property-names": {
1650
+ "patterns": [
1651
+ {
1652
+ "include": "#interpolation"
1653
+ },
1654
+ {
1655
+ "match": "(?xi) (?<![\\w-])\n(?:\n # Standard CSS\n additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction\n | animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state\n | animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode\n | background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]\n | background-repeat|background-size|block-size|border|border-block-end|border-block-end-color|border-block-end-style\n | border-block-end-width|border-block-start|border-block-start-color|border-block-start-style\n | border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius\n | border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset\n | border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end\n | border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start\n | border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color\n | border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style\n | border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius\n | border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break\n | box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|clip-path|color\n | column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width\n | column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display\n | empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float\n | font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-size|font-size-adjust\n | font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps\n | font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-weight\n | grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap\n | grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas\n | grid-template-columns|grid-template-rows|height|hyphens|image-orientation|image-rendering|image-resolution\n | ime-mode|inline-size|isolation|justify-content|left|letter-spacing|line-break|line-height|list-style\n | list-style-image|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom\n | margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|mask|mask-clip|mask-composite\n | mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height\n | max-inline-size|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode\n | negative|object-fit|object-position|offset-block-end|offset-block-start|offset-inline-end|offset-inline-start\n | opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow\n | overflow-wrap|overflow-[xy]|pad|padding|padding-block-end|padding-block-start|padding-bottom|padding-inline-end\n | padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside\n | perspective|perspective-origin|pointer-events|position|prefix|quotes|range|resize|right|ruby-align|ruby-merge\n | ruby-position|scroll-behavior|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-type|shape-image-threshold\n | shape-margin|shape-outside|speak-as|src|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last\n | text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-emphasis\n | text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-orientation|text-overflow\n | text-rendering|text-shadow|text-transform|text-underline-position|top|touch-action|transform|transform-box\n | transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property\n | transition-timing-function|unicode-bidi|unicode-range|user-zoom|vertical-align|visibility|white-space|widows\n | width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom\n\n # SVG attributes\n | alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile\n | color-rendering|cx|cy|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity\n | glyph-orientation-horizontal|glyph-orientation-vertical|height|kerning|lighting-color|marker-end|marker-mid\n | marker-start|r|rx|ry|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap\n | stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|width|x|y\n\n # Not listed on MDN; presumably deprecated\n | adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break\n | balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length\n | bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction\n | box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column\n | column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break\n | delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust\n | drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position\n | flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before\n | hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust\n | initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count\n | justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift\n | line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed\n | marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group\n | orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range\n | play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim\n | radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness\n | right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color\n | rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral\n | speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch\n | string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height\n | text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style\n | top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range\n | voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap\n)\n(?![\\w-])",
1656
+ "name": "support.type.property-name.css"
1657
+ },
1658
+ {
1659
+ "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1660
+ "name": "support.type.vendored.property-name.css"
1661
+ }
1662
+ ]
1663
+ },
1664
+ "property-values": {
1665
+ "patterns": [
1666
+ {
1667
+ "include": "#interpolation"
1668
+ },
1669
+ {
1670
+ "include": "#commas"
1671
+ },
1672
+ {
1673
+ "include": "#comment-block"
1674
+ },
1675
+ {
1676
+ "include": "#escapes"
1677
+ },
1678
+ {
1679
+ "include": "#functions"
1680
+ },
1681
+ {
1682
+ "include": "#property-keywords"
1683
+ },
1684
+ {
1685
+ "include": "#unicode-range"
1686
+ },
1687
+ {
1688
+ "include": "#numeric-values"
1689
+ },
1690
+ {
1691
+ "include": "#color-keywords"
1692
+ },
1693
+ {
1694
+ "include": "#string"
1695
+ },
1696
+ {
1697
+ "match": "!\\s*important(?![\\w-])",
1698
+ "name": "keyword.other.important.css"
1699
+ }
1700
+ ]
1701
+ },
1702
+ "pseudo-classes": {
1703
+ "captures": {
1704
+ "1": {
1705
+ "name": "punctuation.definition.entity.css"
1706
+ },
1707
+ "2": {
1708
+ "name": "invalid.illegal.colon.css"
1709
+ }
1710
+ },
1711
+ "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|focus-within|fullscreen|host|hover\n | in-range|indeterminate|invalid|left|link|optional|out-of-range\n | read-only|read-write|required|right|root|scope|target|unresolved\n | valid|visited\n)(?![\\w-]|\\s*[;}])",
1712
+ "name": "entity.other.attribute-name.pseudo-class.css"
1713
+ },
1714
+ "pseudo-elements": {
1715
+ "captures": {
1716
+ "1": {
1717
+ "name": "punctuation.definition.entity.css"
1718
+ },
1719
+ "2": {
1720
+ "name": "punctuation.definition.entity.css"
1721
+ }
1722
+ },
1723
+ "match": "(?xi)\n(?:\n (::?) # Elements using both : and :: notation\n (?: after\n | before\n | first-letter\n | first-line\n | (?:-(?:ah|apple|atsc|epub|hp|khtml|moz\n |ms|o|rim|ro|tc|wap|webkit|xv)\n | (?:mso|prince))\n -[a-z-]+\n )\n |\n (::) # Double-colon only\n (?: backdrop\n | content\n | grammar-error\n | marker\n | placeholder\n | selection\n | shadow\n | spelling-error\n )\n)\n(?![\\w-]|\\s*[;}])",
1724
+ "name": "entity.other.attribute-name.pseudo-element.css"
1725
+ },
1726
+ "rule-list": {
1727
+ "begin": "{",
1728
+ "beginCaptures": {
1729
+ "0": {
1730
+ "name": "punctuation.section.property-list.begin.bracket.curly.css"
1731
+ }
1732
+ },
1733
+ "end": "}",
1734
+ "endCaptures": {
1735
+ "0": {
1736
+ "name": "punctuation.section.property-list.end.bracket.curly.css"
1737
+ }
1738
+ },
1739
+ "name": "meta.property-list.css",
1740
+ "patterns": [
1741
+ {
1742
+ "include": "#interpolation"
1743
+ },
1744
+ {
1745
+ "include": "#rule-list-innards"
1746
+ }
1747
+ ]
1748
+ },
1749
+ "rule-list-innards": {
1750
+ "patterns": [
1751
+ {
1752
+ "include": "#interpolation"
1753
+ },
1754
+ {
1755
+ "include": "#comment-block"
1756
+ },
1757
+ {
1758
+ "include": "#escapes"
1759
+ },
1760
+ {
1761
+ "include": "#font-features"
1762
+ },
1763
+ {
1764
+ "match": "(?x) (?<![\\w-])\n--\n(?:[-a-zA-Z_] | [^\\x00-\\x7F]) # First letter\n(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n |\\\\(?:[0-9a-fA-F]{1,6}|.)\n)*",
1765
+ "name": "variable.css"
1766
+ },
1767
+ {
1768
+ "begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
1769
+ "end": "$|(?![-a-zA-Z])",
1770
+ "name": "meta.property-name.css",
1771
+ "patterns": [
1772
+ {
1773
+ "include": "#interpolation"
1774
+ },
1775
+ {
1776
+ "include": "#property-names"
1777
+ }
1778
+ ]
1779
+ },
1780
+ {
1781
+ "begin": "(:)\\s*",
1782
+ "beginCaptures": {
1783
+ "1": {
1784
+ "name": "punctuation.separator.key-value.css"
1785
+ }
1786
+ },
1787
+ "end": "\\s*(;)|\\s*(?=}|\\))",
1788
+ "endCaptures": {
1789
+ "1": {
1790
+ "name": "punctuation.terminator.rule.css"
1791
+ }
1792
+ },
1793
+ "contentName": "meta.property-value.css",
1794
+ "patterns": [
1795
+ {
1796
+ "include": "#interpolation"
1797
+ },
1798
+ {
1799
+ "include": "#comment-block"
1800
+ },
1801
+ {
1802
+ "include": "#property-values"
1803
+ }
1804
+ ]
1805
+ },
1806
+ {
1807
+ "match": ";",
1808
+ "name": "punctuation.terminator.rule.css"
1809
+ }
1810
+ ]
1811
+ },
1812
+ "selector": {
1813
+ "begin": "(?x)\n(?=\n (?:\\|)? # Possible anonymous namespace prefix\n (?:\n [-\\[:.*\\#a-zA-Z_] # Valid selector character\n |\n [^\\x00-\\x7F] # Which can include non-ASCII symbols\n |\n \\\\ # Or an escape sequence\n (?:[0-9a-fA-F]{1,6}|.)\n )\n)",
1814
+ "end": "(?=\\s*[/@{)])",
1815
+ "name": "meta.selector.css",
1816
+ "patterns": [
1817
+ {
1818
+ "include": "#interpolation"
1819
+ },
1820
+ {
1821
+ "include": "#selector-innards"
1822
+ }
1823
+ ]
1824
+ },
1825
+ "selector-innards": {
1826
+ "patterns": [
1827
+ {
1828
+ "include": "#interpolation"
1829
+ },
1830
+ {
1831
+ "include": "#comment-block"
1832
+ },
1833
+ {
1834
+ "include": "#commas"
1835
+ },
1836
+ {
1837
+ "include": "#escapes"
1838
+ },
1839
+ {
1840
+ "include": "#combinators"
1841
+ },
1842
+ {
1843
+ "captures": {
1844
+ "1": {
1845
+ "name": "entity.other.namespace-prefix.css"
1846
+ },
1847
+ "2": {
1848
+ "name": "punctuation.separator.css"
1849
+ }
1850
+ },
1851
+ "match": "(?x)\n(?:^|(?<=[\\s,(};])) # Follows whitespace, comma, semicolon, or bracket\n(?!\n [-\\w*]+\n \\|\n (?!\n [-\\[:.*\\#a-zA-Z_] # Make sure there's a selector to match\n | [^\\x00-\\x7F]\n )\n)\n(\n (?: [-a-zA-Z_] | [^\\x00-\\x7F] ) # First letter\n (?: [-a-zA-Z0-9_] | [^\\x00-\\x7F] # Remainder of identifier\n | \\\\(?:[0-9a-fA-F]{1,6}|.)\n )*\n |\n \\* # Universal namespace\n)?\n(\\|) # Namespace separator"
1852
+ },
1853
+ {
1854
+ "include": "#tag-names"
1855
+ },
1856
+ {
1857
+ "match": "\\*",
1858
+ "name": "entity.name.tag.wildcard.css"
1859
+ },
1860
+ {
1861
+ "captures": {
1862
+ "1": {
1863
+ "name": "punctuation.definition.entity.css"
1864
+ },
1865
+ "2": {
1866
+ "patterns": [
1867
+ {
1868
+ "include": "#interpolation"
1869
+ },
1870
+ {
1871
+ "include": "#escapes"
1872
+ }
1873
+ ]
1874
+ }
1875
+ },
1876
+ "match": "(?x) (?<![@\\w-])\n([.\\#])\n# Invalid identifier\n(\n (?:\n # Starts with ASCII digits, with possible hyphen preceding it\n -?[0-9]\n |\n # Consists of a hyphen only\n - # Terminated by either:\n (?= $ # - End-of-line\n | [\\s,.\\#)\\[:{>+~|] # - Followed by another selector\n | /\\* # - Followed by a block comment\n )\n |\n # Name contains unescaped ASCII symbol\n (?: # Check for acceptable preceding characters\n [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Valid selector character\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n (?: # Invalid punctuation\n [!\"'%&(*;<?@^`|\\]}] # - NOTE: We exempt `)` from the list of checked\n | # symbols to avoid matching `:not(.invalid)`\n / (?!\\*) # - Avoid invalidating the start of a comment\n )+\n )\n # Mark remainder of selector invalid\n (?: [-a-zA-Z_0-9]|[^\\x00-\\x7F] # - Otherwise valid identifier characters\n | \\\\(?:[0-9a-fA-F]{1,6}|.) # - Escape sequence\n )*\n)",
1877
+ "name": "invalid.illegal.bad-identifier.css"
1878
+ },
1879
+ {
1880
+ "captures": {
1881
+ "1": {
1882
+ "name": "punctuation.definition.entity.css"
1883
+ },
1884
+ "2": {
1885
+ "patterns": [
1886
+ {
1887
+ "include": "#interpolation"
1888
+ },
1889
+ {
1890
+ "include": "#escapes"
1891
+ }
1892
+ ]
1893
+ }
1894
+ },
1895
+ "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 )+\n) # Followed by either:\n(?= $ # - End of the line\n | [\\s,.\\#)\\[:{>+~|] # - Another selector\n | /\\* # - A block comment\n)",
1896
+ "name": "entity.other.attribute-name.class.css"
1897
+ },
1898
+ {
1899
+ "captures": {
1900
+ "1": {
1901
+ "name": "punctuation.definition.entity.css"
1902
+ },
1903
+ "2": {
1904
+ "patterns": [
1905
+ {
1906
+ "include": "#interpolation"
1907
+ },
1908
+ {
1909
+ "include": "#escapes"
1910
+ }
1911
+ ]
1912
+ }
1913
+ },
1914
+ "match": "(?x)\n(\\#)\n(\n -?\n (?![0-9])\n (?:[-a-zA-Z0-9_]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n)\n(?=$|[\\s,.\\#)\\[:{>+~|]|/\\*)",
1915
+ "name": "entity.other.attribute-name.id.css"
1916
+ },
1917
+ {
1918
+ "begin": "\\[",
1919
+ "beginCaptures": {
1920
+ "0": {
1921
+ "name": "punctuation.definition.entity.begin.bracket.square.css"
1922
+ }
1923
+ },
1924
+ "end": "\\]",
1925
+ "endCaptures": {
1926
+ "0": {
1927
+ "name": "punctuation.definition.entity.end.bracket.square.css"
1928
+ }
1929
+ },
1930
+ "name": "meta.attribute-selector.css",
1931
+ "patterns": [
1932
+ {
1933
+ "include": "#interpolation"
1934
+ },
1935
+ {
1936
+ "include": "#comment-block"
1937
+ },
1938
+ {
1939
+ "include": "#string"
1940
+ },
1941
+ {
1942
+ "captures": {
1943
+ "1": {
1944
+ "name": "storage.modifier.ignore-case.css"
1945
+ }
1946
+ },
1947
+ "match": "(?<=[\"'\\s]|^|\\*/)\\s*([iI])\\s*(?=[\\s\\]]|/\\*|$)"
1948
+ },
1949
+ {
1950
+ "captures": {
1951
+ "1": {
1952
+ "name": "string.unquoted.attribute-value.css",
1953
+ "patterns": [
1954
+ {
1955
+ "include": "#interpolation"
1956
+ },
1957
+ {
1958
+ "include": "#escapes"
1959
+ }
1960
+ ]
1961
+ }
1962
+ },
1963
+ "match": "(?x)(?<==)\\s*((?!/\\*)(?:[^\\\\\"'\\s\\]]|\\\\.)+)"
1964
+ },
1965
+ {
1966
+ "include": "#escapes"
1967
+ },
1968
+ {
1969
+ "match": "[~|^$*]?=",
1970
+ "name": "keyword.operator.pattern.css"
1971
+ },
1972
+ {
1973
+ "match": "\\|",
1974
+ "name": "punctuation.separator.css"
1975
+ },
1976
+ {
1977
+ "captures": {
1978
+ "1": {
1979
+ "name": "entity.other.namespace-prefix.css",
1980
+ "patterns": [
1981
+ {
1982
+ "include": "#interpolation"
1983
+ },
1984
+ {
1985
+ "include": "#escapes"
1986
+ }
1987
+ ]
1988
+ }
1989
+ },
1990
+ "match": "(?x)\n# Qualified namespace prefix\n( -?(?!\\d)(?:[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n| \\*\n)\n# Lookahead to ensure there's a valid identifier ahead\n(?=\n \\| (?!\\s|=|$|\\])\n (?: -?(?!\\d)\n | [\\\\\\w-]\n | [^\\x00-\\x7F]\n )\n)"
1991
+ },
1992
+ {
1993
+ "captures": {
1994
+ "1": {
1995
+ "name": "entity.other.attribute-name.css",
1996
+ "patterns": [
1997
+ {
1998
+ "include": "#interpolation"
1999
+ },
2000
+ {
2001
+ "include": "#escapes"
2002
+ }
2003
+ ]
2004
+ }
2005
+ },
2006
+ "match": "(?x)\n(-?(?!\\d)(?>[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+)\n\\s*\n(?=[~|^\\]$*=]|/\\*)"
2007
+ }
2008
+ ]
2009
+ },
2010
+ {
2011
+ "include": "#pseudo-classes"
2012
+ },
2013
+ {
2014
+ "include": "#pseudo-elements"
2015
+ },
2016
+ {
2017
+ "include": "#functional-pseudo-classes"
2018
+ },
2019
+ {
2020
+ "match": "(?x) (?<![@\\w-])\n(?= # Custom element names must:\n [a-z] # - start with a lowercase ASCII letter,\n \\w* - # - contain at least one dash\n)\n(?:\n (?![A-Z]) # No uppercase ASCII letters are allowed\n [\\w-] # Allow any other word character or dash\n)+\n(?![(\\w-])",
2021
+ "name": "entity.name.tag.custom.css"
2022
+ }
2023
+ ]
2024
+ },
2025
+ "string": {
2026
+ "patterns": [
2027
+ {
2028
+ "include": "#interpolation"
2029
+ },
2030
+ {
2031
+ "begin": "\"",
2032
+ "beginCaptures": {
2033
+ "0": {
2034
+ "name": "punctuation.definition.string.begin.css"
2035
+ }
2036
+ },
2037
+ "end": "\"|(?<!\\\\)(?=$|\\n)",
2038
+ "endCaptures": {
2039
+ "0": {
2040
+ "name": "punctuation.definition.string.end.css"
2041
+ }
2042
+ },
2043
+ "name": "string.quoted.double.css",
2044
+ "patterns": [
2045
+ {
2046
+ "include": "#interpolation"
2047
+ },
2048
+ {
2049
+ "begin": "(?:\\G|^)(?=(?:[^\\\\\"]|\\\\.)+$)",
2050
+ "end": "$",
2051
+ "name": "invalid.illegal.unclosed.string.css",
2052
+ "patterns": [
2053
+ {
2054
+ "include": "#interpolation"
2055
+ },
2056
+ {
2057
+ "include": "#escapes"
2058
+ }
2059
+ ]
2060
+ },
2061
+ {
2062
+ "include": "#escapes"
2063
+ }
2064
+ ]
2065
+ },
2066
+ {
2067
+ "begin": "'",
2068
+ "beginCaptures": {
2069
+ "0": {
2070
+ "name": "punctuation.definition.string.begin.css"
2071
+ }
2072
+ },
2073
+ "end": "'|(?<!\\\\)(?=$|\\n)",
2074
+ "endCaptures": {
2075
+ "0": {
2076
+ "name": "punctuation.definition.string.end.css"
2077
+ }
2078
+ },
2079
+ "name": "string.quoted.single.css",
2080
+ "patterns": [
2081
+ {
2082
+ "include": "#interpolation"
2083
+ },
2084
+ {
2085
+ "begin": "(?:\\G|^)(?=(?:[^\\\\']|\\\\.)+$)",
2086
+ "end": "$",
2087
+ "name": "invalid.illegal.unclosed.string.css",
2088
+ "patterns": [
2089
+ {
2090
+ "include": "#interpolation"
2091
+ },
2092
+ {
2093
+ "include": "#escapes"
2094
+ }
2095
+ ]
2096
+ },
2097
+ {
2098
+ "include": "#escapes"
2099
+ }
2100
+ ]
2101
+ }
2102
+ ]
2103
+ },
2104
+ "tag-names": {
2105
+ "match": "(?xi) (?<![\\w:-])\n(?:\n # HTML\n a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound\n | big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command\n | content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset\n | figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i\n | iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark\n | marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript\n | object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rt|rtc\n | ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong\n | style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr\n | track|tt|u|ul|var|video|wbr|xmp\n\n # SVG\n | altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform\n | circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix\n | feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap\n | feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur\n | feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting\n | feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name\n | font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern\n | line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata\n | missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor\n | stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern\n\n # MathML\n | annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced\n | mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot\n | mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup\n | msup|mtable|mtd|mtext|mtr|munder|munderover|semantics\n)\n(?=[+~>\\s,.\\#|){:\\[]|/\\*|$)",
2106
+ "name": "entity.name.tag.css"
2107
+ },
2108
+ "unicode-range": {
2109
+ "captures": {
2110
+ "0": {
2111
+ "name": "constant.other.unicode-range.css"
2112
+ },
2113
+ "1": {
2114
+ "name": "punctuation.separator.dash.unicode-range.css"
2115
+ }
2116
+ },
2117
+ "match": "(?<![\\w-])[Uu]\\+[0-9A-Fa-f?]{1,6}(?:(-)[0-9A-Fa-f]{1,6})?(?![\\w-])"
2118
+ },
2119
+ "url": {
2120
+ "begin": "(?i)(?<![\\w@-])(url)(\\()",
2121
+ "beginCaptures": {
2122
+ "1": {
2123
+ "name": "support.function.url.css"
2124
+ },
2125
+ "2": {
2126
+ "name": "punctuation.section.function.begin.bracket.round.css"
2127
+ }
2128
+ },
2129
+ "end": "\\)",
2130
+ "endCaptures": {
2131
+ "0": {
2132
+ "name": "punctuation.section.function.end.bracket.round.css"
2133
+ }
2134
+ },
2135
+ "name": "meta.function.url.css",
2136
+ "patterns": [
2137
+ {
2138
+ "include": "#interpolation"
2139
+ },
2140
+ {
2141
+ "match": "[^'\")\\s]+",
2142
+ "name": "variable.parameter.url.css"
2143
+ },
2144
+ {
2145
+ "include": "#string"
2146
+ },
2147
+ {
2148
+ "include": "#comment-block"
2149
+ },
2150
+ {
2151
+ "include": "#escapes"
2152
+ }
2153
+ ]
2154
+ }
2155
+ }
2156
+ };
2157
+ //# sourceMappingURL=atDotCss.js.map