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