github-linguist 5.0.6 → 5.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/source.bsl.json +196 -162
  3. data/grammars/source.ceylon.json +43 -21
  4. data/grammars/source.coffee.json +46 -21
  5. data/grammars/source.cs.json +2 -2
  6. data/grammars/source.csound-score.json +41 -18
  7. data/grammars/source.csound.json +63 -7
  8. data/grammars/source.css.json +2 -2
  9. data/grammars/source.css.less.json +22 -91
  10. data/grammars/source.ditroff.json +114 -116
  11. data/grammars/source.gfm.clean.json +28 -0
  12. data/grammars/source.gfm.json +1 -0
  13. data/grammars/source.jison.json +678 -0
  14. data/grammars/source.jisonlex-injection.json +11 -0
  15. data/grammars/source.jisonlex.json +432 -0
  16. data/grammars/source.js.json +12 -67
  17. data/grammars/source.jsdoc.json +485 -0
  18. data/grammars/source.p4.json +15 -0
  19. data/grammars/source.perl6fe.json +37 -1
  20. data/grammars/source.puppet.json +1 -1
  21. data/grammars/source.python.json +6 -3
  22. data/grammars/source.quoting.perl6fe.json +101 -0
  23. data/grammars/source.rpm-spec.json +7 -3
  24. data/grammars/source.scad.json +152 -0
  25. data/grammars/source.shaderlab.json +42 -15
  26. data/grammars/source.terraform.json +18 -0
  27. data/grammars/source.yaml.json +57 -32
  28. data/grammars/text.html.php.blade.json +1 -1
  29. data/grammars/text.marko.json +1522 -0
  30. data/grammars/text.roff.json +9 -6
  31. data/lib/linguist.rb +2 -2
  32. data/lib/linguist/documentation.yml +4 -3
  33. data/lib/linguist/heuristics.rb +2 -0
  34. data/lib/linguist/languages.json +1 -1
  35. data/lib/linguist/languages.yml +33 -1
  36. data/lib/linguist/samples.json +423 -48
  37. data/lib/linguist/version.rb +1 -1
  38. metadata +13 -7
  39. data/grammars/module.ceylon.json +0 -54
@@ -54,7 +54,18 @@
54
54
  "name": "punctuation.definition.string.end.coffee"
55
55
  }
56
56
  },
57
- "name": "string.quoted.heredoc.coffee"
57
+ "name": "string.quoted.heredoc.coffee",
58
+ "patterns": [
59
+ {
60
+ "captures": {
61
+ "1": {
62
+ "name": "punctuation.definition.escape.backslash.coffee"
63
+ }
64
+ },
65
+ "match": "(\\\\).",
66
+ "name": "constant.character.escape.backslash.coffee"
67
+ }
68
+ ]
58
69
  },
59
70
  {
60
71
  "begin": "\"\"\"",
@@ -72,8 +83,13 @@
72
83
  "name": "string.quoted.double.heredoc.coffee",
73
84
  "patterns": [
74
85
  {
75
- "match": "\\\\.",
76
- "name": "constant.character.escape.coffee"
86
+ "captures": {
87
+ "1": {
88
+ "name": "punctuation.definition.escape.backslash.coffee"
89
+ }
90
+ },
91
+ "match": "(\\\\).",
92
+ "name": "constant.character.escape.backslash.coffee"
77
93
  },
78
94
  {
79
95
  "include": "#interpolated_coffee"
@@ -148,24 +164,23 @@
148
164
  ]
149
165
  },
150
166
  {
151
- "begin": "/(?![/*+?])(?=([^\\\\]|\\\\.)*?/[gimuy]*)",
152
- "beginCaptures": {
153
- "0": {
154
- "name": "punctuation.definition.string.begin.coffee"
155
- }
156
- },
157
- "end": "(/)[gimuy]*",
158
- "endCaptures": {
167
+ "match": "(?<![\\w$])(/)(?![/*+?])(.+?)(/)[gimuy]*(?!\\s*[\\w$/(])",
168
+ "captures": {
159
169
  "1": {
170
+ "name": "punctuation.definition.string.begin.coffee"
171
+ },
172
+ "2": {
173
+ "patterns": [
174
+ {
175
+ "include": "source.js.regexp"
176
+ }
177
+ ]
178
+ },
179
+ "3": {
160
180
  "name": "punctuation.definition.string.end.coffee"
161
181
  }
162
182
  },
163
- "name": "string.regexp.coffee",
164
- "patterns": [
165
- {
166
- "include": "source.js.regexp"
167
- }
168
- ]
183
+ "name": "string.regexp.coffee"
169
184
  },
170
185
  {
171
186
  "match": "\\b(?<![\\.\\$])(break|by|catch|continue|else|finally|for|in|of|if|return|switch|then|throw|try|unless|when|while|until|loop|do|(?<=for)\\s+own)(?!\\s*:)\\b",
@@ -423,8 +438,13 @@
423
438
  "name": "string.quoted.double.coffee",
424
439
  "patterns": [
425
440
  {
426
- "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
427
- "name": "constant.character.escape.coffee"
441
+ "captures": {
442
+ "1": {
443
+ "name": "punctuation.definition.escape.backslash.coffee"
444
+ }
445
+ },
446
+ "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
447
+ "name": "constant.character.escape.backslash.coffee"
428
448
  },
429
449
  {
430
450
  "include": "#interpolated_coffee"
@@ -499,8 +519,13 @@
499
519
  "name": "string.quoted.single.coffee",
500
520
  "patterns": [
501
521
  {
502
- "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
503
- "name": "constant.character.escape.coffee"
522
+ "captures": {
523
+ "1": {
524
+ "name": "punctuation.definition.escape.backslash.coffee"
525
+ }
526
+ },
527
+ "match": "(\\\\)(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
528
+ "name": "constant.character.escape.backslash.coffee"
504
529
  }
505
530
  ]
506
531
  }
@@ -436,7 +436,7 @@
436
436
  ]
437
437
  },
438
438
  "type-declaration": {
439
- "begin": "(?=(?:public|private|protected|internal|static|partial)?(.*)?(?:class|struct|interface)\\s+\\w+)",
439
+ "begin": "(?=(?:public|private|protected|internal|static|partial|abstract|sealed|new)?(.*)?(?:class|struct|interface)\\s+\\w+)",
440
440
  "end": "}",
441
441
  "endCaptures": {
442
442
  "0": {
@@ -445,7 +445,7 @@
445
445
  },
446
446
  "patterns": [
447
447
  {
448
- "match": "\\b(public|private|protected|internal|static|partial)\\b",
448
+ "match": "\\b(public|private|protected|internal|static|partial|abstract|sealed|new)\\b",
449
449
  "name": "storage.modifier.cs"
450
450
  },
451
451
  {
@@ -16,7 +16,7 @@
16
16
  "match": "[abCefiqstvxy]"
17
17
  },
18
18
  {
19
- "name": "entity.invalid.illegal.csound-score",
19
+ "name": "invalid.illegal.csound-score",
20
20
  "match": "w"
21
21
  },
22
22
  {
@@ -131,39 +131,62 @@
131
131
  "patterns": [
132
132
  {
133
133
  "name": "meta.braced-loop-details.csound-score",
134
- "begin": "\\d+",
135
- "end": "(?=\\})",
136
- "beginCaptures": {
137
- "0": {
138
- "name": "constant.numeric.integer.decimal.csound-score"
139
- }
140
- },
134
+ "begin": "\\G",
135
+ "end": "(?=\\n)",
141
136
  "patterns": [
142
137
  {
143
- "name": "meta.braced-loop-macro-name.csound-score",
144
- "begin": "(?:([A-Z_a-z]\\w*)|(\\d+\\w*))\\b",
145
- "end": "(?=\\})",
138
+ "begin": "\\d+",
139
+ "end": "(?=\\n)",
146
140
  "beginCaptures": {
147
- "1": {
148
- "name": "entity.name.function.preprocessor.csound-score"
149
- },
150
- "2": {
151
- "name": "entity.invalid.illegal.preprocessor.csound-score"
141
+ "0": {
142
+ "name": "constant.numeric.integer.decimal.csound-score"
152
143
  }
153
144
  },
154
145
  "patterns": [
155
146
  {
156
- "include": "$self"
147
+ "begin": "[A-Z_a-z]\\w*\\b",
148
+ "end": "(?=\\n)",
149
+ "beginCaptures": {
150
+ "0": {
151
+ "name": "entity.name.function.preprocessor.csound-score"
152
+ }
153
+ },
154
+ "patterns": [
155
+ {
156
+ "include": "#comments"
157
+ },
158
+ {
159
+ "name": "invalid.illegal.csound-score",
160
+ "match": "\\S+"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ "include": "#comments"
166
+ },
167
+ {
168
+ "name": "invalid.illegal.csound-score",
169
+ "match": "\\S+"
157
170
  }
158
171
  ]
159
172
  },
160
173
  {
161
174
  "include": "#comments"
175
+ },
176
+ {
177
+ "name": "invalid.illegal.csound-score",
178
+ "match": "\\S+"
162
179
  }
163
180
  ]
164
181
  },
165
182
  {
166
- "include": "#comments"
183
+ "begin": "\\n",
184
+ "end": "(?=\\})",
185
+ "patterns": [
186
+ {
187
+ "include": "$self"
188
+ }
189
+ ]
167
190
  }
168
191
  ]
169
192
  }
@@ -151,12 +151,32 @@
151
151
  }
152
152
  },
153
153
  {
154
- "name": "comment.line.csound",
155
- "begin": "//|;",
154
+ "name": "comment.line.double-slash.csound",
155
+ "begin": "//",
156
156
  "end": "(?=\\n)",
157
157
  "beginCaptures": {
158
158
  "0": {
159
- "name": "punctuation.definition.comment.line.csound"
159
+ "name": "punctuation.definition.comment.csound"
160
+ }
161
+ }
162
+ },
163
+ {
164
+ "include": "#semicolonComments"
165
+ },
166
+ {
167
+ "include": "#lineContinuations"
168
+ }
169
+ ]
170
+ },
171
+ "semicolonComments": {
172
+ "patterns": [
173
+ {
174
+ "name": "comment.line.semicolon.csound",
175
+ "begin": ";",
176
+ "end": "(?=\\n)",
177
+ "beginCaptures": {
178
+ "0": {
179
+ "name": "punctuation.definition.comment.csound"
160
180
  }
161
181
  }
162
182
  }
@@ -223,6 +243,29 @@
223
243
  }
224
244
  ]
225
245
  },
246
+ "lineContinuations": {
247
+ "patterns": [
248
+ {
249
+ "name": "meta.line-continuation.csound",
250
+ "begin": "\\\\",
251
+ "end": "\\n",
252
+ "beginCaptures": {
253
+ "0": {
254
+ "name": "constant.character.escape.line-continuation.csound"
255
+ }
256
+ },
257
+ "patterns": [
258
+ {
259
+ "include": "#semicolonComments"
260
+ },
261
+ {
262
+ "name": "invalid.illegal.csound",
263
+ "match": "\\S+"
264
+ }
265
+ ]
266
+ }
267
+ ]
268
+ },
226
269
  "macroNames": {
227
270
  "patterns": [
228
271
  {
@@ -360,7 +403,7 @@
360
403
  "include": "#floatingPointNumbers"
361
404
  },
362
405
  {
363
- "match": "(0[Xx])([0-9A-Fa-f]+)",
406
+ "match": "(0[Xx])(\\h+)",
364
407
  "captures": {
365
408
  "1": {
366
409
  "name": "storage.type.number.csound"
@@ -410,7 +453,7 @@
410
453
  },
411
454
  {
412
455
  "begin": "\\b((?:c(?:g|in?|k|nk?)goto)|goto|igoto|kgoto|loop_[gl][et]|r(?:einit|igoto)|ti(?:goto|mout))\\b",
413
- "end": "(\\w+)\\s*((//|;).*)?\\n",
456
+ "end": "(\\w+)\\s*(?:((//).*)|((;).*))?\\n",
414
457
  "beginCaptures": {
415
458
  "1": {
416
459
  "name": "keyword.control.csound"
@@ -421,10 +464,16 @@
421
464
  "name": "entity.name.label.csound"
422
465
  },
423
466
  "2": {
424
- "name": "comment.line.csound"
467
+ "name": "comment.line.double-slash.csound"
425
468
  },
426
469
  "3": {
427
- "name": "punctuation.definition.comment.line.csound"
470
+ "name": "punctuation.definition.comment.csound"
471
+ },
472
+ "4": {
473
+ "name": "comment.line.semicolon.csound"
474
+ },
475
+ "5": {
476
+ "name": "punctuation.definition.comment.csound"
428
477
  }
429
478
  },
430
479
  "patterns": [
@@ -718,6 +767,13 @@
718
767
  },
719
768
  {
720
769
  "include": "#bracedStringContents"
770
+ },
771
+ {
772
+ "include": "#lineContinuations"
773
+ },
774
+ {
775
+ "name": "invalid.illegal.csound",
776
+ "match": "[^\"\\\\\\n]*\\n"
721
777
  }
722
778
  ]
723
779
  },
@@ -1409,7 +1409,7 @@
1409
1409
  "name": "invalid.illegal.colon.css"
1410
1410
  }
1411
1411
  },
1412
- "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|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-])",
1412
+ "match": "(?xi)\n(:)(:*)\n(?: active|any-link|checked|default|disabled|empty|enabled|first\n | (?:first|last|only)-(?:child|of-type)|focus|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*[;}])",
1413
1413
  "name": "entity.other.attribute-name.pseudo-class.css"
1414
1414
  },
1415
1415
  "pseudo-elements": {
@@ -1421,7 +1421,7 @@
1421
1421
  "name": "punctuation.definition.entity.css"
1422
1422
  }
1423
1423
  },
1424
- "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-])",
1424
+ "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*[;}])",
1425
1425
  "name": "entity.other.attribute-name.pseudo-element.css"
1426
1426
  },
1427
1427
  "rule-list": {
@@ -209,7 +209,7 @@
209
209
  "include": "#brace_round"
210
210
  },
211
211
  {
212
- "include": "#commas"
212
+ "include": "source.css#commas"
213
213
  },
214
214
  {
215
215
  "include": "#strings"
@@ -241,8 +241,7 @@
241
241
  "name": "meta.at-rule.media.css"
242
242
  },
243
243
  {
244
- "match": "\\b(width|scan|resolution|orientation|monochrome|min-width|min-resolution|min-monochrome|min-height|min-device-width|min-device-height|min-device-aspect-ratio|min-color-index|min-color|min-aspect-ratio|max-width|max-resolution|max-monochrome|max-height|max-device-width|max-device-height|max-device-aspect-ratio|max-color-index|max-color|max-aspect-ratio|height|grid|device-width|device-height|device-aspect-ratio|color-index|color|aspect-ratio)\\b",
245
- "name": "support.type.property-name.media-feature.media.css"
244
+ "include": "source.css#media-features"
246
245
  },
247
246
  {
248
247
  "match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b",
@@ -309,19 +308,22 @@
309
308
  "name": "meta.property-list.css",
310
309
  "patterns": [
311
310
  {
312
- "include": "#pseudo_elements"
311
+ "include": "source.css#pseudo-elements"
313
312
  },
314
313
  {
315
- "include": "#pseudo_classes"
314
+ "include": "source.css#pseudo-classes"
316
315
  },
317
316
  {
318
- "include": "#variable_interpolation"
317
+ "include": "source.css#tag-names"
318
+ },
319
+ {
320
+ "include": "source.css#commas"
319
321
  },
320
322
  {
321
- "include": "#property_names"
323
+ "include": "#variable_interpolation"
322
324
  },
323
325
  {
324
- "include": "#property_names_svg"
326
+ "include": "source.css#property-names"
325
327
  },
326
328
  {
327
329
  "include": "#property_values"
@@ -344,22 +346,17 @@
344
346
  "name": "keyword.control.logical.operator.less"
345
347
  },
346
348
  {
347
- "match": "(?x)\n(?<![\\w-])\n(a|abbr|address|area|article|aside|audio\n|b|base|bdi|bdo|blockquote|body|br|button\n|canvas|caption|cite|code|col|colgroup\n|data|datalist|dd|del|details|dfn|dialog|div|dl|dt\n|em|embed|fieldset|figure|figcaption|footer|form\n|h[1-6]|head|header|hgroup|hr|html|i|iframe|img|input|ins\n|kbd|keygen|label|legend|li|link|main|map|mark|math|menu|menuitem|meta|meter\n|nav|noscript|object|ol|optgroup|option|output\n|p|param|picture|pre|progress|q|rb|rp|rt|rtc|ruby\n|s|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|svg\n|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track\n|u|ul|var|video|wbr)\n(?![\\w-])",
348
- "name": "entity.name.tag.css"
349
- },
350
- {
351
- "match": "(?x)\n(?<![\\w-])\n(vkern|view|use|tspan|tref|textPath|text|symbol|switch|stop|set\n|rect|radialGradient|polyline|polygon|pattern|path\n|mpath|missing-glyph|metadata|mask|marker|linearGradient|line\n|image|hkern|glyphRef|glyph|g\n|foreignObject|font(-face(-uri|-src|-name|-format)?)?|filter\n|fe(Turbulence|Tile|SpotLight|SpecularLighting|PointLight|Offset\n |Morphology|MergeNode|Merge|Image|GaussianBlur|Func[RGBA]\n |Flood|DistantLight|DisplacementMap|DiffuseLighting\n |ConvolveMatrix|Composite|ComponentTransfer|ColorMatrix|Blend)\n|ellipse|desc|defs|cursor|color-profile|clipPath|circle\n|animate(Transform|Motion|Color)?|altGlyph(Item|Def)?)\n(?![\\w-])",
352
- "name": "entity.name.tag.svg.css"
349
+ "include": "source.css#tag-names"
353
350
  },
354
351
  {
355
352
  "match": "(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+",
356
353
  "name": "entity.name.tag.custom.css"
357
354
  },
358
355
  {
359
- "include": "#pseudo_elements"
356
+ "include": "source.css#pseudo-elements"
360
357
  },
361
358
  {
362
- "include": "#pseudo_classes"
359
+ "include": "source.css#pseudo-classes"
363
360
  },
364
361
  {
365
362
  "captures": {
@@ -370,7 +367,6 @@
370
367
  "name": "punctuation.section.property-list.end.css"
371
368
  }
372
369
  },
373
- "comment": "Match empty braces to give proper ↩ action",
374
370
  "match": "(\\{)(\\})",
375
371
  "name": "meta.brace.curly.css"
376
372
  },
@@ -410,22 +406,19 @@
410
406
  "name": "support.function.unit-checking.less"
411
407
  },
412
408
  {
413
- "include": "#font_names"
409
+ "include": "source.css#property-keywords"
414
410
  },
415
411
  {
416
- "include": "#commas"
412
+ "include": "source.css#color-keywords"
417
413
  },
418
414
  {
419
- "include": "#color_names"
415
+ "include": "source.css#commas"
420
416
  },
421
417
  {
422
418
  "include": "#less_builtin_functions"
423
419
  },
424
420
  {
425
- "include": "#css_builtin_functions"
426
- },
427
- {
428
- "include": "#gradient_builtin_functions"
421
+ "include": "source.css#functions"
429
422
  }
430
423
  ],
431
424
  "repository": {
@@ -485,30 +478,10 @@
485
478
  }
486
479
  ]
487
480
  },
488
- "commas": {
489
- "match": ",",
490
- "name": "punctuation.separator.list.comma.css"
491
- },
492
481
  "brace_round": {
493
482
  "match": "\\(|\\)",
494
483
  "name": "meta.brace.round.css"
495
484
  },
496
- "property_names": {
497
- "captures": {
498
- "1": {
499
- "name": "support.type.property-name.css"
500
- }
501
- },
502
- "match": "(?<![-a-z])(-webkit-[-A-Za-z]+|-moz-[-A-Za-z]+|-o-[-A-Za-z]+|-ms-[-A-Za-z]+|-khtml-[-A-Za-z]+|zoom|z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|user-select|up|unicode-bidi|unicode-range|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|mix-blend-mode|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|mask-image|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line-break|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|grid-rows|grid-columns|grid|gap|font-kerning|font-language-override|font-weight|font-variant-caps|font-variant|font-style|font-synthesis|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-blend-mode|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation-fill-mode|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust|will-change)(?=\\s*:?(.*\\()|(?!.*(?<!@){))\\b"
503
- },
504
- "property_names_svg": {
505
- "captures": {
506
- "1": {
507
- "name": "support.type.property-name.svg.css"
508
- }
509
- },
510
- "match": "(?<![-a-z])(writing-mode|text-anchor|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|shape-rendering|marker-start|marker-mid|marker-end|lighting-color|kerning|image-rendering|glyph-orientation-vertical|glyph-orientation-horizontal|flood-opacity|flood-color|fill-rule|fill-opacity|fill|enable-background|color-rendering|color-interpolation-filters|color-interpolation|clip-rule|clip-path)(?=\\s*:)"
511
- },
512
485
  "property_values": {
513
486
  "begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)",
514
487
  "beginCaptures": {
@@ -524,14 +497,6 @@
524
497
  },
525
498
  "contentName": "meta.property-value.css",
526
499
  "patterns": [
527
- {
528
- "match": "\\b(wrap-reverse|wrap|whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|unicase|underline|ultra-expanded|ultra-condensed|transparent|transform|top|titling-caps|thin|thick|text-top|text-bottom|text|tb-rl|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table|sw-resize|super|strict|stretch|step-start|step-end|static|square|space-between|space-around|space|solid|soft-light|small-caps|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|saturation|s-resize|running|rtl|row-reverse|row-resize|row|round|right|ridge|reverse|repeat-y|repeat-x|repeat|relative|progressive|progress|pre-wrap|pre-line|pre|pointer|petite-caps|paused|pan-x|pan-left|pan-right|pan-y|pan-up|pan-down|padding-box|overline|overlay|outside|outset|optimizeSpeed|optimizeLegibility|opacity|oblique|nw-resize|nowrap|not-allowed|normal|none|no-repeat|no-drop|newspaper|ne-resize|n-resize|multiply|move|middle|medium|max-height|manipulation|main-size|luminosity|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|local|list-item|linear(?!-)|line-through|line-edge|line|lighter|lighten|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline-block|inline|inherit|infinite|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|hue|horizontal|hidden|help|hard-light|hand|groove|geometricPrecision|forwards|flex-start|flex-end|flex|fixed|extra-expanded|extra-condensed|expanded|exclusion|ellipsis|ease-out|ease-in-out|ease-in|ease|e-resize|double|dotted|distribute-space|distribute-letter|distribute-all-lines|distribute|disc|disabled|difference|default|decimal|dashed|darken|currentColor|crosshair|cover|content-box|contain|condensed|column-reverse|column|color-dodge|color-burn|color|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|border-box|bolder|bold|block|bidi-override|below|baseline|balance|backwards|auto|antialiased|always|alternate-reverse|alternate|all-small-caps|all-scroll|all-petite-caps|all|absolute)\\b",
529
- "name": "support.constant.property-value.css"
530
- },
531
- {
532
- "match": "\\b(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)\\b",
533
- "name": "support.constant.property-value.svg.css"
534
- },
535
500
  {
536
501
  "begin": "url(\\()",
537
502
  "beginCaptures": {
@@ -557,62 +522,28 @@
557
522
  ]
558
523
  },
559
524
  {
560
- "include": "#font_names"
525
+ "include": "source.css#property-keywords"
561
526
  },
562
527
  {
563
- "include": "#color_names"
528
+ "include": "source.css#color-keywords"
564
529
  },
565
530
  {
566
- "include": "#less_builtin_functions"
531
+ "include": "source.css#commas"
567
532
  },
568
533
  {
569
- "include": "#css_builtin_functions"
534
+ "include": "#less_builtin_functions"
570
535
  },
571
536
  {
572
- "include": "#gradient_builtin_functions"
537
+ "include": "source.css#functions"
573
538
  },
574
539
  {
575
540
  "include": "$self"
576
541
  }
577
542
  ]
578
543
  },
579
- "pseudo_elements": {
580
- "captures": {
581
- "1": {
582
- "name": "punctuation.definition.entity.css"
583
- }
584
- },
585
- "match": "(:|::)(after|before|first-letter|first-line|selection|shadow)",
586
- "name": "entity.other.attribute-name.pseudo-element.css"
587
- },
588
- "pseudo_classes": {
589
- "captures": {
590
- "1": {
591
- "name": "punctuation.definition.entity.css"
592
- }
593
- },
594
- "match": "(:)(active|checked|default|dir|disabled|empty|enabled|extend|first-child|first-of-type|first|fullscreen|focus|hover|indeterminate|in-range|invalid|lang|last-child|last-of-type|left|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|optional|out-of-range|read-only|read-write|required|right|root|scope|shadow|target|valid|visited)(?!\\s*;)",
595
- "name": "entity.other.attribute-name.pseudo-class.css"
596
- },
597
- "font_names": {
598
- "match": "(\\b(?i:arial|century|comic|courier|cursive|fantasy|futura|garamond|georgia|helvetica|impact|lucida|monospace|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif)\\b)",
599
- "name": "support.constant.font-name.css"
600
- },
601
- "color_names": {
602
- "match": "\\b(yellowgreen|yellow|whitesmoke|white|wheat|violet|turquoise|tomato|thistle|teal|tan|steelblue|springgreen|snow|slategrey|slategray|slateblue|skyblue|silver|sienna|seashell|seagreen|sandybrown|salmon|saddlebrown|royalblue|rosybrown|red|rebeccapurple|purple|powderblue|plum|pink|peru|peachpuff|papayawhip|palevioletred|paleturquoise|palegreen|palegoldenrod|orchid|orangered|orange|olivedrab|olive|oldlace|navy|navajowhite|moccasin|mistyrose|mintcream|midnightblue|mediumvioletred|mediumturquoise|mediumspringgreen|mediumslateblue|mediumseagreen|mediumpurple|mediumorchid|mediumblue|mediumaquamarine|maroon|linen|limegreen|lime|lightyellow|lightsteelblue|lightslategrey|lightslategray|lightskyblue|lightseagreen|lightsalmon|lightpink|lightgrey|lightgreen|lightgray|lightgoldenrodyellow|lightcyan|lightcoral|lightblue|lemonchiffon|lawngreen|lavenderblush|lavender|khaki|ivory|indigo|indianred|hotpink|honeydew|grey|greenyellow|green|gray|goldenrod|gold|ghostwhite|gainsboro|fuchsia|forestgreen|floralwhite|firebrick|dodgerblue|dimgrey|dimgray|deepskyblue|deeppink|darkviolet|darkturquoise|darkslategrey|darkslategray|darkslateblue|darkseagreen|darksalmon|darkred|darkorchid|darkorange|darkolivegreen|darkmagenta|darkkhaki|darkgrey|darkgreen|darkgray|darkgoldenrod|darkcyan|darkblue|crimson|cornsilk|cornflowerblue|coral|chocolate|chartreuse|cadetblue|burlywood|brown|blueviolet|blue|blanchedalmond|black|bisque|beige|azure|aquamarine|aqua|antiquewhite|aliceblue)\\b",
603
- "name": "support.constant.color.w3c-standard-color-name.css"
604
- },
605
544
  "less_builtin_functions": {
606
545
  "match": "\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b",
607
546
  "name": "support.function.any-method.builtin.less"
608
- },
609
- "css_builtin_functions": {
610
- "match": "\\b(url|translate3d|translate[XYZ]|translate|skew[XY]|skew|scale[XYZ]|scale|rotate3d|rotate[XYZ]|rotate|rgba|rgb|repeating-radial-gradient|repeating-linear-gradient|rect|radial-gradient|matrix3d|matrix|linear-gradient|hsla|hsl|drop-shadow|cubic-bezier|blur)\\b",
611
- "name": "support.function.any-method.builtin.css"
612
- },
613
- "gradient_builtin_functions": {
614
- "match": "\\b(color-stop|from|to)\\b",
615
- "name": "support.function.any-method.gradient.css"
616
547
  }
617
548
  }
618
549
  }