@medyll/cssfabric 0.2.0 → 0.2.1-beta.2

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 (173) hide show
  1. package/README.md +58 -38
  2. package/dist/NewMenu.svelte +41 -0
  3. package/dist/NewMenu.svelte.d.ts +19 -0
  4. package/dist/css/animation/animation.css +2 -0
  5. package/dist/css/base/base.css +47 -0
  6. package/dist/css/base/base.min.css +1 -0
  7. package/{styles → dist/css}/box/box.css +118 -0
  8. package/dist/css/box/box.min.css +1 -0
  9. package/{styles → dist/css}/box/box.responsive.css +3063 -1550
  10. package/dist/css/box/box.responsive.min.css +1 -0
  11. package/{styles → dist/css}/color/color.css +11 -9
  12. package/{styles → dist/css}/color/color.responsive.css +3446 -1932
  13. package/dist/css/color/color.responsive.min.css +1 -0
  14. package/dist/css/cssfabric.css +5167 -0
  15. package/dist/css/cssfabric.min.css +4877 -0
  16. package/dist/css/cssfabric.responsive.css +20419 -0
  17. package/dist/css/cssfabric.responsive.min.css +1 -0
  18. package/{styles → dist/css}/flex/flex.css +2 -0
  19. package/{styles → dist/css}/flex/flex.responsive.css +192 -114
  20. package/dist/css/flex/flex.responsive.min.css +1 -0
  21. package/{styles → dist/css}/grid/grid.css +2 -0
  22. package/{styles → dist/css}/grid/grid.responsive.css +230 -212
  23. package/dist/css/grid/grid.responsive.min.css +1 -0
  24. package/{styles → dist/css}/menu/menu.css +2 -0
  25. package/{styles → dist/css}/menu/menu.responsive.css +165 -78
  26. package/dist/css/menu/menu.responsive.min.css +1 -0
  27. package/{styles → dist/css}/overflow/overflow.css +2 -0
  28. package/{styles → dist/css}/overflow/overflow.responsive.css +98 -105
  29. package/dist/css/overflow/overflow.responsive.min.css +1 -0
  30. package/{styles → dist/css}/scale/scale.css +2 -0
  31. package/{styles → dist/css}/scale/scale.responsive.css +1520 -1152
  32. package/dist/css/scale/scale.responsive.min.css +1 -0
  33. package/{styles → dist/css}/table/table.css +2 -0
  34. package/{styles → dist/css}/table/table.responsive.css +162 -86
  35. package/dist/css/table/table.responsive.min.css +1 -0
  36. package/{styles → dist/css}/text/text.css +2 -0
  37. package/{styles → dist/css}/text/text.responsive.css +76 -55
  38. package/dist/css/text/text.responsive.min.css +1 -0
  39. package/{styles → dist/css}/theme/theme.css +51 -0
  40. package/{styles → dist/css}/theme/theme.min.css +1 -1
  41. package/{styles → dist/css}/vars.css +66 -67
  42. package/dist/css/vars.min.css +1 -0
  43. package/{styles → dist/css}/zindex/zindex.css +2 -0
  44. package/dist/cssFabric/config.d.ts +29 -0
  45. package/dist/cssFabric/config.js +29 -0
  46. package/dist/cssFabric/cssFabricSheet.d.ts +1226 -0
  47. package/dist/cssFabric/cssFabricSheet.js +1270 -0
  48. package/dist/cssFabric/cssProperties.d.ts +27 -0
  49. package/dist/cssFabric/cssProperties.js +343 -0
  50. package/dist/cssFabric/cssVariationsAi.d.ts +12 -0
  51. package/dist/cssFabric/cssVariationsAi.js +111 -0
  52. package/dist/cssFabric/index.d.ts +113 -0
  53. package/dist/cssFabric/index.js +341 -0
  54. package/dist/cssf/README.md +197 -0
  55. package/{init/importCssVars.d.ts → dist/cssf/cssf.d.ts} +1 -1
  56. package/dist/cssf/cssf.js +12 -0
  57. package/dist/cssf/cssfGuide.d.ts +14 -0
  58. package/dist/cssf/cssfGuide.js +50 -0
  59. package/dist/cssf/cssfLib.d.ts +134 -0
  60. package/dist/cssf/cssfLib.js +116 -0
  61. package/dist/cssf/cssfModel.d.ts +8 -0
  62. package/dist/cssf/cssfModel.js +59 -0
  63. package/dist/cssf/cssfPlugin.d.ts +3 -0
  64. package/dist/cssf/cssfPlugin.js +37 -0
  65. package/dist/cssf/cssfTransformer.d.ts +2 -0
  66. package/dist/cssf/cssfTransformer.js +100 -0
  67. package/dist/cssf/index.d.ts +6 -0
  68. package/dist/cssf/index.js +7 -0
  69. package/dist/cssfVsCode/.vscode/launch.json +17 -0
  70. package/dist/cssfVsCode/.vscodeignore +4 -0
  71. package/dist/cssfVsCode/CHANGELOG.md +9 -0
  72. package/dist/cssfVsCode/README.md +65 -0
  73. package/dist/cssfVsCode/language-configuration.json +36 -0
  74. package/dist/cssfVsCode/package.json +40 -0
  75. package/dist/cssfVsCode/syntaxes/cssf.tmLanguage.json +1868 -0
  76. package/dist/cssfVsCode/test.cssf +6 -0
  77. package/dist/cssfVsCode/vsc-extension-quickstart.md +29 -0
  78. package/{_generated → dist/generated}/cssFabric.vars.json +4 -4
  79. package/{_generated/export.variables.md → dist/generated/cssFabric.vars.md} +268 -240
  80. package/dist/index.d.ts +119 -0
  81. package/dist/index.js +120 -0
  82. package/dist/scripts/cssfabric.d.ts +24 -0
  83. package/{scripts → dist/scripts}/cssfabric.js +43 -43
  84. package/{scripts → dist/scripts}/cssfabricClassNames.d.ts +14 -14
  85. package/{scripts → dist/scripts}/cssfabricClassNames.js +146 -146
  86. package/dist/scripts/index.d.ts +2 -0
  87. package/{scripts → dist/scripts}/index.js +4 -4
  88. package/{scripts → dist/scripts}/utils.d.ts +5 -5
  89. package/{scripts → dist/scripts}/utils.js +38 -38
  90. package/dist/scss/_utils.scss +203 -0
  91. package/dist/scss/modules/_cssfabric-config.scss +178 -0
  92. package/dist/scss/modules/_mixins.scss +1 -0
  93. package/dist/scss/modules/animation/_animation-vars.scss +17 -0
  94. package/dist/scss/modules/animation/animation.scss +3 -0
  95. package/dist/scss/modules/base/_base-vars.scss +19 -0
  96. package/dist/scss/modules/base/base.scss +58 -0
  97. package/dist/scss/modules/box/_box-build.scss +305 -0
  98. package/dist/scss/modules/box/_box-vars.scss +121 -0
  99. package/dist/scss/modules/box/box-responsive.scss +18 -0
  100. package/dist/scss/modules/box/box.scss +3 -0
  101. package/dist/scss/modules/color/_color-build.scss +196 -0
  102. package/dist/scss/modules/color/_color-vars.scss +80 -0
  103. package/dist/scss/modules/color/color-responsive.scss +23 -0
  104. package/dist/scss/modules/color/color.scss +9 -0
  105. package/dist/scss/modules/css-fabric.scss +1 -0
  106. package/dist/scss/modules/flex/_flex-build.scss +150 -0
  107. package/dist/scss/modules/flex/_flex-vars.scss +84 -0
  108. package/dist/scss/modules/flex/flex-responsive.scss +25 -0
  109. package/dist/scss/modules/flex/flex.scss +3 -0
  110. package/dist/scss/modules/grid/_grid-build.scss +87 -0
  111. package/dist/scss/modules/grid/_grid-vars.scss +88 -0
  112. package/dist/scss/modules/grid/grid-responsive.scss +25 -0
  113. package/dist/scss/modules/grid/grid.scss +6 -0
  114. package/dist/scss/modules/menu/_menu-build.scss +120 -0
  115. package/dist/scss/modules/menu/_menu-vars.scss +29 -0
  116. package/dist/scss/modules/menu/menu-responsive.scss +19 -0
  117. package/dist/scss/modules/menu/menu.scss +6 -0
  118. package/dist/scss/modules/overflow/_overflow-build.scss +22 -0
  119. package/dist/scss/modules/overflow/_overflow-vars.scss +31 -0
  120. package/dist/scss/modules/overflow/overflow-responsive.scss +25 -0
  121. package/dist/scss/modules/overflow/overflow.scss +7 -0
  122. package/dist/scss/modules/scale/_scale-build.scss +142 -0
  123. package/dist/scss/modules/scale/_scale-vars.scss +84 -0
  124. package/dist/scss/modules/scale/scale-responsive.scss +23 -0
  125. package/dist/scss/modules/scale/scale.scss +8 -0
  126. package/dist/scss/modules/table/_table-build.scss +134 -0
  127. package/dist/scss/modules/table/_table-vars.scss +30 -0
  128. package/dist/scss/modules/table/table-responsive.scss +24 -0
  129. package/dist/scss/modules/table/table.scss +8 -0
  130. package/dist/scss/modules/text/_text-build.scss +166 -0
  131. package/dist/scss/modules/text/_text-vars.scss +87 -0
  132. package/dist/scss/modules/text/text-responsive.scss +26 -0
  133. package/dist/scss/modules/text/text.scss +6 -0
  134. package/dist/scss/modules/theme/_theme-build.scss +128 -0
  135. package/dist/scss/modules/theme/_theme-vars.scss +46 -0
  136. package/dist/scss/modules/theme/theme.scss +6 -0
  137. package/dist/scss/modules/vars.scss +46 -0
  138. package/dist/scss/modules/zindex/_zindex-vars.scss +14 -0
  139. package/dist/scss/modules/zindex/zindex.scss +15 -0
  140. package/package.json +70 -113
  141. package/_generated/readme.md +0 -0
  142. package/init/importCssVars.js +0 -2
  143. package/scripts/cssfabric.d.ts +0 -24
  144. package/scripts/index.d.ts +0 -2
  145. package/styles/animation/animation.css +0 -0
  146. package/styles/base/base.css +0 -215
  147. package/styles/base/base.min.css +0 -1
  148. package/styles/box/box.min.css +0 -1
  149. package/styles/box/box.responsive.min.css +0 -1
  150. package/styles/color/color.responsive.min.css +0 -1
  151. package/styles/cssfabric.css +0 -61792
  152. package/styles/cssfabric.min.css +0 -168
  153. package/styles/cssfabric.responsive.css +0 -200596
  154. package/styles/cssfabric.responsive.min.css +0 -108
  155. package/styles/flex/flex.responsive.min.css +0 -1
  156. package/styles/grid/grid.responsive.min.css +0 -1
  157. package/styles/menu/menu.responsive.min.css +0 -1
  158. package/styles/overflow/overflow.responsive.min.css +0 -1
  159. package/styles/scale/scale.responsive.min.css +0 -1
  160. package/styles/table/table.responsive.min.css +0 -1
  161. package/styles/text/text.responsive.min.css +0 -1
  162. package/styles/vars.min.css +0 -1
  163. /package/{styles → dist/css}/animation/animation.min.css +0 -0
  164. /package/{styles → dist/css}/color/color.min.css +0 -0
  165. /package/{styles → dist/css}/flex/flex.min.css +0 -0
  166. /package/{styles → dist/css}/grid/grid.min.css +0 -0
  167. /package/{styles → dist/css}/menu/menu.min.css +0 -0
  168. /package/{styles → dist/css}/overflow/overflow.min.css +0 -0
  169. /package/{styles → dist/css}/scale/scale.min.css +0 -0
  170. /package/{styles → dist/css}/table/table.min.css +0 -0
  171. /package/{styles → dist/css}/text/text.min.css +0 -0
  172. /package/{styles → dist/css}/zindex/zindex.min.css +0 -0
  173. /package/{_generated → dist/scss}/index.d.ts +0 -0
@@ -0,0 +1,1868 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
3
+ "name": "cssf",
4
+ "scopeName": "source.cssf",
5
+ "patterns": [
6
+ {
7
+ "include": "#comment-block"
8
+ },
9
+ {
10
+ "include": "#escapes"
11
+ },
12
+ {
13
+ "include": "#combinators"
14
+ },
15
+ {
16
+ "include": "#selector"
17
+ },
18
+ {
19
+ "include": "#at-rules"
20
+ },
21
+ {
22
+ "include": "#rule-list"
23
+ }
24
+ ],
25
+ "repository": {
26
+ "at-rules": {
27
+ "patterns": [
28
+ {
29
+ "begin": "\\A(?:\\xEF\\xBB\\xBF)?(?i:(?=\\s*@charset\\b))",
30
+ "end": ";|(?=$)",
31
+ "endCaptures": {
32
+ "0": {
33
+ "name": "punctuation.terminator.rule.cssf"
34
+ }
35
+ },
36
+ "name": "meta.at-rule.charset.cssf",
37
+ "patterns": [
38
+ {
39
+ "captures": {
40
+ "1": {
41
+ "name": "invalid.illegal.not-lowercase.charset.cssf"
42
+ },
43
+ "2": {
44
+ "name": "invalid.illegal.leading-whitespace.charset.cssf"
45
+ },
46
+ "3": {
47
+ "name": "invalid.illegal.no-whitespace.charset.cssf"
48
+ },
49
+ "4": {
50
+ "name": "invalid.illegal.whitespace.charset.cssf"
51
+ },
52
+ "5": {
53
+ "name": "invalid.illegal.not-double-quoted.charset.cssf"
54
+ },
55
+ "6": {
56
+ "name": "invalid.illegal.unclosed-string.charset.cssf"
57
+ },
58
+ "7": {
59
+ "name": "invalid.illegal.unexpected-characters.charset.cssf"
60
+ }
61
+ },
62
+ "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"
63
+ },
64
+ {
65
+ "captures": {
66
+ "1": {
67
+ "name": "keyword.control.at-rule.charset.cssf"
68
+ },
69
+ "2": {
70
+ "name": "punctuation.definition.keyword.cssf"
71
+ }
72
+ },
73
+ "match": "((@)charset)(?=\\s)"
74
+ },
75
+ {
76
+ "begin": "\"",
77
+ "beginCaptures": {
78
+ "0": {
79
+ "name": "punctuation.definition.string.begin.cssf"
80
+ }
81
+ },
82
+ "end": "\"|$",
83
+ "endCaptures": {
84
+ "0": {
85
+ "name": "punctuation.definition.string.end.cssf"
86
+ }
87
+ },
88
+ "name": "string.quoted.double.cssf",
89
+ "patterns": [
90
+ {
91
+ "begin": "(?:\\G|^)(?=(?:[^\"])+$)",
92
+ "end": "$",
93
+ "name": "invalid.illegal.unclosed.string.cssf"
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "begin": "(?i)((@)import)(?:\\s+|$|(?=['\"]|/\\*))",
101
+ "beginCaptures": {
102
+ "1": {
103
+ "name": "keyword.control.at-rule.import.cssf"
104
+ },
105
+ "2": {
106
+ "name": "punctuation.definition.keyword.cssf"
107
+ }
108
+ },
109
+ "end": ";",
110
+ "endCaptures": {
111
+ "0": {
112
+ "name": "punctuation.terminator.rule.cssf"
113
+ }
114
+ },
115
+ "name": "meta.at-rule.import.cssf",
116
+ "patterns": [
117
+ {
118
+ "begin": "\\G\\s*(?=/\\*)",
119
+ "end": "(?<=\\*/)\\s*",
120
+ "patterns": [
121
+ {
122
+ "include": "#comment-block"
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "include": "#string"
128
+ },
129
+ {
130
+ "include": "#url"
131
+ },
132
+ {
133
+ "include": "#media-query-list"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "begin": "(?i)((@)font-face)(?=\\s*|{|/\\*|$)",
139
+ "beginCaptures": {
140
+ "1": {
141
+ "name": "keyword.control.at-rule.font-face.cssf"
142
+ },
143
+ "2": {
144
+ "name": "punctuation.definition.keyword.cssf"
145
+ }
146
+ },
147
+ "end": "(?!\\G)",
148
+ "name": "meta.at-rule.font-face.cssf",
149
+ "patterns": [
150
+ {
151
+ "include": "#comment-block"
152
+ },
153
+ {
154
+ "include": "#escapes"
155
+ },
156
+ {
157
+ "include": "#rule-list"
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "begin": "(?i)(@)page(?=[\\s:{]|/\\*|$)",
163
+ "captures": {
164
+ "0": {
165
+ "name": "keyword.control.at-rule.page.cssf"
166
+ },
167
+ "1": {
168
+ "name": "punctuation.definition.keyword.cssf"
169
+ }
170
+ },
171
+ "end": "(?=\\s*($|[:{;]))",
172
+ "name": "meta.at-rule.page.cssf",
173
+ "patterns": [
174
+ {
175
+ "include": "#rule-list"
176
+ }
177
+ ]
178
+ },
179
+ {
180
+ "begin": "(?i)(?=@media(\\s|\\(|/\\*|$))",
181
+ "end": "(?<=})(?!\\G)",
182
+ "patterns": [
183
+ {
184
+ "begin": "(?i)\\G(@)media",
185
+ "beginCaptures": {
186
+ "0": {
187
+ "name": "keyword.control.at-rule.media.cssf"
188
+ },
189
+ "1": {
190
+ "name": "punctuation.definition.keyword.cssf"
191
+ }
192
+ },
193
+ "end": "(?=\\s*[{;])",
194
+ "name": "meta.at-rule.media.header.cssf",
195
+ "patterns": [
196
+ {
197
+ "include": "#media-query-list"
198
+ }
199
+ ]
200
+ },
201
+ {
202
+ "begin": "{",
203
+ "beginCaptures": {
204
+ "0": {
205
+ "name": "punctuation.section.media.begin.bracket.curly.cssf"
206
+ }
207
+ },
208
+ "end": "}",
209
+ "endCaptures": {
210
+ "0": {
211
+ "name": "punctuation.section.media.end.bracket.curly.cssf"
212
+ }
213
+ },
214
+ "name": "meta.at-rule.media.body.cssf",
215
+ "patterns": [
216
+ {
217
+ "include": "$self"
218
+ }
219
+ ]
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "begin": "(?i)(?=@counter-style([\\s'\"{;]|/\\*|$))",
225
+ "end": "(?<=})(?!\\G)",
226
+ "patterns": [
227
+ {
228
+ "begin": "(?i)\\G(@)counter-style",
229
+ "beginCaptures": {
230
+ "0": {
231
+ "name": "keyword.control.at-rule.counter-style.cssf"
232
+ },
233
+ "1": {
234
+ "name": "punctuation.definition.keyword.cssf"
235
+ }
236
+ },
237
+ "end": "(?=\\s*{)",
238
+ "name": "meta.at-rule.counter-style.header.cssf",
239
+ "patterns": [
240
+ {
241
+ "include": "#comment-block"
242
+ },
243
+ {
244
+ "include": "#escapes"
245
+ },
246
+ {
247
+ "captures": {
248
+ "0": {
249
+ "patterns": [
250
+ {
251
+ "include": "#escapes"
252
+ }
253
+ ]
254
+ }
255
+ },
256
+ "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)*",
257
+ "name": "variable.parameter.style-name.cssf"
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "begin": "{",
263
+ "beginCaptures": {
264
+ "0": {
265
+ "name": "punctuation.section.property-list.begin.bracket.curly.cssf"
266
+ }
267
+ },
268
+ "end": "}",
269
+ "endCaptures": {
270
+ "0": {
271
+ "name": "punctuation.section.property-list.end.bracket.curly.cssf"
272
+ }
273
+ },
274
+ "name": "meta.at-rule.counter-style.body.cssf",
275
+ "patterns": [
276
+ {
277
+ "include": "#comment-block"
278
+ },
279
+ {
280
+ "include": "#escapes"
281
+ },
282
+ {
283
+ "include": "#rule-list-innards"
284
+ }
285
+ ]
286
+ }
287
+ ]
288
+ },
289
+ {
290
+ "begin": "(?i)(?=@document([\\s'\"{;]|/\\*|$))",
291
+ "end": "(?<=})(?!\\G)",
292
+ "patterns": [
293
+ {
294
+ "begin": "(?i)\\G(@)document",
295
+ "beginCaptures": {
296
+ "0": {
297
+ "name": "keyword.control.at-rule.document.cssf"
298
+ },
299
+ "1": {
300
+ "name": "punctuation.definition.keyword.cssf"
301
+ }
302
+ },
303
+ "end": "(?=\\s*[{;])",
304
+ "name": "meta.at-rule.document.header.cssf",
305
+ "patterns": [
306
+ {
307
+ "begin": "(?i)(?<![\\w-])(url-prefix|domain|regexp)(\\()",
308
+ "beginCaptures": {
309
+ "1": {
310
+ "name": "support.function.document-rule.cssf"
311
+ },
312
+ "2": {
313
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
314
+ }
315
+ },
316
+ "end": "\\)",
317
+ "endCaptures": {
318
+ "0": {
319
+ "name": "punctuation.section.function.end.bracket.round.cssf"
320
+ }
321
+ },
322
+ "name": "meta.function.document-rule.cssf",
323
+ "patterns": [
324
+ {
325
+ "include": "#string"
326
+ },
327
+ {
328
+ "include": "#comment-block"
329
+ },
330
+ {
331
+ "include": "#escapes"
332
+ },
333
+ {
334
+ "match": "[^'\")\\s]+",
335
+ "name": "variable.parameter.document-rule.cssf"
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "include": "#url"
341
+ },
342
+ {
343
+ "include": "#commas"
344
+ },
345
+ {
346
+ "include": "#comment-block"
347
+ },
348
+ {
349
+ "include": "#escapes"
350
+ }
351
+ ]
352
+ },
353
+ {
354
+ "begin": "{",
355
+ "beginCaptures": {
356
+ "0": {
357
+ "name": "punctuation.section.document.begin.bracket.curly.cssf"
358
+ }
359
+ },
360
+ "end": "}",
361
+ "endCaptures": {
362
+ "0": {
363
+ "name": "punctuation.section.document.end.bracket.curly.cssf"
364
+ }
365
+ },
366
+ "name": "meta.at-rule.document.body.cssf",
367
+ "patterns": [
368
+ {
369
+ "include": "$self"
370
+ }
371
+ ]
372
+ }
373
+ ]
374
+ },
375
+ {
376
+ "begin": "(?i)(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\\s'\"{;]|/\\*|$))",
377
+ "end": "(?<=})(?!\\G)",
378
+ "patterns": [
379
+ {
380
+ "begin": "(?i)\\G(@)(?:-(?:webkit|moz|o|ms)-)?keyframes",
381
+ "beginCaptures": {
382
+ "0": {
383
+ "name": "keyword.control.at-rule.keyframes.cssf"
384
+ },
385
+ "1": {
386
+ "name": "punctuation.definition.keyword.cssf"
387
+ }
388
+ },
389
+ "end": "(?=\\s*{)",
390
+ "name": "meta.at-rule.keyframes.header.cssf",
391
+ "patterns": [
392
+ {
393
+ "include": "#comment-block"
394
+ },
395
+ {
396
+ "include": "#escapes"
397
+ },
398
+ {
399
+ "captures": {
400
+ "0": {
401
+ "patterns": [
402
+ {
403
+ "include": "#escapes"
404
+ }
405
+ ]
406
+ }
407
+ },
408
+ "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)*",
409
+ "name": "variable.parameter.keyframe-list.cssf"
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "begin": "{",
415
+ "beginCaptures": {
416
+ "0": {
417
+ "name": "punctuation.section.keyframes.begin.bracket.curly.cssf"
418
+ }
419
+ },
420
+ "end": "}",
421
+ "endCaptures": {
422
+ "0": {
423
+ "name": "punctuation.section.keyframes.end.bracket.curly.cssf"
424
+ }
425
+ },
426
+ "name": "meta.at-rule.keyframes.body.cssf",
427
+ "patterns": [
428
+ {
429
+ "include": "#comment-block"
430
+ },
431
+ {
432
+ "include": "#escapes"
433
+ },
434
+ {
435
+ "captures": {
436
+ "1": {
437
+ "name": "entity.other.keyframe-offset.cssf"
438
+ },
439
+ "2": {
440
+ "name": "entity.other.keyframe-offset.percentage.cssf"
441
+ }
442
+ },
443
+ "match": "(?xi)\n(?<![\\w-]) (from|to) (?![\\w-]) # Keywords for 0% | 100%\n|\n([-+]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)%) # Percentile value"
444
+ },
445
+ {
446
+ "include": "#rule-list"
447
+ }
448
+ ]
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "begin": "(?i)(?=@supports(\\s|\\(|/\\*|$))",
454
+ "end": "(?<=})(?!\\G)|(?=;)",
455
+ "patterns": [
456
+ {
457
+ "begin": "(?i)\\G(@)supports",
458
+ "beginCaptures": {
459
+ "0": {
460
+ "name": "keyword.control.at-rule.supports.cssf"
461
+ },
462
+ "1": {
463
+ "name": "punctuation.definition.keyword.cssf"
464
+ }
465
+ },
466
+ "end": "(?=\\s*[{;])",
467
+ "name": "meta.at-rule.supports.header.cssf",
468
+ "patterns": [
469
+ {
470
+ "include": "#feature-query-operators"
471
+ },
472
+ {
473
+ "include": "#feature-query"
474
+ },
475
+ {
476
+ "include": "#comment-block"
477
+ },
478
+ {
479
+ "include": "#escapes"
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "begin": "{",
485
+ "beginCaptures": {
486
+ "0": {
487
+ "name": "punctuation.section.supports.begin.bracket.curly.cssf"
488
+ }
489
+ },
490
+ "end": "}",
491
+ "endCaptures": {
492
+ "0": {
493
+ "name": "punctuation.section.supports.end.bracket.curly.cssf"
494
+ }
495
+ },
496
+ "name": "meta.at-rule.supports.body.cssf",
497
+ "patterns": [
498
+ {
499
+ "include": "$self"
500
+ }
501
+ ]
502
+ }
503
+ ]
504
+ },
505
+ {
506
+ "begin": "(?i)((@)(-(ms|o)-)?viewport)(?=[\\s'\"{;]|/\\*|$)",
507
+ "beginCaptures": {
508
+ "1": {
509
+ "name": "keyword.control.at-rule.viewport.cssf"
510
+ },
511
+ "2": {
512
+ "name": "punctuation.definition.keyword.cssf"
513
+ }
514
+ },
515
+ "end": "(?=\\s*[@{;])",
516
+ "name": "meta.at-rule.viewport.cssf",
517
+ "patterns": [
518
+ {
519
+ "include": "#comment-block"
520
+ },
521
+ {
522
+ "include": "#escapes"
523
+ }
524
+ ]
525
+ },
526
+ {
527
+ "begin": "(?i)((@)font-feature-values)(?=[\\s'\"{;]|/\\*|$)\\s*",
528
+ "beginCaptures": {
529
+ "1": {
530
+ "name": "keyword.control.at-rule.font-feature-values.cssf"
531
+ },
532
+ "2": {
533
+ "name": "punctuation.definition.keyword.cssf"
534
+ }
535
+ },
536
+ "contentName": "variable.parameter.font-name.cssf",
537
+ "end": "(?=\\s*[@{;])",
538
+ "name": "meta.at-rule.font-features.cssf",
539
+ "patterns": [
540
+ {
541
+ "include": "#comment-block"
542
+ },
543
+ {
544
+ "include": "#escapes"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "include": "#font-features"
550
+ },
551
+ {
552
+ "begin": "(?i)((@)namespace)(?=[\\s'\";]|/\\*|$)",
553
+ "beginCaptures": {
554
+ "1": {
555
+ "name": "keyword.control.at-rule.namespace.cssf"
556
+ },
557
+ "2": {
558
+ "name": "punctuation.definition.keyword.cssf"
559
+ }
560
+ },
561
+ "end": ";|(?=[@{])",
562
+ "endCaptures": {
563
+ "0": {
564
+ "name": "punctuation.terminator.rule.cssf"
565
+ }
566
+ },
567
+ "name": "meta.at-rule.namespace.cssf",
568
+ "patterns": [
569
+ {
570
+ "include": "#url"
571
+ },
572
+ {
573
+ "captures": {
574
+ "1": {
575
+ "patterns": [
576
+ {
577
+ "include": "#comment-block"
578
+ }
579
+ ]
580
+ },
581
+ "2": {
582
+ "name": "entity.name.function.namespace-prefix.cssf",
583
+ "patterns": [
584
+ {
585
+ "include": "#escapes"
586
+ }
587
+ ]
588
+ }
589
+ },
590
+ "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)"
591
+ },
592
+ {
593
+ "include": "#comment-block"
594
+ },
595
+ {
596
+ "include": "#escapes"
597
+ },
598
+ {
599
+ "include": "#string"
600
+ }
601
+ ]
602
+ },
603
+ {
604
+ "begin": "(?i)(?=@[\\w-]+[^;]+;s*$)",
605
+ "end": "(?<=;)(?!\\G)",
606
+ "patterns": [
607
+ {
608
+ "begin": "(?i)\\G(@)[\\w-]+",
609
+ "beginCaptures": {
610
+ "0": {
611
+ "name": "keyword.control.at-rule.cssf"
612
+ },
613
+ "1": {
614
+ "name": "punctuation.definition.keyword.cssf"
615
+ }
616
+ },
617
+ "end": ";",
618
+ "endCaptures": {
619
+ "0": {
620
+ "name": "punctuation.terminator.rule.cssf"
621
+ }
622
+ },
623
+ "name": "meta.at-rule.header.cssf"
624
+ }
625
+ ]
626
+ },
627
+ {
628
+ "begin": "(?i)(?=@[\\w-]+(\\s|\\(|{|/\\*|$))",
629
+ "end": "(?<=})(?!\\G)",
630
+ "patterns": [
631
+ {
632
+ "begin": "(?i)\\G(@)[\\w-]+",
633
+ "beginCaptures": {
634
+ "0": {
635
+ "name": "keyword.control.at-rule.cssf"
636
+ },
637
+ "1": {
638
+ "name": "punctuation.definition.keyword.cssf"
639
+ }
640
+ },
641
+ "end": "(?=\\s*[{;])",
642
+ "name": "meta.at-rule.header.cssf"
643
+ },
644
+ {
645
+ "begin": "{",
646
+ "beginCaptures": {
647
+ "0": {
648
+ "name": "punctuation.section.begin.bracket.curly.cssf"
649
+ }
650
+ },
651
+ "end": "}",
652
+ "endCaptures": {
653
+ "0": {
654
+ "name": "punctuation.section.end.bracket.curly.cssf"
655
+ }
656
+ },
657
+ "name": "meta.at-rule.body.cssf",
658
+ "patterns": [
659
+ {
660
+ "include": "$self"
661
+ }
662
+ ]
663
+ }
664
+ ]
665
+ }
666
+ ]
667
+ },
668
+ "color-keywords": {
669
+ "patterns": [
670
+ {
671
+ "match": "(?i)(?<![\\w-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\\w-])",
672
+ "name": "support.constant.color.w3c-standard-color-name.cssf"
673
+ },
674
+ {
675
+ "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-])",
676
+ "name": "support.constant.color.w3c-extended-color-name.cssf"
677
+ },
678
+ {
679
+ "match": "(?i)(?<![\\w-])currentColor(?![\\w-])",
680
+ "name": "support.constant.color.current.cssf"
681
+ },
682
+ {
683
+ "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-])",
684
+ "name": "invalid.deprecated.color.system.cssf"
685
+ }
686
+ ]
687
+ },
688
+ "combinators": {
689
+ "patterns": [
690
+ {
691
+ "match": "/deep/|>>>",
692
+ "name": "invalid.deprecated.combinator.cssf"
693
+ },
694
+ {
695
+ "match": ">>|>|\\+|~",
696
+ "name": "keyword.operator.combinator.cssf"
697
+ }
698
+ ]
699
+ },
700
+ "commas": {
701
+ "match": ",",
702
+ "name": "punctuation.separator.list.comma.cssf"
703
+ },
704
+ "comment-block": {
705
+ "begin": "/\\*",
706
+ "beginCaptures": {
707
+ "0": {
708
+ "name": "punctuation.definition.comment.begin.cssf"
709
+ }
710
+ },
711
+ "end": "\\*/",
712
+ "endCaptures": {
713
+ "0": {
714
+ "name": "punctuation.definition.comment.end.cssf"
715
+ }
716
+ },
717
+ "name": "comment.block.cssf"
718
+ },
719
+ "escapes": {
720
+ "patterns": [
721
+ {
722
+ "match": "\\\\[0-9a-fA-F]{1,6}",
723
+ "name": "constant.character.escape.codepoint.cssf"
724
+ },
725
+ {
726
+ "begin": "\\\\$\\s*",
727
+ "end": "^(?<!\\G)",
728
+ "name": "constant.character.escape.newline.cssf"
729
+ },
730
+ {
731
+ "match": "\\\\.",
732
+ "name": "constant.character.escape.cssf"
733
+ }
734
+ ]
735
+ },
736
+ "feature-query": {
737
+ "begin": "\\(",
738
+ "beginCaptures": {
739
+ "0": {
740
+ "name": "punctuation.definition.condition.begin.bracket.round.cssf"
741
+ }
742
+ },
743
+ "end": "\\)",
744
+ "endCaptures": {
745
+ "0": {
746
+ "name": "punctuation.definition.condition.end.bracket.round.cssf"
747
+ }
748
+ },
749
+ "name": "meta.feature-query.cssf",
750
+ "patterns": [
751
+ {
752
+ "include": "#feature-query-operators"
753
+ },
754
+ {
755
+ "include": "#feature-query"
756
+ }
757
+ ]
758
+ },
759
+ "feature-query-operators": {
760
+ "patterns": [
761
+ {
762
+ "match": "(?i)(?<=[\\s()]|^|\\*/)(and|not|or)(?=[\\s()]|/\\*|$)",
763
+ "name": "keyword.operator.logical.feature.$1.cssf"
764
+ },
765
+ {
766
+ "include": "#rule-list-innards"
767
+ }
768
+ ]
769
+ },
770
+ "font-features": {
771
+ "begin": "(?xi)\n((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))\n(?=[\\s@'\"{;]|/\\*|$)",
772
+ "beginCaptures": {
773
+ "1": {
774
+ "name": "keyword.control.at-rule.${3:/downcase}.cssf"
775
+ },
776
+ "2": {
777
+ "name": "punctuation.definition.keyword.cssf"
778
+ }
779
+ },
780
+ "end": "(?<=})",
781
+ "name": "meta.at-rule.${3:/downcase}.cssf",
782
+ "patterns": [
783
+ {
784
+ "begin": "{",
785
+ "beginCaptures": {
786
+ "0": {
787
+ "name": "punctuation.section.property-list.begin.bracket.curly.cssf"
788
+ }
789
+ },
790
+ "end": "}",
791
+ "endCaptures": {
792
+ "0": {
793
+ "name": "punctuation.section.property-list.end.bracket.curly.cssf"
794
+ }
795
+ },
796
+ "name": "meta.property-list.font-feature.cssf",
797
+ "patterns": [
798
+ {
799
+ "captures": {
800
+ "0": {
801
+ "patterns": [
802
+ {
803
+ "include": "#escapes"
804
+ }
805
+ ]
806
+ }
807
+ },
808
+ "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)*",
809
+ "name": "variable.font-feature.cssf"
810
+ },
811
+ {
812
+ "include": "#rule-list-innards"
813
+ }
814
+ ]
815
+ }
816
+ ]
817
+ },
818
+ "functions": {
819
+ "patterns": [
820
+ {
821
+ "begin": "(?i)(?<![\\w-])(calc)(\\()",
822
+ "beginCaptures": {
823
+ "1": {
824
+ "name": "support.function.calc.cssf"
825
+ },
826
+ "2": {
827
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
828
+ }
829
+ },
830
+ "end": "\\)",
831
+ "endCaptures": {
832
+ "0": {
833
+ "name": "punctuation.section.function.end.bracket.round.cssf"
834
+ }
835
+ },
836
+ "name": "meta.function.calc.cssf",
837
+ "patterns": [
838
+ {
839
+ "match": "[*/]|(?<=\\s|^)[-+](?=\\s|$)",
840
+ "name": "keyword.operator.arithmetic.cssf"
841
+ },
842
+ {
843
+ "include": "#property-values"
844
+ }
845
+ ]
846
+ },
847
+ {
848
+ "begin": "(?i)(?<![\\w-])(rgba?|rgb|hsla?|hsl|hwb|lab|oklab|lch|oklch|color)(\\()",
849
+ "beginCaptures": {
850
+ "1": {
851
+ "name": "support.function.misc.cssf"
852
+ },
853
+ "2": {
854
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
855
+ }
856
+ },
857
+ "end": "\\)",
858
+ "endCaptures": {
859
+ "0": {
860
+ "name": "punctuation.section.function.end.bracket.round.cssf"
861
+ }
862
+ },
863
+ "name": "meta.function.color.cssf",
864
+ "patterns": [
865
+ {
866
+ "include": "#property-values"
867
+ }
868
+ ]
869
+ },
870
+ {
871
+ "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(\\()",
872
+ "beginCaptures": {
873
+ "1": {
874
+ "name": "support.function.gradient.cssf"
875
+ },
876
+ "2": {
877
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
878
+ }
879
+ },
880
+ "end": "\\)",
881
+ "endCaptures": {
882
+ "0": {
883
+ "name": "punctuation.section.function.end.bracket.round.cssf"
884
+ }
885
+ },
886
+ "name": "meta.function.gradient.cssf",
887
+ "patterns": [
888
+ {
889
+ "match": "(?i)(?<![\\w-])(from|to|at|in|hue)(?![\\w-])",
890
+ "name": "keyword.operator.gradient.cssf"
891
+ },
892
+ {
893
+ "include": "#property-values"
894
+ }
895
+ ]
896
+ },
897
+ {
898
+ "begin": "(?i)(?<![\\w-])(-webkit-gradient)(\\()",
899
+ "beginCaptures": {
900
+ "1": {
901
+ "name": "invalid.deprecated.gradient.function.cssf"
902
+ },
903
+ "2": {
904
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
905
+ }
906
+ },
907
+ "end": "\\)",
908
+ "endCaptures": {
909
+ "0": {
910
+ "name": "punctuation.section.function.end.bracket.round.cssf"
911
+ }
912
+ },
913
+ "name": "meta.function.gradient.invalid.deprecated.gradient.cssf",
914
+ "patterns": [
915
+ {
916
+ "begin": "(?i)(?<![\\w-])(from|to|color-stop)(\\()",
917
+ "beginCaptures": {
918
+ "1": {
919
+ "name": "invalid.deprecated.function.cssf"
920
+ },
921
+ "2": {
922
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
923
+ }
924
+ },
925
+ "end": "\\)",
926
+ "endCaptures": {
927
+ "0": {
928
+ "name": "punctuation.section.function.end.bracket.round.cssf"
929
+ }
930
+ },
931
+ "patterns": [
932
+ {
933
+ "include": "#property-values"
934
+ }
935
+ ]
936
+ },
937
+ {
938
+ "include": "#property-values"
939
+ }
940
+ ]
941
+ },
942
+ {
943
+ "begin": "(?xi) (?<![\\w-])\n(annotation|attr|blur|brightness|character-variant|clamp|contrast|counters?\n|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|color-mix\n|image-set|invert|local|max|min|minmax|opacity|ornaments|repeat|saturate|sepia\n|styleset|stylistic|swash|symbols\n|cos|sin|tan|acos|asin|atan|atan2|hypot|sqrt|pow|log|exp|abs|sign)\n(\\()",
944
+ "beginCaptures": {
945
+ "1": {
946
+ "name": "support.function.misc.cssf"
947
+ },
948
+ "2": {
949
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
950
+ }
951
+ },
952
+ "end": "\\)",
953
+ "endCaptures": {
954
+ "0": {
955
+ "name": "punctuation.section.function.end.bracket.round.cssf"
956
+ }
957
+ },
958
+ "name": "meta.function.misc.cssf",
959
+ "patterns": [
960
+ {
961
+ "match": "(?i)(?<=[,\\s\"]|\\*/|^)\\d+x(?=[\\s,\"')]|/\\*|$)",
962
+ "name": "constant.numeric.other.density.cssf"
963
+ },
964
+ {
965
+ "include": "#property-values"
966
+ },
967
+ {
968
+ "match": "[^'\"),\\s]+",
969
+ "name": "variable.parameter.misc.cssf"
970
+ }
971
+ ]
972
+ },
973
+ {
974
+ "begin": "(?i)(?<![\\w-])(circle|ellipse|inset|polygon|rect)(\\()",
975
+ "beginCaptures": {
976
+ "1": {
977
+ "name": "support.function.shape.cssf"
978
+ },
979
+ "2": {
980
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
981
+ }
982
+ },
983
+ "end": "\\)",
984
+ "endCaptures": {
985
+ "0": {
986
+ "name": "punctuation.section.function.end.bracket.round.cssf"
987
+ }
988
+ },
989
+ "name": "meta.function.shape.cssf",
990
+ "patterns": [
991
+ {
992
+ "match": "(?i)(?<=\\s|^|\\*/)(at|round)(?=\\s|/\\*|$)",
993
+ "name": "keyword.operator.shape.cssf"
994
+ },
995
+ {
996
+ "include": "#property-values"
997
+ }
998
+ ]
999
+ },
1000
+ {
1001
+ "begin": "(?i)(?<![\\w-])(cubic-bezier|steps)(\\()",
1002
+ "beginCaptures": {
1003
+ "1": {
1004
+ "name": "support.function.timing-function.cssf"
1005
+ },
1006
+ "2": {
1007
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1008
+ }
1009
+ },
1010
+ "end": "\\)",
1011
+ "endCaptures": {
1012
+ "0": {
1013
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1014
+ }
1015
+ },
1016
+ "name": "meta.function.timing-function.cssf",
1017
+ "patterns": [
1018
+ {
1019
+ "match": "(?i)(?<![\\w-])(start|end)(?=\\s*\\)|$)",
1020
+ "name": "support.constant.step-direction.cssf"
1021
+ },
1022
+ {
1023
+ "include": "#property-values"
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "begin": "(?xi) (?<![\\w-])\n( (?:translate|scale|rotate)(?:[XYZ]|3D)?\n| matrix(?:3D)?\n| skew[XY]?\n| perspective\n)\n(\\()",
1029
+ "beginCaptures": {
1030
+ "1": {
1031
+ "name": "support.function.transform.cssf"
1032
+ },
1033
+ "2": {
1034
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1035
+ }
1036
+ },
1037
+ "end": "\\)",
1038
+ "endCaptures": {
1039
+ "0": {
1040
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1041
+ }
1042
+ },
1043
+ "patterns": [
1044
+ {
1045
+ "include": "#property-values"
1046
+ }
1047
+ ]
1048
+ },
1049
+ {
1050
+ "include": "#url"
1051
+ },
1052
+ {
1053
+ "begin": "(?i)(?<![\\w-])(var)(\\()",
1054
+ "beginCaptures": {
1055
+ "1": {
1056
+ "name": "support.function.misc.cssf"
1057
+ },
1058
+ "2": {
1059
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1060
+ }
1061
+ },
1062
+ "end": "\\)",
1063
+ "endCaptures": {
1064
+ "0": {
1065
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1066
+ }
1067
+ },
1068
+ "name": "meta.function.variable.cssf",
1069
+ "patterns": [
1070
+ {
1071
+ "name": "variable.argument.cssf",
1072
+ "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)*"
1073
+ },
1074
+ {
1075
+ "include": "#property-values"
1076
+ }
1077
+ ]
1078
+ }
1079
+ ]
1080
+ },
1081
+ "functional-pseudo-classes": {
1082
+ "patterns": [
1083
+ {
1084
+ "begin": "(?i)((:)dir)(\\()",
1085
+ "beginCaptures": {
1086
+ "1": {
1087
+ "name": "entity.other.attribute-name.pseudo-class.cssf"
1088
+ },
1089
+ "2": {
1090
+ "name": "punctuation.definition.entity.cssf"
1091
+ },
1092
+ "3": {
1093
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1094
+ }
1095
+ },
1096
+ "end": "\\)",
1097
+ "endCaptures": {
1098
+ "0": {
1099
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1100
+ }
1101
+ },
1102
+ "patterns": [
1103
+ {
1104
+ "include": "#comment-block"
1105
+ },
1106
+ {
1107
+ "include": "#escapes"
1108
+ },
1109
+ {
1110
+ "match": "(?i)(?<![\\w-])(ltr|rtl)(?![\\w-])",
1111
+ "name": "support.constant.text-direction.cssf"
1112
+ },
1113
+ {
1114
+ "include": "#property-values"
1115
+ }
1116
+ ]
1117
+ },
1118
+ {
1119
+ "begin": "(?i)((:)lang)(\\()",
1120
+ "beginCaptures": {
1121
+ "1": {
1122
+ "name": "entity.other.attribute-name.pseudo-class.cssf"
1123
+ },
1124
+ "2": {
1125
+ "name": "punctuation.definition.entity.cssf"
1126
+ },
1127
+ "3": {
1128
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1129
+ }
1130
+ },
1131
+ "end": "\\)",
1132
+ "endCaptures": {
1133
+ "0": {
1134
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1135
+ }
1136
+ },
1137
+ "patterns": [
1138
+ {
1139
+ "match": "(?<=[(,\\s])[a-zA-Z]+(-[a-zA-Z0-9]*|\\\\(?:[0-9a-fA-F]{1,6}|.))*(?=[),\\s])",
1140
+ "name": "support.constant.language-range.cssf"
1141
+ },
1142
+ {
1143
+ "begin": "\"",
1144
+ "beginCaptures": {
1145
+ "0": {
1146
+ "name": "punctuation.definition.string.begin.cssf"
1147
+ }
1148
+ },
1149
+ "end": "\"",
1150
+ "endCaptures": {
1151
+ "0": {
1152
+ "name": "punctuation.definition.string.end.cssf"
1153
+ }
1154
+ },
1155
+ "name": "string.quoted.double.cssf",
1156
+ "patterns": [
1157
+ {
1158
+ "include": "#escapes"
1159
+ },
1160
+ {
1161
+ "match": "(?<=[\"\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=[\"\\s])",
1162
+ "name": "support.constant.language-range.cssf"
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ "begin": "'",
1168
+ "beginCaptures": {
1169
+ "0": {
1170
+ "name": "punctuation.definition.string.begin.cssf"
1171
+ }
1172
+ },
1173
+ "end": "'",
1174
+ "endCaptures": {
1175
+ "0": {
1176
+ "name": "punctuation.definition.string.end.cssf"
1177
+ }
1178
+ },
1179
+ "name": "string.quoted.single.cssf",
1180
+ "patterns": [
1181
+ {
1182
+ "include": "#escapes"
1183
+ },
1184
+ {
1185
+ "match": "(?<=['\\s])[a-zA-Z*]+(-[a-zA-Z0-9*]*)*(?=['\\s])",
1186
+ "name": "support.constant.language-range.cssf"
1187
+ }
1188
+ ]
1189
+ },
1190
+ {
1191
+ "include": "#commas"
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "begin": "(?i)((:)(?:not|has|matches|where|is))(\\()",
1197
+ "beginCaptures": {
1198
+ "1": {
1199
+ "name": "entity.other.attribute-name.pseudo-class.cssf"
1200
+ },
1201
+ "2": {
1202
+ "name": "punctuation.definition.entity.cssf"
1203
+ },
1204
+ "3": {
1205
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1206
+ }
1207
+ },
1208
+ "end": "\\)",
1209
+ "endCaptures": {
1210
+ "0": {
1211
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1212
+ }
1213
+ },
1214
+ "patterns": [
1215
+ {
1216
+ "include": "#selector-innards"
1217
+ }
1218
+ ]
1219
+ },
1220
+ {
1221
+ "begin": "(?i)((:)nth-(?:last-)?(?:child|of-type))(\\()",
1222
+ "beginCaptures": {
1223
+ "1": {
1224
+ "name": "entity.other.attribute-name.pseudo-class.cssf"
1225
+ },
1226
+ "2": {
1227
+ "name": "punctuation.definition.entity.cssf"
1228
+ },
1229
+ "3": {
1230
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1231
+ }
1232
+ },
1233
+ "end": "\\)",
1234
+ "endCaptures": {
1235
+ "0": {
1236
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1237
+ }
1238
+ },
1239
+ "patterns": [
1240
+ {
1241
+ "match": "(?i)[+-]?(\\d+n?|n)(\\s*[+-]\\s*\\d+)?",
1242
+ "name": "constant.numeric.cssf"
1243
+ },
1244
+ {
1245
+ "match": "(?i)even|odd",
1246
+ "name": "support.constant.parity.cssf"
1247
+ }
1248
+ ]
1249
+ }
1250
+ ]
1251
+ },
1252
+ "media-features": {
1253
+ "captures": {
1254
+ "1": {
1255
+ "name": "support.type.property-name.media.cssf"
1256
+ },
1257
+ "2": {
1258
+ "name": "support.type.property-name.media.cssf"
1259
+ },
1260
+ "3": {
1261
+ "name": "support.type.vendored.property-name.media.cssf"
1262
+ }
1263
+ },
1264
+ "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 | hover\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"
1265
+ },
1266
+ "media-feature-keywords": {
1267
+ "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 | hover\n)\n(?=\\s|\\)|$)",
1268
+ "name": "support.constant.property-value.cssf"
1269
+ },
1270
+ "media-query": {
1271
+ "begin": "\\G",
1272
+ "end": "(?=\\s*[{;])",
1273
+ "patterns": [
1274
+ {
1275
+ "include": "#comment-block"
1276
+ },
1277
+ {
1278
+ "include": "#escapes"
1279
+ },
1280
+ {
1281
+ "include": "#media-types"
1282
+ },
1283
+ {
1284
+ "match": "(?i)(?<=\\s|^|,|\\*/)(only|not)(?=\\s|{|/\\*|$)",
1285
+ "name": "keyword.operator.logical.$1.media.cssf"
1286
+ },
1287
+ {
1288
+ "match": "(?i)(?<=\\s|^|\\*/|\\))and(?=\\s|/\\*|$)",
1289
+ "name": "keyword.operator.logical.and.media.cssf"
1290
+ },
1291
+ {
1292
+ "match": ",(?:(?:\\s*,)+|(?=\\s*[;){]))",
1293
+ "name": "invalid.illegal.comma.cssf"
1294
+ },
1295
+ {
1296
+ "include": "#commas"
1297
+ },
1298
+ {
1299
+ "begin": "\\(",
1300
+ "beginCaptures": {
1301
+ "0": {
1302
+ "name": "punctuation.definition.parameters.begin.bracket.round.cssf"
1303
+ }
1304
+ },
1305
+ "end": "\\)",
1306
+ "endCaptures": {
1307
+ "0": {
1308
+ "name": "punctuation.definition.parameters.end.bracket.round.cssf"
1309
+ }
1310
+ },
1311
+ "patterns": [
1312
+ {
1313
+ "include": "#media-features"
1314
+ },
1315
+ {
1316
+ "include": "#media-feature-keywords"
1317
+ },
1318
+ {
1319
+ "match": ":",
1320
+ "name": "punctuation.separator.key-value.cssf"
1321
+ },
1322
+ {
1323
+ "match": ">=|<=|=|<|>",
1324
+ "name": "keyword.operator.comparison.cssf"
1325
+ },
1326
+ {
1327
+ "captures": {
1328
+ "1": {
1329
+ "name": "constant.numeric.cssf"
1330
+ },
1331
+ "2": {
1332
+ "name": "keyword.operator.arithmetic.cssf"
1333
+ },
1334
+ "3": {
1335
+ "name": "constant.numeric.cssf"
1336
+ }
1337
+ },
1338
+ "match": "(\\d+)\\s*(/)\\s*(\\d+)",
1339
+ "name": "meta.ratio.cssf"
1340
+ },
1341
+ {
1342
+ "include": "#numeric-values"
1343
+ },
1344
+ {
1345
+ "include": "#comment-block"
1346
+ }
1347
+ ]
1348
+ }
1349
+ ]
1350
+ },
1351
+ "media-query-list": {
1352
+ "begin": "(?=\\s*[^{;])",
1353
+ "end": "(?=\\s*[{;])",
1354
+ "patterns": [
1355
+ {
1356
+ "include": "#media-query"
1357
+ }
1358
+ ]
1359
+ },
1360
+ "media-types": {
1361
+ "captures": {
1362
+ "1": {
1363
+ "name": "support.constant.media.cssf"
1364
+ },
1365
+ "2": {
1366
+ "name": "invalid.deprecated.constant.media.cssf"
1367
+ }
1368
+ },
1369
+ "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;]|/\\*)"
1370
+ },
1371
+ "numeric-values": {
1372
+ "patterns": [
1373
+ {
1374
+ "captures": {
1375
+ "1": {
1376
+ "name": "punctuation.definition.constant.cssf"
1377
+ }
1378
+ },
1379
+ "match": "(#)(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\\b",
1380
+ "name": "constant.other.color.rgb-value.hex.cssf"
1381
+ },
1382
+ {
1383
+ "captures": {
1384
+ "1": {
1385
+ "name": "keyword.other.unit.percentage.cssf"
1386
+ },
1387
+ "2": {
1388
+ "name": "keyword.other.unit.${2:/downcase}.cssf"
1389
+ }
1390
+ },
1391
+ "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|rch|rex|rlh|\n ic|ric|rcap|vh|vw|vb|vi|svh|\n svw|svb|svi|dvh|dvw|dvb|dvi|\n lvh|lvw|lvb|lvi|vmax|vmin|\n cqw|cqi|cqh|cqb|cqmin|cqmax\n | dpi|dpcm|dppx # - Resolution\n | s|ms # - Time\n )\n \\b # Boundary checking intentionally lax to\n)? # facilitate embedding in CSS-like grammars",
1392
+ "name": "constant.numeric.cssf"
1393
+ }
1394
+ ]
1395
+ },
1396
+ "property-keywords": {
1397
+ "patterns": [
1398
+ {
1399
+ "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-fill|auto-fit|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|dark|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|flow-root|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|light|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|x-large|x-small|xx-large|xx-small|y|zero|zoom-in|zoom-out)\n(?![\\w-])",
1400
+ "name": "support.constant.property-value.cssf"
1401
+ },
1402
+ {
1403
+ "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-])",
1404
+ "name": "support.constant.property-value.list-style-type.cssf"
1405
+ },
1406
+ {
1407
+ "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1408
+ "name": "support.constant.vendored.property-value.cssf"
1409
+ },
1410
+ {
1411
+ "match": "(?<![\\w-])(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system-ui|system|tahoma|times|trebuchet|ui-monospace|ui-rounded|ui-sans-serif|ui-serif|utopia|verdana|webdings|sans-serif|serif|monospace)(?![\\w-])",
1412
+ "name": "support.constant.font-name.cssf"
1413
+ },
1414
+ {
1415
+ "match": "(?xi) (?<![\\w-])\n(width\\(\\s*\\w+(\\s*,\\s*\\w+){0,3}\\s*\\)|height\\(\\s*\\w+(\\s*,\\s*\\w+){0,3}\\s*\\))\n(?![\\w-])",
1416
+ "name": "support.constant.property-value.dimension.cssf"
1417
+ }
1418
+ ]
1419
+ },
1420
+ "property-names": {
1421
+ "patterns": [
1422
+ {
1423
+ "match": "(?xi) (?<![\\w-])\n(?:\n # Standard CSS\n accent-color|additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration\n | animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backdrop-filter\n | backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image\n | background-origin|background-position|background-position-[xy]|background-repeat|background-size|bleed|block-size|border\n | border-block-end|border-block-end-color|border-block-end-style|border-block-end-width|border-block-start|border-block-start-color\n | border-block-start-style|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-end-end-radius|border-end-start-radius|border-image\n | border-image-outset|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|border-inline-start-color\n | border-inline-start-style|border-inline-start-width|border-left|border-left-color|border-left-style|border-left-width\n | border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-start-end-radius\n | border-start-start-radius|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style\n | border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side\n | caret-color|clear|clip|clip-path|clip-rule|color|color-adjust|color-interpolation-filters|color-scheme|column-count|column-fill|column-gap\n | column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|container|container-name|container-type|content|counter-increment\n | counter-reset|cursor|direction|display|empty-cells|enable-background|fallback|fill|fill-opacity|fill-rule|filter|flex|flex-basis\n | flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|flood-color|flood-opacity|font|font-display|font-family\n | font-feature-settings|font-kerning|font-language-override|font-optical-sizing|font-size|font-size-adjust|font-stretch\n | font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps|font-variant-east-asian|font-variant-ligatures\n | font-variant-numeric|font-variant-position|font-variation-settings|font-weight|gap|glyph-orientation-horizontal|glyph-orientation-vertical\n | grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap|grid-column-start\n | grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows\n | hanging-punctuation|height|hyphens|image-orientation|image-rendering|image-resolution|ime-mode|initial-letter|initial-letter-align\n | inline-size|inset|inset-block|inset-block-end|inset-block-start|inset-inline|inset-inline-end|inset-inline-start|isolation\n | justify-content|justify-items|justify-self|kerning|left|letter-spacing|lighting-color|line-break|line-clamp|line-height|list-style\n | list-style-image|list-style-position|list-style-type|margin|margin-block|margin-block-end|margin-block-start|margin-bottom|margin-inline|margin-inline-end|margin-inline-start\n | margin-left|margin-right|margin-top|marker-end|marker-mid|marker-start|marks|mask|mask-border|mask-border-mode|mask-border-outset\n | mask-border-repeat|mask-border-slice|mask-border-source|mask-border-width|mask-clip|mask-composite|mask-image|mask-mode\n | mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height|max-inline-size|max-lines|max-width\n | max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode|negative|object-fit|object-position\n | offset|offset-anchor|offset-distance|offset-path|offset-position|offset-rotation|opacity|order|orientation|orphans\n | outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-anchor|overflow-block|overflow-inline\n | overflow-wrap|overflow-[xy]|overscroll-behavior|overscroll-behavior-block|overscroll-behavior-inline|overscroll-behavior-[xy]\n | pad|padding|padding-block|padding-block-end|padding-block-start|padding-bottom|padding-inline|padding-inline-end|padding-inline-start|padding-left\n | padding-right|padding-top|page-break-after|page-break-before|page-break-inside|paint-order|perspective|perspective-origin\n | place-content|place-items|place-self|pointer-events|position|prefix|quotes|range|resize|right|rotate|row-gap|ruby-align\n | ruby-merge|ruby-position|scale|scroll-behavior|scroll-margin|scroll-margin-block|scroll-margin-block-end|scroll-margin-block-start\n | scroll-margin-bottom|scroll-margin-inline|scroll-margin-inline-end|scroll-margin-inline-start|scroll-margin-left|scroll-margin-right\n | scroll-margin-top|scroll-padding|scroll-padding-block|scroll-padding-block-end|scroll-padding-block-start|scroll-padding-bottom\n | scroll-padding-inline|scroll-padding-inline-end|scroll-padding-inline-start|scroll-padding-left|scroll-padding-right\n | scroll-padding-top|scroll-snap-align|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-stop|scroll-snap-type\n | scrollbar-color|scrollbar-gutter|scrollbar-width|shape-image-threshold|shape-margin|shape-outside|shape-rendering|size\n | speak-as|src|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit\n | stroke-opacity|stroke-width|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last|text-anchor|text-combine-upright\n | text-decoration|text-decoration-color|text-decoration-line|text-decoration-skip|text-decoration-skip-ink|text-decoration-style|text-decoration-thickness\n | text-emphasis|text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-justify|text-orientation\n | text-overflow|text-rendering|text-shadow|text-size-adjust|text-transform|text-underline-offset|text-underline-position|top|touch-action|transform\n | transform-box|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function\n | translate|unicode-bidi|unicode-range|user-select|user-zoom|vertical-align|visibility|white-space|widows|width|will-change\n | 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-])",
1424
+ "name": "support.type.property-name.cssf"
1425
+ },
1426
+ {
1427
+ "match": "(?<![\\w-])(?i:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-zA-Z-]+",
1428
+ "name": "support.type.vendored.property-name.cssf"
1429
+ },
1430
+ {
1431
+ "name": "support.type.property-name.dimension.cssf",
1432
+ "match": "\\b(dimension)\\b"
1433
+ }
1434
+ ]
1435
+ },
1436
+ "property-values": {
1437
+ "patterns": [
1438
+ {
1439
+ "include": "#commas"
1440
+ },
1441
+ {
1442
+ "include": "#comment-block"
1443
+ },
1444
+ {
1445
+ "include": "#escapes"
1446
+ },
1447
+ {
1448
+ "include": "#functions"
1449
+ },
1450
+ {
1451
+ "include": "#property-keywords"
1452
+ },
1453
+ {
1454
+ "include": "#unicode-range"
1455
+ },
1456
+ {
1457
+ "include": "#numeric-values"
1458
+ },
1459
+ {
1460
+ "include": "#color-keywords"
1461
+ },
1462
+ {
1463
+ "include": "#string"
1464
+ },
1465
+ {
1466
+ "match": "!\\s*important(?![\\w-])",
1467
+ "name": "keyword.other.important.cssf"
1468
+ }
1469
+ ]
1470
+ },
1471
+ "pseudo-classes": {
1472
+ "captures": {
1473
+ "1": {
1474
+ "name": "punctuation.definition.entity.cssf"
1475
+ },
1476
+ "2": {
1477
+ "name": "invalid.illegal.colon.cssf"
1478
+ }
1479
+ },
1480
+ "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|focus-visible|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*[;}])",
1481
+ "name": "entity.other.attribute-name.pseudo-class.cssf"
1482
+ },
1483
+ "pseudo-elements": {
1484
+ "captures": {
1485
+ "1": {
1486
+ "name": "punctuation.definition.entity.cssf"
1487
+ },
1488
+ "2": {
1489
+ "name": "punctuation.definition.entity.cssf"
1490
+ }
1491
+ },
1492
+ "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*[;}])",
1493
+ "name": "entity.other.attribute-name.pseudo-element.cssf"
1494
+ },
1495
+ "rule-list": {
1496
+ "begin": "{",
1497
+ "beginCaptures": {
1498
+ "0": {
1499
+ "name": "punctuation.section.property-list.begin.bracket.curly.cssf"
1500
+ }
1501
+ },
1502
+ "end": "}",
1503
+ "endCaptures": {
1504
+ "0": {
1505
+ "name": "punctuation.section.property-list.end.bracket.curly.cssf"
1506
+ }
1507
+ },
1508
+ "name": "meta.property-list.cssf",
1509
+ "patterns": [
1510
+ {
1511
+ "include": "#rule-list-innards"
1512
+ }
1513
+ ]
1514
+ },
1515
+ "rule-list-innards": {
1516
+ "patterns": [
1517
+ {
1518
+ "include": "#comment-block"
1519
+ },
1520
+ {
1521
+ "include": "#escapes"
1522
+ },
1523
+ {
1524
+ "include": "#font-features"
1525
+ },
1526
+ {
1527
+ "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)*",
1528
+ "name": "variable.cssf"
1529
+ },
1530
+ {
1531
+ "begin": "(?<![-a-zA-Z])(?=[-a-zA-Z])",
1532
+ "end": "$|(?![-a-zA-Z])",
1533
+ "name": "meta.property-name.cssf",
1534
+ "patterns": [
1535
+ {
1536
+ "include": "#property-names"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "begin": "(:)\\s*",
1542
+ "beginCaptures": {
1543
+ "1": {
1544
+ "name": "punctuation.separator.key-value.cssf"
1545
+ }
1546
+ },
1547
+ "end": "\\s*(;)|\\s*(?=}|\\))",
1548
+ "endCaptures": {
1549
+ "1": {
1550
+ "name": "punctuation.terminator.rule.cssf"
1551
+ }
1552
+ },
1553
+ "contentName": "meta.property-value.cssf",
1554
+ "patterns": [
1555
+ {
1556
+ "include": "#comment-block"
1557
+ },
1558
+ {
1559
+ "include": "#property-values"
1560
+ }
1561
+ ]
1562
+ },
1563
+ {
1564
+ "match": ";",
1565
+ "name": "punctuation.terminator.rule.cssf"
1566
+ }
1567
+ ]
1568
+ },
1569
+ "selector": {
1570
+ "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)",
1571
+ "end": "(?=\\s*[/@{)])",
1572
+ "name": "meta.selector.cssf",
1573
+ "patterns": [
1574
+ {
1575
+ "include": "#selector-innards"
1576
+ }
1577
+ ]
1578
+ },
1579
+ "selector-innards": {
1580
+ "patterns": [
1581
+ {
1582
+ "include": "#comment-block"
1583
+ },
1584
+ {
1585
+ "include": "#commas"
1586
+ },
1587
+ {
1588
+ "include": "#escapes"
1589
+ },
1590
+ {
1591
+ "include": "#combinators"
1592
+ },
1593
+ {
1594
+ "captures": {
1595
+ "1": {
1596
+ "name": "entity.other.namespace-prefix.cssf"
1597
+ },
1598
+ "2": {
1599
+ "name": "punctuation.separator.cssf"
1600
+ }
1601
+ },
1602
+ "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"
1603
+ },
1604
+ {
1605
+ "include": "#tag-names"
1606
+ },
1607
+ {
1608
+ "match": "\\*",
1609
+ "name": "entity.name.tag.wildcard.cssf"
1610
+ },
1611
+ {
1612
+ "captures": {
1613
+ "1": {
1614
+ "name": "punctuation.definition.entity.cssf"
1615
+ },
1616
+ "2": {
1617
+ "patterns": [
1618
+ {
1619
+ "include": "#escapes"
1620
+ }
1621
+ ]
1622
+ }
1623
+ },
1624
+ "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)",
1625
+ "name": "invalid.illegal.bad-identifier.cssf"
1626
+ },
1627
+ {
1628
+ "captures": {
1629
+ "1": {
1630
+ "name": "punctuation.definition.entity.cssf"
1631
+ },
1632
+ "2": {
1633
+ "patterns": [
1634
+ {
1635
+ "include": "#escapes"
1636
+ }
1637
+ ]
1638
+ }
1639
+ },
1640
+ "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)",
1641
+ "name": "entity.other.attribute-name.class.cssf"
1642
+ },
1643
+ {
1644
+ "captures": {
1645
+ "1": {
1646
+ "name": "punctuation.definition.entity.cssf"
1647
+ },
1648
+ "2": {
1649
+ "patterns": [
1650
+ {
1651
+ "include": "#escapes"
1652
+ }
1653
+ ]
1654
+ }
1655
+ },
1656
+ "match": "(?x)\n(\\#)\n(\n -?\n (?![0-9])\n (?:[-a-zA-Z0-9_]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+\n)\n(?=$|[\\s,.\\#)\\[:{>+~|]|/\\*)",
1657
+ "name": "entity.other.attribute-name.id.cssf"
1658
+ },
1659
+ {
1660
+ "begin": "\\[",
1661
+ "beginCaptures": {
1662
+ "0": {
1663
+ "name": "punctuation.definition.entity.begin.bracket.square.cssf"
1664
+ }
1665
+ },
1666
+ "end": "\\]",
1667
+ "endCaptures": {
1668
+ "0": {
1669
+ "name": "punctuation.definition.entity.end.bracket.square.cssf"
1670
+ }
1671
+ },
1672
+ "name": "meta.attribute-selector.cssf",
1673
+ "patterns": [
1674
+ {
1675
+ "include": "#comment-block"
1676
+ },
1677
+ {
1678
+ "include": "#string"
1679
+ },
1680
+ {
1681
+ "captures": {
1682
+ "1": {
1683
+ "name": "storage.modifier.ignore-case.cssf"
1684
+ }
1685
+ },
1686
+ "match": "(?<=[\"'\\s]|^|\\*/)\\s*([iI])\\s*(?=[\\s\\]]|/\\*|$)"
1687
+ },
1688
+ {
1689
+ "captures": {
1690
+ "1": {
1691
+ "name": "string.unquoted.attribute-value.cssf",
1692
+ "patterns": [
1693
+ {
1694
+ "include": "#escapes"
1695
+ }
1696
+ ]
1697
+ }
1698
+ },
1699
+ "match": "(?x)(?<==)\\s*((?!/\\*)(?:[^\\\\\"'\\s\\]]|\\\\.)+)"
1700
+ },
1701
+ {
1702
+ "include": "#escapes"
1703
+ },
1704
+ {
1705
+ "match": "[~|^$*]?=",
1706
+ "name": "keyword.operator.pattern.cssf"
1707
+ },
1708
+ {
1709
+ "match": "\\|",
1710
+ "name": "punctuation.separator.cssf"
1711
+ },
1712
+ {
1713
+ "captures": {
1714
+ "1": {
1715
+ "name": "entity.other.namespace-prefix.cssf",
1716
+ "patterns": [
1717
+ {
1718
+ "include": "#escapes"
1719
+ }
1720
+ ]
1721
+ }
1722
+ },
1723
+ "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)"
1724
+ },
1725
+ {
1726
+ "captures": {
1727
+ "1": {
1728
+ "name": "entity.other.attribute-name.cssf",
1729
+ "patterns": [
1730
+ {
1731
+ "include": "#escapes"
1732
+ }
1733
+ ]
1734
+ }
1735
+ },
1736
+ "match": "(?x)\n(-?(?!\\d)(?>[\\w-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|.))+)\n\\s*\n(?=[~|^\\]$*=]|/\\*)"
1737
+ }
1738
+ ]
1739
+ },
1740
+ {
1741
+ "include": "#pseudo-classes"
1742
+ },
1743
+ {
1744
+ "include": "#pseudo-elements"
1745
+ },
1746
+ {
1747
+ "include": "#functional-pseudo-classes"
1748
+ },
1749
+ {
1750
+ "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-])",
1751
+ "name": "entity.name.tag.custom.cssf"
1752
+ }
1753
+ ]
1754
+ },
1755
+ "string": {
1756
+ "patterns": [
1757
+ {
1758
+ "begin": "\"",
1759
+ "beginCaptures": {
1760
+ "0": {
1761
+ "name": "punctuation.definition.string.begin.cssf"
1762
+ }
1763
+ },
1764
+ "end": "\"|(?<!\\\\)(?=$|\\n)",
1765
+ "endCaptures": {
1766
+ "0": {
1767
+ "name": "punctuation.definition.string.end.cssf"
1768
+ }
1769
+ },
1770
+ "name": "string.quoted.double.cssf",
1771
+ "patterns": [
1772
+ {
1773
+ "begin": "(?:\\G|^)(?=(?:[^\\\\\"]|\\\\.)+$)",
1774
+ "end": "$",
1775
+ "name": "invalid.illegal.unclosed.string.cssf",
1776
+ "patterns": [
1777
+ {
1778
+ "include": "#escapes"
1779
+ }
1780
+ ]
1781
+ },
1782
+ {
1783
+ "include": "#escapes"
1784
+ }
1785
+ ]
1786
+ },
1787
+ {
1788
+ "begin": "'",
1789
+ "beginCaptures": {
1790
+ "0": {
1791
+ "name": "punctuation.definition.string.begin.cssf"
1792
+ }
1793
+ },
1794
+ "end": "'|(?<!\\\\)(?=$|\\n)",
1795
+ "endCaptures": {
1796
+ "0": {
1797
+ "name": "punctuation.definition.string.end.cssf"
1798
+ }
1799
+ },
1800
+ "name": "string.quoted.single.cssf",
1801
+ "patterns": [
1802
+ {
1803
+ "begin": "(?:\\G|^)(?=(?:[^\\\\']|\\\\.)+$)",
1804
+ "end": "$",
1805
+ "name": "invalid.illegal.unclosed.string.cssf",
1806
+ "patterns": [
1807
+ {
1808
+ "include": "#escapes"
1809
+ }
1810
+ ]
1811
+ },
1812
+ {
1813
+ "include": "#escapes"
1814
+ }
1815
+ ]
1816
+ }
1817
+ ]
1818
+ },
1819
+ "tag-names": {
1820
+ "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,.\\#|){:\\[]|/\\*|$)",
1821
+ "name": "entity.name.tag.cssf"
1822
+ },
1823
+ "unicode-range": {
1824
+ "captures": {
1825
+ "0": {
1826
+ "name": "constant.other.unicode-range.cssf"
1827
+ },
1828
+ "1": {
1829
+ "name": "punctuation.separator.dash.unicode-range.cssf"
1830
+ }
1831
+ },
1832
+ "match": "(?<![\\w-])[Uu]\\+[0-9A-Fa-f?]{1,6}(?:(-)[0-9A-Fa-f]{1,6})?(?![\\w-])"
1833
+ },
1834
+ "url": {
1835
+ "begin": "(?i)(?<![\\w@-])(url)(\\()",
1836
+ "beginCaptures": {
1837
+ "1": {
1838
+ "name": "support.function.url.cssf"
1839
+ },
1840
+ "2": {
1841
+ "name": "punctuation.section.function.begin.bracket.round.cssf"
1842
+ }
1843
+ },
1844
+ "end": "\\)",
1845
+ "endCaptures": {
1846
+ "0": {
1847
+ "name": "punctuation.section.function.end.bracket.round.cssf"
1848
+ }
1849
+ },
1850
+ "name": "meta.function.url.cssf",
1851
+ "patterns": [
1852
+ {
1853
+ "match": "[^'\")\\s]+",
1854
+ "name": "variable.parameter.url.cssf"
1855
+ },
1856
+ {
1857
+ "include": "#string"
1858
+ },
1859
+ {
1860
+ "include": "#comment-block"
1861
+ },
1862
+ {
1863
+ "include": "#escapes"
1864
+ }
1865
+ ]
1866
+ }
1867
+ }
1868
+ }