| 1 | { |
| 2 | "name": "Less", |
| 3 | "scopeName": "source.css.less", |
| 4 | "fileTypes": ["less", "less.erb", "rc", "gtkrc", "gtkrc-2.0", "themerc"], |
| 5 | "patterns": [ |
| 6 | { |
| 7 | "include": "#strings" |
| 8 | }, |
| 9 | { |
| 10 | "captures": { |
| 11 | "1": { |
| 12 | "name": "entity.other.attribute-name.class.mixin.css" |
| 13 | } |
| 14 | }, |
| 15 | "match": "(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())" |
| 16 | }, |
| 17 | { |
| 18 | "captures": { |
| 19 | "1": { |
| 20 | "name": "entity.other.attribute-name.class.css" |
| 21 | }, |
| 22 | "2": { |
| 23 | "name": "punctuation.definition.entity.css" |
| 24 | }, |
| 25 | "4": { |
| 26 | "name": "variable.other.interpolation.less" |
| 27 | } |
| 28 | }, |
| 29 | "match": "((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)" |
| 30 | }, |
| 31 | { |
| 32 | "captures": { |
| 33 | "0": { |
| 34 | "name": "entity.other.attribute-name.parent-selector.css" |
| 35 | }, |
| 36 | "1": { |
| 37 | "name": "punctuation.definition.entity.css" |
| 38 | } |
| 39 | }, |
| 40 | "match": "(&)[a-zA-Z0-9_-]*" |
| 41 | }, |
| 42 | { |
| 43 | "begin": "(format|local|url|attr|counter|counters)\\s*(\\()", |
| 44 | "beginCaptures": { |
| 45 | "1": { |
| 46 | "name": "support.function.misc.css" |
| 47 | }, |
| 48 | "2": { |
| 49 | "name": "punctuation.section.function.css" |
| 50 | } |
| 51 | }, |
| 52 | "end": "\\)", |
| 53 | "endCaptures": { |
| 54 | "0": { |
| 55 | "name": "punctuation.section.function.css" |
| 56 | } |
| 57 | }, |
| 58 | "patterns": [ |
| 59 | { |
| 60 | "begin": "'", |
| 61 | "beginCaptures": { |
| 62 | "0": { |
| 63 | "name": "punctuation.definition.string.begin.css" |
| 64 | } |
| 65 | }, |
| 66 | "end": "'", |
| 67 | "endCaptures": { |
| 68 | "0": { |
| 69 | "name": "punctuation.definition.string.end.css" |
| 70 | } |
| 71 | }, |
| 72 | "name": "string.quoted.single.css", |
| 73 | "patterns": [ |
| 74 | { |
| 75 | "match": "\\\\.", |
| 76 | "name": "constant.character.escape.css" |
| 77 | } |
| 78 | ] |
| 79 | }, |
| 80 | { |
| 81 | "begin": "\"", |
| 82 | "beginCaptures": { |
| 83 | "0": { |
| 84 | "name": "punctuation.definition.string.begin.css" |
| 85 | } |
| 86 | }, |
| 87 | "end": "\"", |
| 88 | "endCaptures": { |
| 89 | "0": { |
| 90 | "name": "punctuation.definition.string.end.css" |
| 91 | } |
| 92 | }, |
| 93 | "name": "string.quoted.double.css", |
| 94 | "patterns": [ |
| 95 | { |
| 96 | "match": "\\\\(\\d{1,6}|.)", |
| 97 | "name": "constant.character.escape.css" |
| 98 | } |
| 99 | ] |
| 100 | }, |
| 101 | { |
| 102 | "match": "[^'\") \\t]+", |
| 103 | "name": "variable.parameter.misc.css" |
| 104 | } |
| 105 | ] |
| 106 | }, |
| 107 | { |
| 108 | "match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)", |
| 109 | "name": "constant.other.rgb-value.css" |
| 110 | }, |
| 111 | { |
| 112 | "captures": { |
| 113 | "1": { |
| 114 | "name": "entity.other.attribute-name.id" |
| 115 | }, |
| 116 | "2": { |
| 117 | "name": "punctuation.definition.entity.css" |
| 118 | }, |
| 119 | "4": { |
| 120 | "name": "variable.other.interpolation.less" |
| 121 | } |
| 122 | }, |
| 123 | "match": "((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)", |
| 124 | "name": "meta.selector.css" |
| 125 | }, |
| 126 | { |
| 127 | "begin": "/\\*", |
| 128 | "beginCaptures": { |
| 129 | "0": { |
| 130 | "name": "punctuation.definition.comment.begin.css" |
| 131 | } |
| 132 | }, |
| 133 | "end": "\\*/", |
| 134 | "endCaptures": { |
| 135 | "0": { |
| 136 | "name": "punctuation.definition.comment.end.css" |
| 137 | } |
| 138 | }, |
| 139 | "name": "comment.block.css" |
| 140 | }, |
| 141 | { |
| 142 | "match": "[+-]?\\d*\\.?\\d+", |
| 143 | "name": "constant.numeric.css" |
| 144 | }, |
| 145 | { |
| 146 | "match": "(?<=[\\d])(ch|cm|deg|dpi|dpcm|dppx|em|ex|grad|in|mm|ms|pc|pt|px|rad|rem|turn|s|vh|vmin|vw)\\b|%", |
| 147 | "name": "keyword.other.unit.css" |
| 148 | }, |
| 149 | { |
| 150 | "captures": { |
| 151 | "1": { |
| 152 | "name": "punctuation.definition.begin.entity.css" |
| 153 | }, |
| 154 | "2": { |
| 155 | "name": "entity.other.attribute-name.attribute.css" |
| 156 | }, |
| 157 | "3": { |
| 158 | "name": "punctuation.separator.operator.css" |
| 159 | }, |
| 160 | "4": { |
| 161 | "name": "string.unquoted.attribute-value.css" |
| 162 | }, |
| 163 | "5": { |
| 164 | "name": "string.quoted.double.attribute-value.css" |
| 165 | }, |
| 166 | "6": { |
| 167 | "name": "punctuation.definition.string.begin.css" |
| 168 | }, |
| 169 | "7": { |
| 170 | "name": "punctuation.definition.string.end.css" |
| 171 | }, |
| 172 | "8": { |
| 173 | "name": "punctuation.definition.end.entity.css" |
| 174 | } |
| 175 | }, |
| 176 | "match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])", |
| 177 | "name": "meta.attribute-selector.css" |
| 178 | }, |
| 179 | { |
| 180 | "begin": "((@)import\\b)", |
| 181 | "beginCaptures": { |
| 182 | "1": { |
| 183 | "name": "keyword.control.at-rule.import.less" |
| 184 | }, |
| 185 | "2": { |
| 186 | "name": "punctuation.definition.keyword.less" |
| 187 | } |
| 188 | }, |
| 189 | "end": ";", |
| 190 | "endCaptures": { |
| 191 | "0": { |
| 192 | "name": "punctuation.terminator.rule.css" |
| 193 | } |
| 194 | }, |
| 195 | "name": "meta.at-rule.import.css", |
| 196 | "patterns": [ |
| 197 | { |
| 198 | "match": "(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)", |
| 199 | "name": "keyword.control.import.option.less" |
| 200 | }, |
| 201 | { |
| 202 | "include": "#brace_round" |
| 203 | }, |
| 204 | { |
| 205 | "include": "#commas" |
| 206 | }, |
| 207 | { |
| 208 | "include": "#strings" |
| 209 | } |
| 210 | ] |
| 211 | }, |
| 212 | { |
| 213 | "captures": { |
| 214 | "1": { |
| 215 | "name": "keyword.control.at-rule.fontface.css" |
| 216 | }, |
| 217 | "2": { |
| 218 | "name": "punctuation.definition.keyword.css" |
| 219 | } |
| 220 | }, |
| 221 | "match": "^\\s*((@)font-face\\b)", |
| 222 | "name": "meta.at-rule.fontface.css" |
| 223 | }, |
| 224 | { |
| 225 | "captures": { |
| 226 | "1": { |
| 227 | "name": "keyword.control.at-rule.media.css" |
| 228 | }, |
| 229 | "2": { |
| 230 | "name": "punctuation.definition.keyword.css" |
| 231 | } |
| 232 | }, |
| 233 | "match": "^\\s*((@)media\\b)", |
| 234 | "name": "meta.at-rule.media.css" |
| 235 | }, |
| 236 | { |
| 237 | "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", |
| 238 | "name": "support.type.property-name.media-feature.media.css" |
| 239 | }, |
| 240 | { |
| 241 | "match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b", |
| 242 | "name": "support.constant.media-type.media.css" |
| 243 | }, |
| 244 | { |
| 245 | "match": "\\b(portrait|landscape)\\b", |
| 246 | "name": "support.constant.property-value.media-property.media.css" |
| 247 | }, |
| 248 | { |
| 249 | "captures": { |
| 250 | "1": { |
| 251 | "name": "support.function.less" |
| 252 | } |
| 253 | }, |
| 254 | "match": "(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()" |
| 255 | }, |
| 256 | { |
| 257 | "begin": "(^[ \\t]+)?(?=//)", |
| 258 | "beginCaptures": { |
| 259 | "1": { |
| 260 | "name": "punctuation.whitespace.comment.leading.less" |
| 261 | } |
| 262 | }, |
| 263 | "end": "(?!\\G)", |
| 264 | "patterns": [ |
| 265 | { |
| 266 | "begin": "//", |
| 267 | "beginCaptures": { |
| 268 | "0": { |
| 269 | "name": "punctuation.definition.comment.less" |
| 270 | } |
| 271 | }, |
| 272 | "end": "\\n", |
| 273 | "name": "comment.line.double-slash.less" |
| 274 | } |
| 275 | ] |
| 276 | }, |
| 277 | { |
| 278 | "captures": { |
| 279 | "1": { |
| 280 | "name": "punctuation.definition.variable.less" |
| 281 | } |
| 282 | }, |
| 283 | "match": "(?:@|\\-\\-)[a-zA-Z0-9_-][\\w-]*(?=\\s*)", |
| 284 | "name": "variable.other.less" |
| 285 | }, |
| 286 | { |
| 287 | "include": "#variable_interpolation" |
| 288 | }, |
| 289 | { |
| 290 | "begin": "{", |
| 291 | "beginCaptures": { |
| 292 | "0": { |
| 293 | "name": "punctuation.section.property-list.begin.css" |
| 294 | } |
| 295 | }, |
| 296 | "end": "}", |
| 297 | "endCaptures": { |
| 298 | "0": { |
| 299 | "name": "punctuation.section.property-list.end.css" |
| 300 | } |
| 301 | }, |
| 302 | "name": "meta.property-list.css", |
| 303 | "patterns": [ |
| 304 | { |
| 305 | "include": "#pseudo_elements" |
| 306 | }, |
| 307 | { |
| 308 | "include": "#pseudo_classes" |
| 309 | }, |
| 310 | { |
| 311 | "include": "#variable_interpolation" |
| 312 | }, |
| 313 | { |
| 314 | "include": "#property_names" |
| 315 | }, |
| 316 | { |
| 317 | "include": "#property_names_svg" |
| 318 | }, |
| 319 | { |
| 320 | "include": "#property_values" |
| 321 | }, |
| 322 | { |
| 323 | "include": "$self" |
| 324 | } |
| 325 | ] |
| 326 | }, |
| 327 | { |
| 328 | "match": "\\!\\s*important", |
| 329 | "name": "keyword.other.important.css" |
| 330 | }, |
| 331 | { |
| 332 | "match": "\\*|\\/|\\-|\\+|~|=|<=|>=|<|>", |
| 333 | "name": "keyword.operator.less" |
| 334 | }, |
| 335 | { |
| 336 | "match": "\\b(not|and|when)\\b", |
| 337 | "name": "keyword.control.logical.operator.less" |
| 338 | }, |
| 339 | { |
| 340 | "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-])", |
| 341 | "name": "entity.name.tag.css" |
| 342 | }, |
| 343 | { |
| 344 | "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-])", |
| 345 | "name": "entity.name.tag.svg.css" |
| 346 | }, |
| 347 | { |
| 348 | "match": "(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+", |
| 349 | "name": "entity.name.tag.custom.css" |
| 350 | }, |
| 351 | { |
| 352 | "include": "#pseudo_elements" |
| 353 | }, |
| 354 | { |
| 355 | "include": "#pseudo_classes" |
| 356 | }, |
| 357 | { |
| 358 | "captures": { |
| 359 | "1": { |
| 360 | "name": "punctuation.section.property-list.begin.css" |
| 361 | }, |
| 362 | "2": { |
| 363 | "name": "punctuation.section.property-list.end.css" |
| 364 | } |
| 365 | }, |
| 366 | "comment": "Match empty braces to give proper ↩ action", |
| 367 | "match": "(\\{)(\\})", |
| 368 | "name": "meta.brace.curly.css" |
| 369 | }, |
| 370 | { |
| 371 | "match": "\\{|\\}", |
| 372 | "name": "meta.brace.curly.css" |
| 373 | }, |
| 374 | { |
| 375 | "include": "#brace_round" |
| 376 | }, |
| 377 | { |
| 378 | "match": "\\[|\\]", |
| 379 | "name": "meta.brace.square.less" |
| 380 | }, |
| 381 | { |
| 382 | "match": ";", |
| 383 | "name": "punctuation.terminator.rule.css" |
| 384 | }, |
| 385 | { |
| 386 | "match": ":", |
| 387 | "name": "punctuation.separator.key-value.css" |
| 388 | }, |
| 389 | { |
| 390 | "match": "\\btrue\\b", |
| 391 | "name": "constant.language.boolean.less" |
| 392 | }, |
| 393 | { |
| 394 | "match": "\\bdefault\\b", |
| 395 | "name": "support.function.default.less" |
| 396 | }, |
| 397 | { |
| 398 | "match": "\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b", |
| 399 | "name": "support.function.type-checking.less" |
| 400 | }, |
| 401 | { |
| 402 | "match": "\\b(isunit|ispixel|ispercentage|isem)\\b", |
| 403 | "name": "support.function.unit-checking.less" |
| 404 | }, |
| 405 | { |
| 406 | "include": "#font_names" |
| 407 | }, |
| 408 | { |
| 409 | "include": "#commas" |
| 410 | }, |
| 411 | { |
| 412 | "include": "#color_names" |
| 413 | }, |
| 414 | { |
| 415 | "include": "#less_builtin_functions" |
| 416 | }, |
| 417 | { |
| 418 | "include": "#css_builtin_functions" |
| 419 | }, |
| 420 | { |
| 421 | "include": "#gradient_builtin_functions" |
| 422 | } |
| 423 | ], |
| 424 | "repository": { |
| 425 | "variable_interpolation": { |
| 426 | "match": "@{[a-zA-Z0-9_-]+}", |
| 427 | "name": "variable.other.interpolation.less" |
| 428 | }, |
| 429 | "strings": { |
| 430 | "patterns": [ |
| 431 | { |
| 432 | "begin": "\"", |
| 433 | "beginCaptures": { |
| 434 | "0": { |
| 435 | "name": "punctuation.definition.string.begin.css" |
| 436 | } |
| 437 | }, |
| 438 | "end": "\"", |
| 439 | "endCaptures": { |
| 440 | "0": { |
| 441 | "name": "punctuation.definition.string.end.css" |
| 442 | } |
| 443 | }, |
| 444 | "name": "string.quoted.double.css", |
| 445 | "patterns": [ |
| 446 | { |
| 447 | "match": "\\\\(\\h{1,6}|.)", |
| 448 | "name": "constant.character.escape.css" |
| 449 | }, |
| 450 | { |
| 451 | "include": "#variable_interpolation" |
| 452 | } |
| 453 | ] |
| 454 | }, |
| 455 | { |
| 456 | "begin": "'", |
| 457 | "beginCaptures": { |
| 458 | "0": { |
| 459 | "name": "punctuation.definition.string.begin.css" |
| 460 | } |
| 461 | }, |
| 462 | "end": "'", |
| 463 | "endCaptures": { |
| 464 | "0": { |
| 465 | "name": "punctuation.definition.string.end.css" |
| 466 | } |
| 467 | }, |
| 468 | "name": "string.quoted.single.css", |
| 469 | "patterns": [ |
| 470 | { |
| 471 | "match": "\\\\(\\h{1,6}|.)", |
| 472 | "name": "constant.character.escape.css" |
| 473 | }, |
| 474 | { |
| 475 | "include": "#variable_interpolation" |
| 476 | } |
| 477 | ] |
| 478 | } |
| 479 | ] |
| 480 | }, |
| 481 | "commas": { |
| 482 | "match": ",", |
| 483 | "name": "punctuation.separator.list.css" |
| 484 | }, |
| 485 | "brace_round": { |
| 486 | "match": "\\(|\\)", |
| 487 | "name": "meta.brace.round.css" |
| 488 | }, |
| 489 | "property_names": { |
| 490 | "captures": { |
| 491 | "1": { |
| 492 | "name": "support.type.property-name.css" |
| 493 | } |
| 494 | }, |
| 495 | "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" |
| 496 | }, |
| 497 | "property_names_svg": { |
| 498 | "captures": { |
| 499 | "1": { |
| 500 | "name": "support.type.property-name.svg.css" |
| 501 | } |
| 502 | }, |
| 503 | "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*:)" |
| 504 | }, |
| 505 | "property_values": { |
| 506 | "begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)", |
| 507 | "beginCaptures": { |
| 508 | "1": { |
| 509 | "name": "punctuation.separator.key-value.css" |
| 510 | } |
| 511 | }, |
| 512 | "end": "\\s*(;)|\\s*(?=})", |
| 513 | "endCaptures": { |
| 514 | "1": { |
| 515 | "name": "punctuation.terminator.rule.css" |
| 516 | } |
| 517 | }, |
| 518 | "contentName": "meta.property-value.css", |
| 519 | "patterns": [ |
| 520 | { |
| 521 | "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", |
| 522 | "name": "support.constant.property-value.css" |
| 523 | }, |
| 524 | { |
| 525 | "match": "\\b(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)\\b", |
| 526 | "name": "support.constant.property-value.svg.css" |
| 527 | }, |
| 528 | { |
| 529 | "begin": "url(\\()", |
| 530 | "beginCaptures": { |
| 531 | "1": { |
| 532 | "name": "meta.brace.round.css" |
| 533 | } |
| 534 | }, |
| 535 | "end": "\\)", |
| 536 | "endCaptures": { |
| 537 | "0": { |
| 538 | "name": "meta.brace.round.css" |
| 539 | } |
| 540 | }, |
| 541 | "name": "support.function.any-method.builtin.url.css", |
| 542 | "patterns": [ |
| 543 | { |
| 544 | "include": "#strings" |
| 545 | }, |
| 546 | { |
| 547 | "match": "(\\b|\\.{0,2}/).*\\b", |
| 548 | "name": "string.url.css" |
| 549 | } |
| 550 | ] |
| 551 | }, |
| 552 | { |
| 553 | "include": "#font_names" |
| 554 | }, |
| 555 | { |
| 556 | "include": "#color_names" |
| 557 | }, |
| 558 | { |
| 559 | "include": "#less_builtin_functions" |
| 560 | }, |
| 561 | { |
| 562 | "include": "#css_builtin_functions" |
| 563 | }, |
| 564 | { |
| 565 | "include": "#gradient_builtin_functions" |
| 566 | }, |
| 567 | { |
| 568 | "include": "$self" |
| 569 | } |
| 570 | ] |
| 571 | }, |
| 572 | "pseudo_elements": { |
| 573 | "captures": { |
| 574 | "1": { |
| 575 | "name": "punctuation.definition.entity.css" |
| 576 | } |
| 577 | }, |
| 578 | "match": "(:|::)(after|before|first-letter|first-line|selection|shadow)", |
| 579 | "name": "entity.other.attribute-name.pseudo-element.css" |
| 580 | }, |
| 581 | "pseudo_classes": { |
| 582 | "captures": { |
| 583 | "1": { |
| 584 | "name": "punctuation.definition.entity.css" |
| 585 | } |
| 586 | }, |
| 587 | "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*;)", |
| 588 | "name": "entity.other.attribute-name.pseudo-class.css" |
| 589 | }, |
| 590 | "font_names": { |
| 591 | "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)", |
| 592 | "name": "support.constant.font-name.css" |
| 593 | }, |
| 594 | "color_names": { |
| 595 | "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", |
| 596 | "name": "support.constant.color.w3c-standard-color-name.css" |
| 597 | }, |
| 598 | "less_builtin_functions": { |
| 599 | "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", |
| 600 | "name": "support.function.any-method.builtin.less" |
| 601 | }, |
| 602 | "css_builtin_functions": { |
| 603 | "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", |
| 604 | "name": "support.function.any-method.builtin.css" |
| 605 | }, |
| 606 | "gradient_builtin_functions": { |
| 607 | "match": "\\b(color-stop|from|to)\\b", |
| 608 | "name": "support.function.any-method.gradient.css" |
| 609 | } |
| 610 | }, |
| 611 | "version": "https://github.com/atom/language-less/commit/c5876823ed8ae556c82f76c05de815a72a9df6a4" |
| 612 | } |