| 1 |
{ |
| 2 |
"information_for_contributors": [ |
| 3 |
"This file has been converted from https://github.com/radium-v/Better-Less/blob/master/Syntaxes/Better%20Less.tmLanguage", |
| 4 |
"If you want to provide a fix or improvement, please create a pull request against the original repository.", |
| 5 |
"Once accepted there, we are happy to receive an update request." |
| 6 |
], |
| 7 |
"version": "https://github.com/radium-v/Better-Less/commit/05de79f600227201e35f07a49f07acce80e49dbf", |
| 8 |
"name": "less", |
| 9 |
"scopeName": "source.css.less", |
| 10 |
"patterns": [ |
| 11 |
{ |
| 12 |
"include": "#comment-block" |
| 13 |
}, |
| 14 |
{ |
| 15 |
"include": "#less-namespace-accessors" |
| 16 |
}, |
| 17 |
{ |
| 18 |
"include": "#less-extend" |
| 19 |
}, |
| 20 |
{ |
| 21 |
"include": "#at-rules" |
| 22 |
}, |
| 23 |
{ |
| 24 |
"include": "#less-variable-assignment" |
| 25 |
}, |
| 26 |
{ |
| 27 |
"include": "#property-list" |
| 28 |
}, |
| 29 |
{ |
| 30 |
"include": "#selector" |
| 31 |
} |
| 32 |
], |
| 33 |
"repository": { |
| 34 |
"angle-type": { |
| 35 |
"captures": { |
| 36 |
"1": { |
| 37 |
"name": "keyword.other.unit.less" |
| 38 |
} |
| 39 |
}, |
| 40 |
"match": "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(deg|grad|rad|turn))\\b", |
| 41 |
"name": "constant.numeric.less" |
| 42 |
}, |
| 43 |
"at-charset": { |
| 44 |
"begin": "\\s*((@)charset\\b)\\s*", |
| 45 |
"captures": { |
| 46 |
"1": { |
| 47 |
"name": "keyword.control.at-rule.charset.less" |
| 48 |
}, |
| 49 |
"2": { |
| 50 |
"name": "punctuation.definition.keyword.less" |
| 51 |
} |
| 52 |
}, |
| 53 |
"end": "\\s*((?=;|$))", |
| 54 |
"name": "meta.at-rule.charset.less", |
| 55 |
"patterns": [ |
| 56 |
{ |
| 57 |
"include": "#literal-string" |
| 58 |
} |
| 59 |
] |
| 60 |
}, |
| 61 |
"at-counter-style": { |
| 62 |
"begin": "\\s*((@)counter-style\\b)\\s+(?:(?i:\\b(decimal|none)\\b)|(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*))\\s*(?=\\{|$)", |
| 63 |
"captures": { |
| 64 |
"1": { |
| 65 |
"name": "keyword.control.at-rule.counter-style.less" |
| 66 |
}, |
| 67 |
"2": { |
| 68 |
"name": "punctuation.definition.keyword.less" |
| 69 |
}, |
| 70 |
"3": { |
| 71 |
"name": "invalid.illegal.counter-style-name.less" |
| 72 |
}, |
| 73 |
"4": { |
| 74 |
"name": "entity.other.counter-style-name.css" |
| 75 |
} |
| 76 |
}, |
| 77 |
"end": "\\s*(\\})", |
| 78 |
"endCaptures": { |
| 79 |
"1": { |
| 80 |
"name": "punctuation.definition.block.begin.less" |
| 81 |
} |
| 82 |
}, |
| 83 |
"name": "meta.at-rule.counter-style.less", |
| 84 |
"patterns": [ |
| 85 |
{ |
| 86 |
"include": "#comment-block" |
| 87 |
}, |
| 88 |
{ |
| 89 |
"include": "#rule-list" |
| 90 |
} |
| 91 |
] |
| 92 |
}, |
| 93 |
"at-custom-media": { |
| 94 |
"begin": "(?=\\s*@custom-media\\b)", |
| 95 |
"end": "\\s*(?=;)", |
| 96 |
"name": "meta.at-rule.custom-media.less", |
| 97 |
"patterns": [ |
| 98 |
{ |
| 99 |
"captures": { |
| 100 |
"0": { |
| 101 |
"name": "punctuation.section.property-list.less" |
| 102 |
} |
| 103 |
}, |
| 104 |
"match": "\\s*;" |
| 105 |
}, |
| 106 |
{ |
| 107 |
"captures": { |
| 108 |
"1": { |
| 109 |
"name": "keyword.control.at-rule.custom-media.less" |
| 110 |
}, |
| 111 |
"2": { |
| 112 |
"name": "punctuation.definition.keyword.less" |
| 113 |
}, |
| 114 |
"3": { |
| 115 |
"name": "support.constant.custom-media.less" |
| 116 |
} |
| 117 |
}, |
| 118 |
"match": "\\s*((@)custom-media)(?=.*?)" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"include": "#media-query-list" |
| 122 |
} |
| 123 |
] |
| 124 |
}, |
| 125 |
"at-font-face": { |
| 126 |
"begin": "\\s*((@)font-face)\\s*(?=\\{|$)", |
| 127 |
"captures": { |
| 128 |
"1": { |
| 129 |
"name": "keyword.control.at-rule.font-face.less" |
| 130 |
}, |
| 131 |
"2": { |
| 132 |
"name": "punctuation.definition.keyword.less" |
| 133 |
} |
| 134 |
}, |
| 135 |
"end": "\\s*(\\})", |
| 136 |
"endCaptures": { |
| 137 |
"1": { |
| 138 |
"name": "punctuation.definition.block.end.less" |
| 139 |
} |
| 140 |
}, |
| 141 |
"name": "meta.at-rule.font-face.less", |
| 142 |
"patterns": [ |
| 143 |
{ |
| 144 |
"include": "#comment-block" |
| 145 |
}, |
| 146 |
{ |
| 147 |
"include": "#rule-list" |
| 148 |
} |
| 149 |
] |
| 150 |
}, |
| 151 |
"at-import": { |
| 152 |
"begin": "\\s*((@)import\\b)\\s*", |
| 153 |
"beginCaptures": { |
| 154 |
"1": { |
| 155 |
"name": "keyword.control.at-rule.import.less" |
| 156 |
}, |
| 157 |
"2": { |
| 158 |
"name": "punctuation.definition.keyword.less" |
| 159 |
} |
| 160 |
}, |
| 161 |
"end": "\\;", |
| 162 |
"endCaptures": { |
| 163 |
"0": { |
| 164 |
"name": "punctuation.terminator.rule.less" |
| 165 |
} |
| 166 |
}, |
| 167 |
"name": "meta.at-rule.import.less", |
| 168 |
"patterns": [ |
| 169 |
{ |
| 170 |
"include": "#url-function" |
| 171 |
}, |
| 172 |
{ |
| 173 |
"include": "#less-variables" |
| 174 |
}, |
| 175 |
{ |
| 176 |
"begin": "(?<=([\"'])|([\"']\\)))\\s*", |
| 177 |
"end": "\\s*(?=\\;)", |
| 178 |
"patterns": [ |
| 179 |
{ |
| 180 |
"include": "#media-query" |
| 181 |
} |
| 182 |
] |
| 183 |
}, |
| 184 |
{ |
| 185 |
"begin": "\\(", |
| 186 |
"beginCaptures": { |
| 187 |
"0": { |
| 188 |
"name": "punctuation.definition.group.begin.less" |
| 189 |
} |
| 190 |
}, |
| 191 |
"end": "\\)", |
| 192 |
"endCaptures": { |
| 193 |
"0": { |
| 194 |
"name": "punctuation.definition.group.end.less" |
| 195 |
} |
| 196 |
}, |
| 197 |
"name": "meta.group.less", |
| 198 |
"patterns": [ |
| 199 |
{ |
| 200 |
"match": "reference|inline|less|css|once|multiple|optional", |
| 201 |
"name": "constant.language.import-directive.less" |
| 202 |
}, |
| 203 |
{ |
| 204 |
"include": "#comma-delimiter" |
| 205 |
} |
| 206 |
] |
| 207 |
}, |
| 208 |
{ |
| 209 |
"include": "#literal-string" |
| 210 |
} |
| 211 |
] |
| 212 |
}, |
| 213 |
"at-keyframes": { |
| 214 |
"begin": "\\s*((@)(-webkit-|-moz-|-o-)?keyframes)(?=.*?\\{)", |
| 215 |
"beginCaptures": { |
| 216 |
"1": { |
| 217 |
"name": "keyword.control.at-rule.keyframe.less" |
| 218 |
}, |
| 219 |
"2": { |
| 220 |
"name": "punctuation.definition.keyword.less" |
| 221 |
}, |
| 222 |
"3": { |
| 223 |
"name": "support.type.property-vendor.less" |
| 224 |
}, |
| 225 |
"4": { |
| 226 |
"name": "support.constant.keyframe.less" |
| 227 |
} |
| 228 |
}, |
| 229 |
"end": "\\s*(\\})", |
| 230 |
"endCaptures": { |
| 231 |
"1": { |
| 232 |
"name": "punctuation.definition.block.end.less" |
| 233 |
} |
| 234 |
}, |
| 235 |
"patterns": [ |
| 236 |
{ |
| 237 |
"begin": "\\s*(\\{)", |
| 238 |
"beginCaptures": { |
| 239 |
"1": { |
| 240 |
"name": "punctuation.definition.block.begin.less" |
| 241 |
} |
| 242 |
}, |
| 243 |
"end": "(?=\\})", |
| 244 |
"patterns": [ |
| 245 |
{ |
| 246 |
"captures": { |
| 247 |
"1": { |
| 248 |
"name": "keyword.other.keyframe-selector.less" |
| 249 |
}, |
| 250 |
"2": { |
| 251 |
"name": "constant.numeric.less" |
| 252 |
}, |
| 253 |
"3": { |
| 254 |
"name": "keyword.other.unit.less" |
| 255 |
} |
| 256 |
}, |
| 257 |
"match": "\\s*(?:(from|to)|((?:\\.[0-9]+|[0-9]+(?:\\.[0-9]*)?)(%)))\\s*,?\\s*" |
| 258 |
}, |
| 259 |
{ |
| 260 |
"include": "$self" |
| 261 |
} |
| 262 |
] |
| 263 |
}, |
| 264 |
{ |
| 265 |
"begin": "\\s*(?=[^{;])", |
| 266 |
"end": "\\s*(?=\\{)", |
| 267 |
"name": "meta.at-rule.keyframe.less", |
| 268 |
"patterns": [ |
| 269 |
{ |
| 270 |
"include": "#keyframe-name" |
| 271 |
} |
| 272 |
] |
| 273 |
} |
| 274 |
] |
| 275 |
}, |
| 276 |
"at-media": { |
| 277 |
"begin": "(?=\\s*@media\\b)", |
| 278 |
"end": "\\s*(\\})", |
| 279 |
"endCaptures": { |
| 280 |
"1": { |
| 281 |
"name": "punctuation.definition.block.end.less" |
| 282 |
} |
| 283 |
}, |
| 284 |
"patterns": [ |
| 285 |
{ |
| 286 |
"begin": "\\s*((@)media)", |
| 287 |
"beginCaptures": { |
| 288 |
"1": { |
| 289 |
"name": "keyword.control.at-rule.media.less" |
| 290 |
}, |
| 291 |
"2": { |
| 292 |
"name": "punctuation.definition.keyword.less" |
| 293 |
}, |
| 294 |
"3": { |
| 295 |
"name": "support.constant.media.less" |
| 296 |
} |
| 297 |
}, |
| 298 |
"end": "\\s*(?=\\{)", |
| 299 |
"name": "meta.at-rule.media.less", |
| 300 |
"patterns": [ |
| 301 |
{ |
| 302 |
"include": "#media-query-list" |
| 303 |
} |
| 304 |
] |
| 305 |
}, |
| 306 |
{ |
| 307 |
"begin": "\\s*(\\{)", |
| 308 |
"beginCaptures": { |
| 309 |
"1": { |
| 310 |
"name": "punctuation.definition.block.begin.less" |
| 311 |
} |
| 312 |
}, |
| 313 |
"end": "(?=\\})", |
| 314 |
"patterns": [ |
| 315 |
{ |
| 316 |
"include": "#rule-list-body" |
| 317 |
}, |
| 318 |
{ |
| 319 |
"include": "$self" |
| 320 |
} |
| 321 |
] |
| 322 |
} |
| 323 |
] |
| 324 |
}, |
| 325 |
"at-namespace": { |
| 326 |
"begin": "\\s*((@)namespace)\\s+", |
| 327 |
"beginCaptures": { |
| 328 |
"1": { |
| 329 |
"name": "keyword.control.at-rule.namespace.less" |
| 330 |
}, |
| 331 |
"2": { |
| 332 |
"name": "punctuation.definition.keyword.less" |
| 333 |
} |
| 334 |
}, |
| 335 |
"end": "\\;", |
| 336 |
"endCaptures": { |
| 337 |
"0": { |
| 338 |
"name": "punctuation.terminator.rule.less" |
| 339 |
} |
| 340 |
}, |
| 341 |
"name": "meta.at-rule.namespace.less", |
| 342 |
"patterns": [ |
| 343 |
{ |
| 344 |
"include": "#url-function" |
| 345 |
}, |
| 346 |
{ |
| 347 |
"include": "#literal-string" |
| 348 |
}, |
| 349 |
{ |
| 350 |
"match": "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 351 |
"name": "entity.name.constant.namespace-prefix.less" |
| 352 |
} |
| 353 |
] |
| 354 |
}, |
| 355 |
"at-page": { |
| 356 |
"captures": { |
| 357 |
"1": { |
| 358 |
"name": "keyword.control.at-rule.page.less" |
| 359 |
}, |
| 360 |
"2": { |
| 361 |
"name": "punctuation.definition.keyword.less" |
| 362 |
}, |
| 363 |
"3": { |
| 364 |
"name": "punctuation.definition.entity.less" |
| 365 |
}, |
| 366 |
"4": { |
| 367 |
"name": "entity.other.attribute-name.pseudo-class.less" |
| 368 |
} |
| 369 |
}, |
| 370 |
"match": "\\s*((@)page)\\s*(?:(:)(first|left|right))?\\s*(?=\\{|$)", |
| 371 |
"name": "meta.at-rule.page.less", |
| 372 |
"patterns": [ |
| 373 |
{ |
| 374 |
"include": "#comment-block" |
| 375 |
}, |
| 376 |
{ |
| 377 |
"include": "#rule-list" |
| 378 |
} |
| 379 |
] |
| 380 |
}, |
| 381 |
"at-rules": { |
| 382 |
"patterns": [ |
| 383 |
{ |
| 384 |
"include": "#at-charset" |
| 385 |
}, |
| 386 |
{ |
| 387 |
"include": "#at-counter-style" |
| 388 |
}, |
| 389 |
{ |
| 390 |
"include": "#at-custom-media" |
| 391 |
}, |
| 392 |
{ |
| 393 |
"include": "#at-font-face" |
| 394 |
}, |
| 395 |
{ |
| 396 |
"include": "#at-media" |
| 397 |
}, |
| 398 |
{ |
| 399 |
"include": "#at-import" |
| 400 |
}, |
| 401 |
{ |
| 402 |
"include": "#at-keyframes" |
| 403 |
}, |
| 404 |
{ |
| 405 |
"include": "#at-namespace" |
| 406 |
}, |
| 407 |
{ |
| 408 |
"include": "#at-page" |
| 409 |
}, |
| 410 |
{ |
| 411 |
"include": "#at-supports" |
| 412 |
}, |
| 413 |
{ |
| 414 |
"include": "#at-viewport" |
| 415 |
} |
| 416 |
] |
| 417 |
}, |
| 418 |
"at-supports": { |
| 419 |
"begin": "(?=\\s*@supports\\b)", |
| 420 |
"end": "(?=\\s*)(\\})", |
| 421 |
"endCaptures": { |
| 422 |
"1": { |
| 423 |
"name": "punctuation.definition.block.end.less" |
| 424 |
} |
| 425 |
}, |
| 426 |
"patterns": [ |
| 427 |
{ |
| 428 |
"begin": "\\s*((@)supports)", |
| 429 |
"beginCaptures": { |
| 430 |
"1": { |
| 431 |
"name": "keyword.control.at-rule.supports.less" |
| 432 |
}, |
| 433 |
"2": { |
| 434 |
"name": "punctuation.definition.keyword.less" |
| 435 |
}, |
| 436 |
"3": { |
| 437 |
"name": "support.constant.supports.less" |
| 438 |
} |
| 439 |
}, |
| 440 |
"end": "\\s*(?=\\{)", |
| 441 |
"name": "meta.at-rule.supports.less", |
| 442 |
"patterns": [ |
| 443 |
{ |
| 444 |
"include": "#at-supports-operators" |
| 445 |
}, |
| 446 |
{ |
| 447 |
"include": "#at-supports-parens" |
| 448 |
} |
| 449 |
] |
| 450 |
}, |
| 451 |
{ |
| 452 |
"begin": "\\s*(\\{)", |
| 453 |
"beginCaptures": { |
| 454 |
"1": { |
| 455 |
"name": "punctuation.section.property-list.begin.less" |
| 456 |
} |
| 457 |
}, |
| 458 |
"end": "(?=\\})", |
| 459 |
"patterns": [ |
| 460 |
{ |
| 461 |
"include": "#rule-list-body" |
| 462 |
}, |
| 463 |
{ |
| 464 |
"include": "$self" |
| 465 |
} |
| 466 |
] |
| 467 |
} |
| 468 |
] |
| 469 |
}, |
| 470 |
"at-supports-operators": { |
| 471 |
"match": "\\b(?:and|or|not)\\b", |
| 472 |
"name": "keyword.operator.logic.less" |
| 473 |
}, |
| 474 |
"at-supports-parens": { |
| 475 |
"begin": "\\(", |
| 476 |
"beginCaptures": { |
| 477 |
"0": { |
| 478 |
"name": "punctuation.definition.group.begin.less" |
| 479 |
} |
| 480 |
}, |
| 481 |
"end": "\\)", |
| 482 |
"endCaptures": { |
| 483 |
"0": { |
| 484 |
"name": "punctuation.definition.group.end.less" |
| 485 |
} |
| 486 |
}, |
| 487 |
"name": "meta.group.less", |
| 488 |
"patterns": [ |
| 489 |
{ |
| 490 |
"include": "#at-supports-operators" |
| 491 |
}, |
| 492 |
{ |
| 493 |
"include": "#at-supports-parens" |
| 494 |
}, |
| 495 |
{ |
| 496 |
"include": "#rule-list-body" |
| 497 |
} |
| 498 |
] |
| 499 |
}, |
| 500 |
"at-viewport": { |
| 501 |
"begin": "((@(-ms-)?)viewport)", |
| 502 |
"beginCaptures": { |
| 503 |
"1": { |
| 504 |
"name": "keyword.control.at-rule.viewport.less" |
| 505 |
}, |
| 506 |
"2": { |
| 507 |
"name": "punctuation.definition.keyword.less" |
| 508 |
}, |
| 509 |
"3": { |
| 510 |
"name": "support.type.vendor-prefix.less" |
| 511 |
} |
| 512 |
}, |
| 513 |
"end": "\\}", |
| 514 |
"endCaptures": { |
| 515 |
"0": { |
| 516 |
"name": "punctuation.definition.block.end.less" |
| 517 |
} |
| 518 |
}, |
| 519 |
"name": "meta.at-rule.viewport.less", |
| 520 |
"patterns": [ |
| 521 |
{ |
| 522 |
"begin": "\\{", |
| 523 |
"captures": { |
| 524 |
"0": { |
| 525 |
"name": "punctuation.definition.block.begin.less" |
| 526 |
} |
| 527 |
}, |
| 528 |
"end": "(?=\\})", |
| 529 |
"name": "meta.block.less", |
| 530 |
"patterns": [ |
| 531 |
{ |
| 532 |
"include": "#rule-list-body" |
| 533 |
} |
| 534 |
] |
| 535 |
} |
| 536 |
] |
| 537 |
}, |
| 538 |
"attr-function": { |
| 539 |
"begin": "\\b(attr)(?=\\()", |
| 540 |
"beginCaptures": { |
| 541 |
"1": { |
| 542 |
"name": "support.function.filter.less" |
| 543 |
} |
| 544 |
}, |
| 545 |
"end": "\\)", |
| 546 |
"endCaptures": { |
| 547 |
"0": { |
| 548 |
"name": "punctuation.definition.group.end.less" |
| 549 |
} |
| 550 |
}, |
| 551 |
"name": "meta.function-call.less", |
| 552 |
"patterns": [ |
| 553 |
{ |
| 554 |
"begin": "\\(", |
| 555 |
"beginCaptures": { |
| 556 |
"0": { |
| 557 |
"name": "punctuation.definition.group.begin.less" |
| 558 |
} |
| 559 |
}, |
| 560 |
"end": "(?=\\))", |
| 561 |
"patterns": [ |
| 562 |
{ |
| 563 |
"include": "#qualified-name" |
| 564 |
}, |
| 565 |
{ |
| 566 |
"include": "#literal-string" |
| 567 |
}, |
| 568 |
{ |
| 569 |
"begin": "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 570 |
"end": "(?=\\))", |
| 571 |
"name": "entity.other.attribute-name.less", |
| 572 |
"patterns": [ |
| 573 |
{ |
| 574 |
"match": "(?x)\\b((?i:em|ex|ch|rem)|(?i:vw|vh|vmin|vmax)|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:s|ms)|(?i:Hz|kHz)|(?i:dpi|dpcm|dppx))\\b", |
| 575 |
"name": "keyword.other.unit.less" |
| 576 |
}, |
| 577 |
{ |
| 578 |
"include": "#comma-delimiter" |
| 579 |
}, |
| 580 |
{ |
| 581 |
"include": "#property-value-constants" |
| 582 |
}, |
| 583 |
{ |
| 584 |
"include": "#numeric-values" |
| 585 |
} |
| 586 |
] |
| 587 |
}, |
| 588 |
{ |
| 589 |
"include": "#color-values" |
| 590 |
} |
| 591 |
] |
| 592 |
} |
| 593 |
] |
| 594 |
}, |
| 595 |
"builtin-functions": { |
| 596 |
"patterns": [ |
| 597 |
{ |
| 598 |
"include": "#attr-function" |
| 599 |
}, |
| 600 |
{ |
| 601 |
"include": "#calc-function" |
| 602 |
}, |
| 603 |
{ |
| 604 |
"include": "#color-functions" |
| 605 |
}, |
| 606 |
{ |
| 607 |
"include": "#counter-functions" |
| 608 |
}, |
| 609 |
{ |
| 610 |
"include": "#cross-fade-function" |
| 611 |
}, |
| 612 |
{ |
| 613 |
"include": "#cubic-bezier-function" |
| 614 |
}, |
| 615 |
{ |
| 616 |
"include": "#filter-function" |
| 617 |
}, |
| 618 |
{ |
| 619 |
"include": "#format-function" |
| 620 |
}, |
| 621 |
{ |
| 622 |
"include": "#gradient-functions" |
| 623 |
}, |
| 624 |
{ |
| 625 |
"include": "#grid-repeat-function" |
| 626 |
}, |
| 627 |
{ |
| 628 |
"include": "#image-function" |
| 629 |
}, |
| 630 |
{ |
| 631 |
"include": "#less-functions" |
| 632 |
}, |
| 633 |
{ |
| 634 |
"include": "#local-function" |
| 635 |
}, |
| 636 |
{ |
| 637 |
"include": "#minmax-function" |
| 638 |
}, |
| 639 |
{ |
| 640 |
"include": "#regexp-function" |
| 641 |
}, |
| 642 |
{ |
| 643 |
"include": "#shape-functions" |
| 644 |
}, |
| 645 |
{ |
| 646 |
"include": "#steps-function" |
| 647 |
}, |
| 648 |
{ |
| 649 |
"include": "#symbols-function" |
| 650 |
}, |
| 651 |
{ |
| 652 |
"include": "#transform-functions" |
| 653 |
}, |
| 654 |
{ |
| 655 |
"include": "#url-function" |
| 656 |
}, |
| 657 |
{ |
| 658 |
"include": "#var-function" |
| 659 |
} |
| 660 |
] |
| 661 |
}, |
| 662 |
"calc-function": { |
| 663 |
"begin": "\\b(calc)(?=\\()", |
| 664 |
"beginCaptures": { |
| 665 |
"1": { |
| 666 |
"name": "support.function.calc.less" |
| 667 |
} |
| 668 |
}, |
| 669 |
"end": "\\)", |
| 670 |
"endCaptures": { |
| 671 |
"0": { |
| 672 |
"name": "punctuation.definition.group.end.less" |
| 673 |
} |
| 674 |
}, |
| 675 |
"name": "meta.function-call.less", |
| 676 |
"patterns": [ |
| 677 |
{ |
| 678 |
"begin": "\\(", |
| 679 |
"beginCaptures": { |
| 680 |
"0": { |
| 681 |
"name": "punctuation.definition.group.begin.less" |
| 682 |
} |
| 683 |
}, |
| 684 |
"end": "(?=\\))", |
| 685 |
"patterns": [ |
| 686 |
{ |
| 687 |
"include": "#less-strings" |
| 688 |
}, |
| 689 |
{ |
| 690 |
"include": "#var-function" |
| 691 |
}, |
| 692 |
{ |
| 693 |
"include": "#calc-function" |
| 694 |
}, |
| 695 |
{ |
| 696 |
"include": "#attr-function" |
| 697 |
}, |
| 698 |
{ |
| 699 |
"include": "#less-math" |
| 700 |
} |
| 701 |
] |
| 702 |
} |
| 703 |
] |
| 704 |
}, |
| 705 |
"color-adjuster-operators": { |
| 706 |
"match": "[\\-\\+*](?=\\s+)", |
| 707 |
"name": "keyword.operator.less" |
| 708 |
}, |
| 709 |
"color-functions": { |
| 710 |
"patterns": [ |
| 711 |
{ |
| 712 |
"begin": "\\b(rgba?)(?=\\()", |
| 713 |
"beginCaptures": { |
| 714 |
"1": { |
| 715 |
"name": "support.function.color.less" |
| 716 |
} |
| 717 |
}, |
| 718 |
"end": "\\)", |
| 719 |
"endCaptures": { |
| 720 |
"0": { |
| 721 |
"name": "punctuation.definition.group.end.less" |
| 722 |
} |
| 723 |
}, |
| 724 |
"name": "meta.function-call.less", |
| 725 |
"patterns": [ |
| 726 |
{ |
| 727 |
"begin": "\\(", |
| 728 |
"beginCaptures": { |
| 729 |
"0": { |
| 730 |
"name": "punctuation.definition.group.begin.less" |
| 731 |
} |
| 732 |
}, |
| 733 |
"end": "(?=\\))", |
| 734 |
"patterns": [ |
| 735 |
{ |
| 736 |
"include": "#less-strings" |
| 737 |
}, |
| 738 |
{ |
| 739 |
"include": "#less-variables" |
| 740 |
}, |
| 741 |
{ |
| 742 |
"include": "#comma-delimiter" |
| 743 |
}, |
| 744 |
{ |
| 745 |
"include": "#percentage-type" |
| 746 |
}, |
| 747 |
{ |
| 748 |
"include": "#number-type" |
| 749 |
} |
| 750 |
] |
| 751 |
} |
| 752 |
] |
| 753 |
}, |
| 754 |
{ |
| 755 |
"begin": "\\b(hs(l|v)a?|hwb)(?=\\()", |
| 756 |
"beginCaptures": { |
| 757 |
"1": { |
| 758 |
"name": "support.function.color.less" |
| 759 |
} |
| 760 |
}, |
| 761 |
"end": "\\)", |
| 762 |
"endCaptures": { |
| 763 |
"0": { |
| 764 |
"name": "punctuation.definition.group.end.less" |
| 765 |
} |
| 766 |
}, |
| 767 |
"name": "meta.function-call.less", |
| 768 |
"patterns": [ |
| 769 |
{ |
| 770 |
"begin": "\\(", |
| 771 |
"beginCaptures": { |
| 772 |
"0": { |
| 773 |
"name": "punctuation.definition.group.begin.less" |
| 774 |
} |
| 775 |
}, |
| 776 |
"end": "(?=\\))", |
| 777 |
"patterns": [ |
| 778 |
{ |
| 779 |
"include": "#less-strings" |
| 780 |
}, |
| 781 |
{ |
| 782 |
"include": "#less-variables" |
| 783 |
}, |
| 784 |
{ |
| 785 |
"include": "#comma-delimiter" |
| 786 |
}, |
| 787 |
{ |
| 788 |
"include": "#angle-type" |
| 789 |
}, |
| 790 |
{ |
| 791 |
"include": "#percentage-type" |
| 792 |
}, |
| 793 |
{ |
| 794 |
"include": "#number-type" |
| 795 |
} |
| 796 |
] |
| 797 |
} |
| 798 |
] |
| 799 |
}, |
| 800 |
{ |
| 801 |
"include": "#less-color-functions" |
| 802 |
} |
| 803 |
] |
| 804 |
}, |
| 805 |
"color-values": { |
| 806 |
"patterns": [ |
| 807 |
{ |
| 808 |
"include": "#color-functions" |
| 809 |
}, |
| 810 |
{ |
| 811 |
"include": "#less-functions" |
| 812 |
}, |
| 813 |
{ |
| 814 |
"include": "#less-variables" |
| 815 |
}, |
| 816 |
{ |
| 817 |
"match": "\\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\\b", |
| 818 |
"name": "support.constant.color.w3c-standard-color-name.less" |
| 819 |
}, |
| 820 |
{ |
| 821 |
"match": "\\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\\b", |
| 822 |
"name": "support.constant.color.w3c-extended-color-keywords.less" |
| 823 |
}, |
| 824 |
{ |
| 825 |
"match": "\\b((?i)currentColor|transparent)\\b", |
| 826 |
"name": "support.constant.color.w3c-special-color-keyword.less" |
| 827 |
}, |
| 828 |
{ |
| 829 |
"captures": { |
| 830 |
"1": { |
| 831 |
"name": "punctuation.definition.constant.less" |
| 832 |
} |
| 833 |
}, |
| 834 |
"match": "(#)(\\h{3}|\\h{4}|\\h{6}|\\h{8})\\b", |
| 835 |
"name": "constant.other.color.rgb-value.less" |
| 836 |
} |
| 837 |
] |
| 838 |
}, |
| 839 |
"comma-delimiter": { |
| 840 |
"captures": { |
| 841 |
"1": { |
| 842 |
"name": "punctuation.separator.less" |
| 843 |
} |
| 844 |
}, |
| 845 |
"match": "\\s*(,)\\s*" |
| 846 |
}, |
| 847 |
"comment-block": { |
| 848 |
"patterns": [ |
| 849 |
{ |
| 850 |
"begin": "/\\*", |
| 851 |
"captures": { |
| 852 |
"0": { |
| 853 |
"name": "punctuation.definition.comment.less" |
| 854 |
} |
| 855 |
}, |
| 856 |
"end": "\\*/", |
| 857 |
"name": "comment.block.less" |
| 858 |
}, |
| 859 |
{ |
| 860 |
"include": "#comment-line" |
| 861 |
} |
| 862 |
] |
| 863 |
}, |
| 864 |
"comment-line": { |
| 865 |
"captures": { |
| 866 |
"1": { |
| 867 |
"name": "punctuation.definition.comment.less" |
| 868 |
} |
| 869 |
}, |
| 870 |
"match": "(//).*$\\n?", |
| 871 |
"name": "comment.line.double-slash.less" |
| 872 |
}, |
| 873 |
"counter-functions": { |
| 874 |
"patterns": [ |
| 875 |
{ |
| 876 |
"begin": "\\b(counter)(?=\\()", |
| 877 |
"beginCaptures": { |
| 878 |
"1": { |
| 879 |
"name": "support.function.filter.less" |
| 880 |
} |
| 881 |
}, |
| 882 |
"end": "\\)", |
| 883 |
"endCaptures": { |
| 884 |
"0": { |
| 885 |
"name": "punctuation.definition.group.end.less" |
| 886 |
} |
| 887 |
}, |
| 888 |
"name": "meta.function-call.less", |
| 889 |
"patterns": [ |
| 890 |
{ |
| 891 |
"begin": "\\(", |
| 892 |
"beginCaptures": { |
| 893 |
"0": { |
| 894 |
"name": "punctuation.definition.group.begin.less" |
| 895 |
} |
| 896 |
}, |
| 897 |
"end": "(?=\\))", |
| 898 |
"patterns": [ |
| 899 |
{ |
| 900 |
"include": "#less-strings" |
| 901 |
}, |
| 902 |
{ |
| 903 |
"include": "#less-variables" |
| 904 |
}, |
| 905 |
{ |
| 906 |
"match": "(?:--(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))+|-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 907 |
"name": "entity.other.counter-name.less" |
| 908 |
}, |
| 909 |
{ |
| 910 |
"begin": "(?=,)", |
| 911 |
"end": "(?=\\))", |
| 912 |
"patterns": [ |
| 913 |
{ |
| 914 |
"include": "#comma-delimiter" |
| 915 |
}, |
| 916 |
{ |
| 917 |
"match": "\\b((?xi:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\b", |
| 918 |
"name": "support.constant.property-value.counter-style.less" |
| 919 |
} |
| 920 |
] |
| 921 |
} |
| 922 |
] |
| 923 |
} |
| 924 |
] |
| 925 |
}, |
| 926 |
{ |
| 927 |
"begin": "\\b(counters)(?=\\()", |
| 928 |
"beginCaptures": { |
| 929 |
"1": { |
| 930 |
"name": "support.function.filter.less" |
| 931 |
} |
| 932 |
}, |
| 933 |
"end": "\\)", |
| 934 |
"endCaptures": { |
| 935 |
"0": { |
| 936 |
"name": "punctuation.definition.group.end.less" |
| 937 |
} |
| 938 |
}, |
| 939 |
"name": "meta.function-call.less", |
| 940 |
"patterns": [ |
| 941 |
{ |
| 942 |
"begin": "\\(", |
| 943 |
"beginCaptures": { |
| 944 |
"0": { |
| 945 |
"name": "punctuation.definition.group.begin.less" |
| 946 |
} |
| 947 |
}, |
| 948 |
"end": "(?=\\))", |
| 949 |
"patterns": [ |
| 950 |
{ |
| 951 |
"match": "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 952 |
"name": "entity.other.counter-name.less string.unquoted.less" |
| 953 |
}, |
| 954 |
{ |
| 955 |
"begin": "(?=,)", |
| 956 |
"end": "(?=\\))", |
| 957 |
"patterns": [ |
| 958 |
{ |
| 959 |
"include": "#less-strings" |
| 960 |
}, |
| 961 |
{ |
| 962 |
"include": "#less-variables" |
| 963 |
}, |
| 964 |
{ |
| 965 |
"include": "#literal-string" |
| 966 |
}, |
| 967 |
{ |
| 968 |
"include": "#comma-delimiter" |
| 969 |
}, |
| 970 |
{ |
| 971 |
"match": "\\b((?xi:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\b", |
| 972 |
"name": "support.constant.property-value.counter-style.less" |
| 973 |
} |
| 974 |
] |
| 975 |
} |
| 976 |
] |
| 977 |
} |
| 978 |
] |
| 979 |
} |
| 980 |
] |
| 981 |
}, |
| 982 |
"cross-fade-function": { |
| 983 |
"patterns": [ |
| 984 |
{ |
| 985 |
"begin": "\\b(cross-fade)(?=\\()", |
| 986 |
"beginCaptures": { |
| 987 |
"1": { |
| 988 |
"name": "support.function.image.less" |
| 989 |
} |
| 990 |
}, |
| 991 |
"end": "\\)", |
| 992 |
"endCaptures": { |
| 993 |
"0": { |
| 994 |
"name": "punctuation.definition.group.end.less" |
| 995 |
} |
| 996 |
}, |
| 997 |
"name": "meta.function-call.less", |
| 998 |
"patterns": [ |
| 999 |
{ |
| 1000 |
"begin": "\\(", |
| 1001 |
"beginCaptures": { |
| 1002 |
"0": { |
| 1003 |
"name": "punctuation.definition.group.begin.less" |
| 1004 |
} |
| 1005 |
}, |
| 1006 |
"end": "(?=\\))", |
| 1007 |
"patterns": [ |
| 1008 |
{ |
| 1009 |
"include": "#comma-delimiter" |
| 1010 |
}, |
| 1011 |
{ |
| 1012 |
"include": "#percentage-type" |
| 1013 |
}, |
| 1014 |
{ |
| 1015 |
"include": "#color-values" |
| 1016 |
}, |
| 1017 |
{ |
| 1018 |
"include": "#image-type" |
| 1019 |
}, |
| 1020 |
{ |
| 1021 |
"include": "#literal-string" |
| 1022 |
}, |
| 1023 |
{ |
| 1024 |
"include": "#unquoted-string" |
| 1025 |
} |
| 1026 |
] |
| 1027 |
} |
| 1028 |
] |
| 1029 |
} |
| 1030 |
] |
| 1031 |
}, |
| 1032 |
"cubic-bezier-function": { |
| 1033 |
"begin": "\\b(cubic-bezier)(?=\\()", |
| 1034 |
"beginCaptures": { |
| 1035 |
"0": { |
| 1036 |
"name": "support.function.timing.less" |
| 1037 |
} |
| 1038 |
}, |
| 1039 |
"end": "\\)", |
| 1040 |
"endCaptures": { |
| 1041 |
"0": { |
| 1042 |
"name": "punctuation.definition.group.end.less" |
| 1043 |
} |
| 1044 |
}, |
| 1045 |
"name": "meta.function-call.less", |
| 1046 |
"patterns": [ |
| 1047 |
{ |
| 1048 |
"begin": "\\(", |
| 1049 |
"beginCaptures": { |
| 1050 |
"0": { |
| 1051 |
"name": "punctuation.definition.group.begin.less" |
| 1052 |
} |
| 1053 |
}, |
| 1054 |
"end": "(?=\\))", |
| 1055 |
"patterns": [ |
| 1056 |
{ |
| 1057 |
"include": "#comma-delimiter" |
| 1058 |
}, |
| 1059 |
{ |
| 1060 |
"include": "#number-type" |
| 1061 |
} |
| 1062 |
] |
| 1063 |
} |
| 1064 |
] |
| 1065 |
}, |
| 1066 |
"custom-property-name": { |
| 1067 |
"captures": { |
| 1068 |
"1": { |
| 1069 |
"name": "punctuation.definition.custom-property.less" |
| 1070 |
}, |
| 1071 |
"2": { |
| 1072 |
"name": "support.type.custom-property.name.less" |
| 1073 |
} |
| 1074 |
}, |
| 1075 |
"match": "\\s*(--)((?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))+)", |
| 1076 |
"name": "support.type.custom-property.less" |
| 1077 |
}, |
| 1078 |
"dimensions": { |
| 1079 |
"patterns": [ |
| 1080 |
{ |
| 1081 |
"include": "#angle-type" |
| 1082 |
}, |
| 1083 |
{ |
| 1084 |
"include": "#frequency-type" |
| 1085 |
}, |
| 1086 |
{ |
| 1087 |
"include": "#length-type" |
| 1088 |
}, |
| 1089 |
{ |
| 1090 |
"include": "#resolution-type" |
| 1091 |
}, |
| 1092 |
{ |
| 1093 |
"include": "#time-type" |
| 1094 |
} |
| 1095 |
] |
| 1096 |
}, |
| 1097 |
"filter-function": { |
| 1098 |
"begin": "\\b(filter)(?=\\()", |
| 1099 |
"beginCaptures": { |
| 1100 |
"1": { |
| 1101 |
"name": "support.function.filter.less" |
| 1102 |
} |
| 1103 |
}, |
| 1104 |
"end": "\\)", |
| 1105 |
"endCaptures": { |
| 1106 |
"0": { |
| 1107 |
"name": "punctuation.definition.group.end.less" |
| 1108 |
} |
| 1109 |
}, |
| 1110 |
"name": "meta.function-call.less", |
| 1111 |
"patterns": [ |
| 1112 |
{ |
| 1113 |
"begin": "\\(", |
| 1114 |
"beginCaptures": { |
| 1115 |
"0": { |
| 1116 |
"name": "punctuation.definition.group.begin.less" |
| 1117 |
} |
| 1118 |
}, |
| 1119 |
"end": "(?=\\))", |
| 1120 |
"name": "meta.group.less", |
| 1121 |
"patterns": [ |
| 1122 |
{ |
| 1123 |
"include": "#comma-delimiter" |
| 1124 |
}, |
| 1125 |
{ |
| 1126 |
"include": "#image-type" |
| 1127 |
}, |
| 1128 |
{ |
| 1129 |
"include": "#literal-string" |
| 1130 |
}, |
| 1131 |
{ |
| 1132 |
"include": "#filter-functions" |
| 1133 |
} |
| 1134 |
] |
| 1135 |
} |
| 1136 |
] |
| 1137 |
}, |
| 1138 |
"filter-functions": { |
| 1139 |
"patterns": [ |
| 1140 |
{ |
| 1141 |
"include": "#less-functions" |
| 1142 |
}, |
| 1143 |
{ |
| 1144 |
"begin": "\\b(blur)(?=\\()", |
| 1145 |
"beginCaptures": { |
| 1146 |
"1": { |
| 1147 |
"name": "support.function.filter.less" |
| 1148 |
} |
| 1149 |
}, |
| 1150 |
"end": "\\)", |
| 1151 |
"endCaptures": { |
| 1152 |
"0": { |
| 1153 |
"name": "punctuation.definition.group.end.less" |
| 1154 |
} |
| 1155 |
}, |
| 1156 |
"name": "meta.function-call.less", |
| 1157 |
"patterns": [ |
| 1158 |
{ |
| 1159 |
"begin": "\\(", |
| 1160 |
"beginCaptures": { |
| 1161 |
"0": { |
| 1162 |
"name": "punctuation.definition.group.begin.less" |
| 1163 |
} |
| 1164 |
}, |
| 1165 |
"end": "(?=\\))", |
| 1166 |
"patterns": [ |
| 1167 |
{ |
| 1168 |
"include": "#length-type" |
| 1169 |
} |
| 1170 |
] |
| 1171 |
} |
| 1172 |
] |
| 1173 |
}, |
| 1174 |
{ |
| 1175 |
"begin": "\\b(brightness|contrast|grayscale|invert|opacity|saturate|sepia)(?=\\()", |
| 1176 |
"beginCaptures": { |
| 1177 |
"1": { |
| 1178 |
"name": "support.function.filter.less" |
| 1179 |
} |
| 1180 |
}, |
| 1181 |
"end": "\\)", |
| 1182 |
"endCaptures": { |
| 1183 |
"0": { |
| 1184 |
"name": "punctuation.definition.group.end.less" |
| 1185 |
} |
| 1186 |
}, |
| 1187 |
"name": "meta.function-call.less", |
| 1188 |
"patterns": [ |
| 1189 |
{ |
| 1190 |
"begin": "\\(", |
| 1191 |
"beginCaptures": { |
| 1192 |
"0": { |
| 1193 |
"name": "punctuation.definition.group.begin.less" |
| 1194 |
} |
| 1195 |
}, |
| 1196 |
"end": "(?=\\))", |
| 1197 |
"patterns": [ |
| 1198 |
{ |
| 1199 |
"include": "#percentage-type" |
| 1200 |
}, |
| 1201 |
{ |
| 1202 |
"include": "#number-type" |
| 1203 |
}, |
| 1204 |
{ |
| 1205 |
"include": "#less-functions" |
| 1206 |
} |
| 1207 |
] |
| 1208 |
} |
| 1209 |
] |
| 1210 |
}, |
| 1211 |
{ |
| 1212 |
"begin": "\\b(drop-shadow)(?=\\()", |
| 1213 |
"beginCaptures": { |
| 1214 |
"1": { |
| 1215 |
"name": "support.function.filter.less" |
| 1216 |
} |
| 1217 |
}, |
| 1218 |
"end": "\\)", |
| 1219 |
"endCaptures": { |
| 1220 |
"0": { |
| 1221 |
"name": "punctuation.definition.group.end.less" |
| 1222 |
} |
| 1223 |
}, |
| 1224 |
"name": "meta.function-call.less", |
| 1225 |
"patterns": [ |
| 1226 |
{ |
| 1227 |
"begin": "\\(", |
| 1228 |
"beginCaptures": { |
| 1229 |
"0": { |
| 1230 |
"name": "punctuation.definition.group.begin.less" |
| 1231 |
} |
| 1232 |
}, |
| 1233 |
"end": "(?=\\))", |
| 1234 |
"patterns": [ |
| 1235 |
{ |
| 1236 |
"include": "#length-type" |
| 1237 |
}, |
| 1238 |
{ |
| 1239 |
"include": "#color-values" |
| 1240 |
} |
| 1241 |
] |
| 1242 |
} |
| 1243 |
] |
| 1244 |
}, |
| 1245 |
{ |
| 1246 |
"begin": "\\b(hue-rotate)(?=\\()", |
| 1247 |
"beginCaptures": { |
| 1248 |
"1": { |
| 1249 |
"name": "support.function.filter.less" |
| 1250 |
} |
| 1251 |
}, |
| 1252 |
"end": "\\)", |
| 1253 |
"endCaptures": { |
| 1254 |
"0": { |
| 1255 |
"name": "punctuation.definition.group.end.less" |
| 1256 |
} |
| 1257 |
}, |
| 1258 |
"name": "meta.function-call.less", |
| 1259 |
"patterns": [ |
| 1260 |
{ |
| 1261 |
"begin": "\\(", |
| 1262 |
"beginCaptures": { |
| 1263 |
"0": { |
| 1264 |
"name": "punctuation.definition.group.begin.less" |
| 1265 |
} |
| 1266 |
}, |
| 1267 |
"end": "(?=\\))", |
| 1268 |
"patterns": [ |
| 1269 |
{ |
| 1270 |
"include": "#angle-type" |
| 1271 |
} |
| 1272 |
] |
| 1273 |
} |
| 1274 |
] |
| 1275 |
} |
| 1276 |
] |
| 1277 |
}, |
| 1278 |
"format-function": { |
| 1279 |
"patterns": [ |
| 1280 |
{ |
| 1281 |
"begin": "\\b(format)(?=\\()", |
| 1282 |
"beginCaptures": { |
| 1283 |
"0": { |
| 1284 |
"name": "support.function.format.less" |
| 1285 |
} |
| 1286 |
}, |
| 1287 |
"end": "\\)", |
| 1288 |
"endCaptures": { |
| 1289 |
"0": { |
| 1290 |
"name": "punctuation.definition.group.end.less" |
| 1291 |
} |
| 1292 |
}, |
| 1293 |
"name": "meta.function-call.less", |
| 1294 |
"patterns": [ |
| 1295 |
{ |
| 1296 |
"begin": "\\(", |
| 1297 |
"beginCaptures": { |
| 1298 |
"0": { |
| 1299 |
"name": "punctuation.definition.group.begin.less" |
| 1300 |
} |
| 1301 |
}, |
| 1302 |
"end": "(?=\\))", |
| 1303 |
"patterns": [ |
| 1304 |
{ |
| 1305 |
"include": "#literal-string" |
| 1306 |
} |
| 1307 |
] |
| 1308 |
} |
| 1309 |
] |
| 1310 |
} |
| 1311 |
] |
| 1312 |
}, |
| 1313 |
"frequency-type": { |
| 1314 |
"captures": { |
| 1315 |
"1": { |
| 1316 |
"name": "keyword.other.unit.less" |
| 1317 |
} |
| 1318 |
}, |
| 1319 |
"match": "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(Hz|kHz))\\b", |
| 1320 |
"name": "constant.numeric.less" |
| 1321 |
}, |
| 1322 |
"gradient-functions": { |
| 1323 |
"patterns": [ |
| 1324 |
{ |
| 1325 |
"begin": "\\b((?:repeating-)?linear-gradient)(?=\\()", |
| 1326 |
"beginCaptures": { |
| 1327 |
"1": { |
| 1328 |
"name": "support.function.gradient.less" |
| 1329 |
} |
| 1330 |
}, |
| 1331 |
"end": "\\)", |
| 1332 |
"endCaptures": { |
| 1333 |
"0": { |
| 1334 |
"name": "punctuation.definition.group.end.less" |
| 1335 |
} |
| 1336 |
}, |
| 1337 |
"name": "meta.function-call.less", |
| 1338 |
"patterns": [ |
| 1339 |
{ |
| 1340 |
"begin": "\\(", |
| 1341 |
"beginCaptures": { |
| 1342 |
"0": { |
| 1343 |
"name": "punctuation.definition.group.begin.less" |
| 1344 |
} |
| 1345 |
}, |
| 1346 |
"end": "(?=\\))", |
| 1347 |
"patterns": [ |
| 1348 |
{ |
| 1349 |
"include": "#less-variables" |
| 1350 |
}, |
| 1351 |
{ |
| 1352 |
"include": "#angle-type" |
| 1353 |
}, |
| 1354 |
{ |
| 1355 |
"include": "#color-values" |
| 1356 |
}, |
| 1357 |
{ |
| 1358 |
"include": "#percentage-type" |
| 1359 |
}, |
| 1360 |
{ |
| 1361 |
"include": "#length-type" |
| 1362 |
}, |
| 1363 |
{ |
| 1364 |
"include": "#comma-delimiter" |
| 1365 |
}, |
| 1366 |
{ |
| 1367 |
"match": "\\bto\\b", |
| 1368 |
"name": "keyword.other.less" |
| 1369 |
}, |
| 1370 |
{ |
| 1371 |
"match": "\\b(top|right|bottom|left)\\b", |
| 1372 |
"name": "support.constant.property-value.less" |
| 1373 |
} |
| 1374 |
] |
| 1375 |
} |
| 1376 |
] |
| 1377 |
}, |
| 1378 |
{ |
| 1379 |
"begin": "\\b((?:repeating-)?radial-gradient)(?=\\()", |
| 1380 |
"beginCaptures": { |
| 1381 |
"1": { |
| 1382 |
"name": "support.function.gradient.less" |
| 1383 |
} |
| 1384 |
}, |
| 1385 |
"end": "\\)", |
| 1386 |
"endCaptures": { |
| 1387 |
"0": { |
| 1388 |
"name": "punctuation.definition.group.end.less" |
| 1389 |
} |
| 1390 |
}, |
| 1391 |
"name": "meta.function-call.less", |
| 1392 |
"patterns": [ |
| 1393 |
{ |
| 1394 |
"begin": "\\(", |
| 1395 |
"beginCaptures": { |
| 1396 |
"0": { |
| 1397 |
"name": "punctuation.definition.group.begin.less" |
| 1398 |
} |
| 1399 |
}, |
| 1400 |
"end": "(?=\\))", |
| 1401 |
"patterns": [ |
| 1402 |
{ |
| 1403 |
"include": "#less-variables" |
| 1404 |
}, |
| 1405 |
{ |
| 1406 |
"include": "#color-values" |
| 1407 |
}, |
| 1408 |
{ |
| 1409 |
"include": "#percentage-type" |
| 1410 |
}, |
| 1411 |
{ |
| 1412 |
"include": "#length-type" |
| 1413 |
}, |
| 1414 |
{ |
| 1415 |
"include": "#comma-delimiter" |
| 1416 |
}, |
| 1417 |
{ |
| 1418 |
"match": "\\b(at|circle|ellipse)\\b", |
| 1419 |
"name": "keyword.other.less" |
| 1420 |
}, |
| 1421 |
{ |
| 1422 |
"match": "\\b(top|right|bottom|left|center|(farthest|closest)-(corner|side))\\b", |
| 1423 |
"name": "support.constant.property-value.less" |
| 1424 |
} |
| 1425 |
] |
| 1426 |
} |
| 1427 |
] |
| 1428 |
} |
| 1429 |
] |
| 1430 |
}, |
| 1431 |
"grid-repeat-function": { |
| 1432 |
"begin": "\\b(repeat)(?=\\()", |
| 1433 |
"beginCaptures": { |
| 1434 |
"1": { |
| 1435 |
"name": "support.function.grid.less" |
| 1436 |
} |
| 1437 |
}, |
| 1438 |
"end": "\\)", |
| 1439 |
"endCaptures": { |
| 1440 |
"0": { |
| 1441 |
"name": "punctuation.definition.group.end.less" |
| 1442 |
} |
| 1443 |
}, |
| 1444 |
"name": "meta.function-call.less", |
| 1445 |
"patterns": [ |
| 1446 |
{ |
| 1447 |
"begin": "\\(", |
| 1448 |
"beginCaptures": { |
| 1449 |
"0": { |
| 1450 |
"name": "punctuation.definition.group.begin.less" |
| 1451 |
} |
| 1452 |
}, |
| 1453 |
"end": "(?=\\))", |
| 1454 |
"patterns": [ |
| 1455 |
{ |
| 1456 |
"include": "#comma-delimiter" |
| 1457 |
}, |
| 1458 |
{ |
| 1459 |
"include": "#var-function" |
| 1460 |
}, |
| 1461 |
{ |
| 1462 |
"include": "#length-type" |
| 1463 |
}, |
| 1464 |
{ |
| 1465 |
"include": "#percentage-type" |
| 1466 |
}, |
| 1467 |
{ |
| 1468 |
"include": "#minmax-function" |
| 1469 |
}, |
| 1470 |
{ |
| 1471 |
"include": "#integer-type" |
| 1472 |
}, |
| 1473 |
{ |
| 1474 |
"match": "\\b(auto-(fill|fit))\\b", |
| 1475 |
"name": "support.keyword.repetitions.less" |
| 1476 |
}, |
| 1477 |
{ |
| 1478 |
"match": "\\b(((max|min)-content)|auto)\\b", |
| 1479 |
"name": "support.constant.property-value.less" |
| 1480 |
} |
| 1481 |
] |
| 1482 |
} |
| 1483 |
] |
| 1484 |
}, |
| 1485 |
"image-function": { |
| 1486 |
"begin": "\\b(image)(?=\\()", |
| 1487 |
"beginCaptures": { |
| 1488 |
"1": { |
| 1489 |
"name": "support.function.image.less" |
| 1490 |
} |
| 1491 |
}, |
| 1492 |
"end": "\\)", |
| 1493 |
"endCaptures": { |
| 1494 |
"0": { |
| 1495 |
"name": "punctuation.definition.group.end.less" |
| 1496 |
} |
| 1497 |
}, |
| 1498 |
"name": "meta.function-call.less", |
| 1499 |
"patterns": [ |
| 1500 |
{ |
| 1501 |
"begin": "\\(", |
| 1502 |
"beginCaptures": { |
| 1503 |
"0": { |
| 1504 |
"name": "punctuation.definition.group.begin.less" |
| 1505 |
} |
| 1506 |
}, |
| 1507 |
"end": "(?=\\))", |
| 1508 |
"patterns": [ |
| 1509 |
{ |
| 1510 |
"include": "#image-type" |
| 1511 |
}, |
| 1512 |
{ |
| 1513 |
"include": "#literal-string" |
| 1514 |
}, |
| 1515 |
{ |
| 1516 |
"include": "#color-values" |
| 1517 |
}, |
| 1518 |
{ |
| 1519 |
"include": "#comma-delimiter" |
| 1520 |
}, |
| 1521 |
{ |
| 1522 |
"include": "#unquoted-string" |
| 1523 |
} |
| 1524 |
] |
| 1525 |
} |
| 1526 |
] |
| 1527 |
}, |
| 1528 |
"image-type": { |
| 1529 |
"patterns": [ |
| 1530 |
{ |
| 1531 |
"include": "#cross-fade-function" |
| 1532 |
}, |
| 1533 |
{ |
| 1534 |
"include": "#gradient-functions" |
| 1535 |
}, |
| 1536 |
{ |
| 1537 |
"include": "#image-function" |
| 1538 |
}, |
| 1539 |
{ |
| 1540 |
"include": "#url-function" |
| 1541 |
} |
| 1542 |
] |
| 1543 |
}, |
| 1544 |
"integer-type": { |
| 1545 |
"match": "(?:[-+]?\\d+)", |
| 1546 |
"name": "constant.numeric.less" |
| 1547 |
}, |
| 1548 |
"keyframe-name": { |
| 1549 |
"begin": "\\s*(-?(?:[_a-z]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\s\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))*)?", |
| 1550 |
"beginCaptures": { |
| 1551 |
"1": { |
| 1552 |
"name": "variable.other.constant.animation-name.less" |
| 1553 |
} |
| 1554 |
}, |
| 1555 |
"end": "\\s*(?:(,)|(?=[{;]))", |
| 1556 |
"endCaptures": { |
| 1557 |
"1": { |
| 1558 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 1559 |
} |
| 1560 |
} |
| 1561 |
}, |
| 1562 |
"length-type": { |
| 1563 |
"captures": { |
| 1564 |
"1": { |
| 1565 |
"name": "keyword.other.unit.less" |
| 1566 |
} |
| 1567 |
}, |
| 1568 |
"match": "0|(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(em|ex|ch|rem|vw|vh|vmin|vmax|(c|m)?m|q|in|pt|pc|px|fr))\\b", |
| 1569 |
"name": "constant.numeric.less" |
| 1570 |
}, |
| 1571 |
"less-boolean-function": { |
| 1572 |
"begin": "\\b(boolean)(?=\\()", |
| 1573 |
"beginCaptures": { |
| 1574 |
"1": { |
| 1575 |
"name": "support.function.boolean.less" |
| 1576 |
} |
| 1577 |
}, |
| 1578 |
"end": "\\)", |
| 1579 |
"endCaptures": { |
| 1580 |
"0": { |
| 1581 |
"name": "punctuation.definition.group.end.less" |
| 1582 |
} |
| 1583 |
}, |
| 1584 |
"name": "meta.function-call.less", |
| 1585 |
"patterns": [ |
| 1586 |
{ |
| 1587 |
"begin": "\\(", |
| 1588 |
"beginCaptures": { |
| 1589 |
"0": { |
| 1590 |
"name": "punctuation.definition.group.begin.less" |
| 1591 |
} |
| 1592 |
}, |
| 1593 |
"end": "(?=\\))", |
| 1594 |
"patterns": [ |
| 1595 |
{ |
| 1596 |
"include": "#less-logical-comparisons" |
| 1597 |
} |
| 1598 |
] |
| 1599 |
} |
| 1600 |
] |
| 1601 |
}, |
| 1602 |
"less-color-blend-functions": { |
| 1603 |
"patterns": [ |
| 1604 |
{ |
| 1605 |
"begin": "\\b(multiply|screen|overlay|(soft|hard)light|difference|exclusion|negation|average)(?=\\()", |
| 1606 |
"beginCaptures": { |
| 1607 |
"1": { |
| 1608 |
"name": "support.function.color-blend.less" |
| 1609 |
} |
| 1610 |
}, |
| 1611 |
"end": "\\)", |
| 1612 |
"endCaptures": { |
| 1613 |
"0": { |
| 1614 |
"name": "punctuation.definition.group.end.less" |
| 1615 |
} |
| 1616 |
}, |
| 1617 |
"name": "meta.function-call.less", |
| 1618 |
"patterns": [ |
| 1619 |
{ |
| 1620 |
"begin": "\\(", |
| 1621 |
"beginCaptures": { |
| 1622 |
"0": { |
| 1623 |
"name": "punctuation.definition.group.begin.less" |
| 1624 |
} |
| 1625 |
}, |
| 1626 |
"end": "(?=\\))", |
| 1627 |
"patterns": [ |
| 1628 |
{ |
| 1629 |
"include": "#less-variables" |
| 1630 |
}, |
| 1631 |
{ |
| 1632 |
"include": "#comma-delimiter" |
| 1633 |
}, |
| 1634 |
{ |
| 1635 |
"include": "#color-values" |
| 1636 |
} |
| 1637 |
] |
| 1638 |
} |
| 1639 |
] |
| 1640 |
} |
| 1641 |
] |
| 1642 |
}, |
| 1643 |
"less-color-channel-functions": { |
| 1644 |
"patterns": [ |
| 1645 |
{ |
| 1646 |
"begin": "\\b(hue|saturation|lightness|hsv(hue|saturation|value)|red|green|blue|alpha|luma|luminance)(?=\\()", |
| 1647 |
"beginCaptures": { |
| 1648 |
"1": { |
| 1649 |
"name": "support.function.color-definition.less" |
| 1650 |
} |
| 1651 |
}, |
| 1652 |
"end": "\\)", |
| 1653 |
"endCaptures": { |
| 1654 |
"0": { |
| 1655 |
"name": "punctuation.definition.group.end.less" |
| 1656 |
} |
| 1657 |
}, |
| 1658 |
"name": "meta.function-call.less", |
| 1659 |
"patterns": [ |
| 1660 |
{ |
| 1661 |
"begin": "\\(", |
| 1662 |
"beginCaptures": { |
| 1663 |
"0": { |
| 1664 |
"name": "punctuation.definition.group.begin.less" |
| 1665 |
} |
| 1666 |
}, |
| 1667 |
"end": "(?=\\))", |
| 1668 |
"patterns": [ |
| 1669 |
{ |
| 1670 |
"include": "#color-values" |
| 1671 |
} |
| 1672 |
] |
| 1673 |
} |
| 1674 |
] |
| 1675 |
} |
| 1676 |
] |
| 1677 |
}, |
| 1678 |
"less-color-definition-functions": { |
| 1679 |
"patterns": [ |
| 1680 |
{ |
| 1681 |
"begin": "\\b(argb)(?=\\()", |
| 1682 |
"beginCaptures": { |
| 1683 |
"1": { |
| 1684 |
"name": "support.function.color-definition.less" |
| 1685 |
} |
| 1686 |
}, |
| 1687 |
"end": "\\)", |
| 1688 |
"endCaptures": { |
| 1689 |
"0": { |
| 1690 |
"name": "punctuation.definition.group.end.less" |
| 1691 |
} |
| 1692 |
}, |
| 1693 |
"name": "meta.function-call.less", |
| 1694 |
"patterns": [ |
| 1695 |
{ |
| 1696 |
"begin": "\\(", |
| 1697 |
"beginCaptures": { |
| 1698 |
"0": { |
| 1699 |
"name": "punctuation.definition.group.begin.less" |
| 1700 |
} |
| 1701 |
}, |
| 1702 |
"end": "(?=\\))", |
| 1703 |
"patterns": [ |
| 1704 |
{ |
| 1705 |
"include": "#less-variables" |
| 1706 |
}, |
| 1707 |
{ |
| 1708 |
"include": "#color-values" |
| 1709 |
} |
| 1710 |
] |
| 1711 |
} |
| 1712 |
] |
| 1713 |
} |
| 1714 |
] |
| 1715 |
}, |
| 1716 |
"less-color-functions": { |
| 1717 |
"patterns": [ |
| 1718 |
{ |
| 1719 |
"include": "#less-color-blend-functions" |
| 1720 |
}, |
| 1721 |
{ |
| 1722 |
"include": "#less-color-channel-functions" |
| 1723 |
}, |
| 1724 |
{ |
| 1725 |
"include": "#less-color-definition-functions" |
| 1726 |
}, |
| 1727 |
{ |
| 1728 |
"include": "#less-color-operation-functions" |
| 1729 |
} |
| 1730 |
] |
| 1731 |
}, |
| 1732 |
"less-color-operation-functions": { |
| 1733 |
"patterns": [ |
| 1734 |
{ |
| 1735 |
"begin": "\\b(fade|shade|tint)(?=\\()", |
| 1736 |
"beginCaptures": { |
| 1737 |
"1": { |
| 1738 |
"name": "support.function.color-operation.less" |
| 1739 |
} |
| 1740 |
}, |
| 1741 |
"end": "\\)", |
| 1742 |
"endCaptures": { |
| 1743 |
"0": { |
| 1744 |
"name": "punctuation.definition.group.end.less" |
| 1745 |
} |
| 1746 |
}, |
| 1747 |
"name": "meta.function-call.less", |
| 1748 |
"patterns": [ |
| 1749 |
{ |
| 1750 |
"begin": "\\(", |
| 1751 |
"beginCaptures": { |
| 1752 |
"0": { |
| 1753 |
"name": "punctuation.definition.group.begin.less" |
| 1754 |
} |
| 1755 |
}, |
| 1756 |
"end": "(?=\\))", |
| 1757 |
"patterns": [ |
| 1758 |
{ |
| 1759 |
"include": "#color-values" |
| 1760 |
}, |
| 1761 |
{ |
| 1762 |
"include": "#comma-delimiter" |
| 1763 |
}, |
| 1764 |
{ |
| 1765 |
"include": "#percentage-type" |
| 1766 |
} |
| 1767 |
] |
| 1768 |
} |
| 1769 |
] |
| 1770 |
}, |
| 1771 |
{ |
| 1772 |
"begin": "\\b(spin)(?=\\()", |
| 1773 |
"beginCaptures": { |
| 1774 |
"1": { |
| 1775 |
"name": "support.function.color-operation.less" |
| 1776 |
} |
| 1777 |
}, |
| 1778 |
"end": "\\)", |
| 1779 |
"endCaptures": { |
| 1780 |
"0": { |
| 1781 |
"name": "punctuation.definition.group.end.less" |
| 1782 |
} |
| 1783 |
}, |
| 1784 |
"name": "meta.function-call.less", |
| 1785 |
"patterns": [ |
| 1786 |
{ |
| 1787 |
"begin": "\\(", |
| 1788 |
"beginCaptures": { |
| 1789 |
"0": { |
| 1790 |
"name": "punctuation.definition.group.begin.less" |
| 1791 |
} |
| 1792 |
}, |
| 1793 |
"end": "(?=\\))", |
| 1794 |
"patterns": [ |
| 1795 |
{ |
| 1796 |
"include": "#color-values" |
| 1797 |
}, |
| 1798 |
{ |
| 1799 |
"include": "#comma-delimiter" |
| 1800 |
}, |
| 1801 |
{ |
| 1802 |
"include": "#number-type" |
| 1803 |
} |
| 1804 |
] |
| 1805 |
} |
| 1806 |
] |
| 1807 |
}, |
| 1808 |
{ |
| 1809 |
"begin": "\\b(((de)?saturate)|((light|dark)en)|(fade(in|out)))(?=\\()", |
| 1810 |
"beginCaptures": { |
| 1811 |
"1": { |
| 1812 |
"name": "support.function.color-operation.less" |
| 1813 |
} |
| 1814 |
}, |
| 1815 |
"end": "\\)", |
| 1816 |
"endCaptures": { |
| 1817 |
"0": { |
| 1818 |
"name": "punctuation.definition.group.end.less" |
| 1819 |
} |
| 1820 |
}, |
| 1821 |
"name": "meta.function-call.less", |
| 1822 |
"patterns": [ |
| 1823 |
{ |
| 1824 |
"begin": "\\(", |
| 1825 |
"beginCaptures": { |
| 1826 |
"0": { |
| 1827 |
"name": "punctuation.definition.group.begin.less" |
| 1828 |
} |
| 1829 |
}, |
| 1830 |
"end": "(?=\\))", |
| 1831 |
"patterns": [ |
| 1832 |
{ |
| 1833 |
"include": "#color-values" |
| 1834 |
}, |
| 1835 |
{ |
| 1836 |
"include": "#comma-delimiter" |
| 1837 |
}, |
| 1838 |
{ |
| 1839 |
"include": "#percentage-type" |
| 1840 |
}, |
| 1841 |
{ |
| 1842 |
"match": "\\brelative\\b", |
| 1843 |
"name": "constant.language.relative.less" |
| 1844 |
} |
| 1845 |
] |
| 1846 |
} |
| 1847 |
] |
| 1848 |
}, |
| 1849 |
{ |
| 1850 |
"begin": "\\b(contrast)(?=\\()", |
| 1851 |
"beginCaptures": { |
| 1852 |
"1": { |
| 1853 |
"name": "support.function.color-operation.less" |
| 1854 |
} |
| 1855 |
}, |
| 1856 |
"end": "\\)", |
| 1857 |
"endCaptures": { |
| 1858 |
"0": { |
| 1859 |
"name": "punctuation.definition.group.end.less" |
| 1860 |
} |
| 1861 |
}, |
| 1862 |
"name": "meta.function-call.less", |
| 1863 |
"patterns": [ |
| 1864 |
{ |
| 1865 |
"begin": "\\(", |
| 1866 |
"beginCaptures": { |
| 1867 |
"0": { |
| 1868 |
"name": "punctuation.definition.group.begin.less" |
| 1869 |
} |
| 1870 |
}, |
| 1871 |
"end": "(?=\\))", |
| 1872 |
"patterns": [ |
| 1873 |
{ |
| 1874 |
"include": "#color-values" |
| 1875 |
}, |
| 1876 |
{ |
| 1877 |
"include": "#comma-delimiter" |
| 1878 |
}, |
| 1879 |
{ |
| 1880 |
"include": "#percentage-type" |
| 1881 |
} |
| 1882 |
] |
| 1883 |
} |
| 1884 |
] |
| 1885 |
}, |
| 1886 |
{ |
| 1887 |
"begin": "\\b(greyscale)(?=\\()", |
| 1888 |
"beginCaptures": { |
| 1889 |
"1": { |
| 1890 |
"name": "support.function.color-operation.less" |
| 1891 |
} |
| 1892 |
}, |
| 1893 |
"end": "\\)", |
| 1894 |
"endCaptures": { |
| 1895 |
"0": { |
| 1896 |
"name": "punctuation.definition.group.end.less" |
| 1897 |
} |
| 1898 |
}, |
| 1899 |
"name": "meta.function-call.less", |
| 1900 |
"patterns": [ |
| 1901 |
{ |
| 1902 |
"begin": "\\(", |
| 1903 |
"beginCaptures": { |
| 1904 |
"0": { |
| 1905 |
"name": "punctuation.definition.group.begin.less" |
| 1906 |
} |
| 1907 |
}, |
| 1908 |
"end": "(?=\\))", |
| 1909 |
"patterns": [ |
| 1910 |
{ |
| 1911 |
"include": "#color-values" |
| 1912 |
} |
| 1913 |
] |
| 1914 |
} |
| 1915 |
] |
| 1916 |
}, |
| 1917 |
{ |
| 1918 |
"begin": "\\b(mix)(?=\\()", |
| 1919 |
"beginCaptures": { |
| 1920 |
"1": { |
| 1921 |
"name": "support.function.color-operation.less" |
| 1922 |
} |
| 1923 |
}, |
| 1924 |
"end": "\\)", |
| 1925 |
"endCaptures": { |
| 1926 |
"0": { |
| 1927 |
"name": "punctuation.definition.group.end.less" |
| 1928 |
} |
| 1929 |
}, |
| 1930 |
"name": "meta.function-call.less", |
| 1931 |
"patterns": [ |
| 1932 |
{ |
| 1933 |
"begin": "\\(", |
| 1934 |
"beginCaptures": { |
| 1935 |
"0": { |
| 1936 |
"name": "punctuation.definition.group.begin.less" |
| 1937 |
} |
| 1938 |
}, |
| 1939 |
"end": "(?=\\))", |
| 1940 |
"patterns": [ |
| 1941 |
{ |
| 1942 |
"include": "#color-values" |
| 1943 |
}, |
| 1944 |
{ |
| 1945 |
"include": "#comma-delimiter" |
| 1946 |
}, |
| 1947 |
{ |
| 1948 |
"include": "#less-math" |
| 1949 |
}, |
| 1950 |
{ |
| 1951 |
"include": "#percentage-type" |
| 1952 |
} |
| 1953 |
] |
| 1954 |
} |
| 1955 |
] |
| 1956 |
} |
| 1957 |
] |
| 1958 |
}, |
| 1959 |
"less-extend": { |
| 1960 |
"begin": "(:)(extend)(?=\\()", |
| 1961 |
"beginCaptures": { |
| 1962 |
"1": { |
| 1963 |
"name": "punctuation.definition.entity.less" |
| 1964 |
}, |
| 1965 |
"2": { |
| 1966 |
"name": "entity.other.attribute-name.pseudo-class.extend.less" |
| 1967 |
} |
| 1968 |
}, |
| 1969 |
"end": "\\)", |
| 1970 |
"endCaptures": { |
| 1971 |
"0": { |
| 1972 |
"name": "punctuation.definition.group.end.less" |
| 1973 |
} |
| 1974 |
}, |
| 1975 |
"name": "meta.function-call.less", |
| 1976 |
"patterns": [ |
| 1977 |
{ |
| 1978 |
"begin": "\\(", |
| 1979 |
"beginCaptures": { |
| 1980 |
"0": { |
| 1981 |
"name": "punctuation.definition.group.begin.less" |
| 1982 |
} |
| 1983 |
}, |
| 1984 |
"end": "(?=\\))", |
| 1985 |
"patterns": [ |
| 1986 |
{ |
| 1987 |
"match": "\\ball\\b", |
| 1988 |
"name": "constant.language.all.less" |
| 1989 |
}, |
| 1990 |
{ |
| 1991 |
"include": "#selectors" |
| 1992 |
} |
| 1993 |
] |
| 1994 |
} |
| 1995 |
] |
| 1996 |
}, |
| 1997 |
"less-functions": { |
| 1998 |
"patterns": [ |
| 1999 |
{ |
| 2000 |
"include": "#less-boolean-function" |
| 2001 |
}, |
| 2002 |
{ |
| 2003 |
"include": "#less-color-functions" |
| 2004 |
}, |
| 2005 |
{ |
| 2006 |
"include": "#less-if-function" |
| 2007 |
}, |
| 2008 |
{ |
| 2009 |
"include": "#less-list-functions" |
| 2010 |
}, |
| 2011 |
{ |
| 2012 |
"include": "#less-math-functions" |
| 2013 |
}, |
| 2014 |
{ |
| 2015 |
"include": "#less-misc-functions" |
| 2016 |
}, |
| 2017 |
{ |
| 2018 |
"include": "#less-string-functions" |
| 2019 |
}, |
| 2020 |
{ |
| 2021 |
"include": "#less-type-functions" |
| 2022 |
} |
| 2023 |
] |
| 2024 |
}, |
| 2025 |
"less-if-function": { |
| 2026 |
"begin": "\\b(if)(?=\\()", |
| 2027 |
"beginCaptures": { |
| 2028 |
"1": { |
| 2029 |
"name": "support.function.if.less" |
| 2030 |
} |
| 2031 |
}, |
| 2032 |
"end": "\\)", |
| 2033 |
"endCaptures": { |
| 2034 |
"0": { |
| 2035 |
"name": "punctuation.definition.group.end.less" |
| 2036 |
} |
| 2037 |
}, |
| 2038 |
"name": "meta.function-call.less", |
| 2039 |
"patterns": [ |
| 2040 |
{ |
| 2041 |
"begin": "\\(", |
| 2042 |
"beginCaptures": { |
| 2043 |
"0": { |
| 2044 |
"name": "punctuation.definition.group.begin.less" |
| 2045 |
} |
| 2046 |
}, |
| 2047 |
"end": "(?=\\))", |
| 2048 |
"patterns": [ |
| 2049 |
{ |
| 2050 |
"include": "#less-mixin-guards" |
| 2051 |
}, |
| 2052 |
{ |
| 2053 |
"include": "#comma-delimiter" |
| 2054 |
}, |
| 2055 |
{ |
| 2056 |
"include": "#property-values" |
| 2057 |
} |
| 2058 |
] |
| 2059 |
} |
| 2060 |
] |
| 2061 |
}, |
| 2062 |
"less-list-functions": { |
| 2063 |
"patterns": [ |
| 2064 |
{ |
| 2065 |
"begin": "\\b(length)(?=\\()\\b", |
| 2066 |
"beginCaptures": { |
| 2067 |
"1": { |
| 2068 |
"name": "support.function.length.less" |
| 2069 |
} |
| 2070 |
}, |
| 2071 |
"end": "\\)", |
| 2072 |
"endCaptures": { |
| 2073 |
"0": { |
| 2074 |
"name": "punctuation.definition.group.end.less" |
| 2075 |
} |
| 2076 |
}, |
| 2077 |
"name": "meta.function-call.less", |
| 2078 |
"patterns": [ |
| 2079 |
{ |
| 2080 |
"begin": "\\(", |
| 2081 |
"beginCaptures": { |
| 2082 |
"0": { |
| 2083 |
"name": "punctuation.definition.group.begin.less" |
| 2084 |
} |
| 2085 |
}, |
| 2086 |
"end": "(?=\\))", |
| 2087 |
"patterns": [ |
| 2088 |
{ |
| 2089 |
"include": "#property-values" |
| 2090 |
}, |
| 2091 |
{ |
| 2092 |
"include": "#comma-delimiter" |
| 2093 |
} |
| 2094 |
] |
| 2095 |
} |
| 2096 |
] |
| 2097 |
}, |
| 2098 |
{ |
| 2099 |
"begin": "\\b(extract)(?=\\()\\b", |
| 2100 |
"beginCaptures": { |
| 2101 |
"1": { |
| 2102 |
"name": "support.function.extract.less" |
| 2103 |
} |
| 2104 |
}, |
| 2105 |
"end": "\\)", |
| 2106 |
"endCaptures": { |
| 2107 |
"0": { |
| 2108 |
"name": "punctuation.definition.group.end.less" |
| 2109 |
} |
| 2110 |
}, |
| 2111 |
"name": "meta.function-call.less", |
| 2112 |
"patterns": [ |
| 2113 |
{ |
| 2114 |
"begin": "\\(", |
| 2115 |
"beginCaptures": { |
| 2116 |
"0": { |
| 2117 |
"name": "punctuation.definition.group.begin.less" |
| 2118 |
} |
| 2119 |
}, |
| 2120 |
"end": "(?=\\))", |
| 2121 |
"patterns": [ |
| 2122 |
{ |
| 2123 |
"include": "#property-values" |
| 2124 |
}, |
| 2125 |
{ |
| 2126 |
"include": "#comma-delimiter" |
| 2127 |
}, |
| 2128 |
{ |
| 2129 |
"include": "#integer-type" |
| 2130 |
} |
| 2131 |
] |
| 2132 |
} |
| 2133 |
] |
| 2134 |
}, |
| 2135 |
{ |
| 2136 |
"begin": "\\b(range)(?=\\()\\b", |
| 2137 |
"beginCaptures": { |
| 2138 |
"1": { |
| 2139 |
"name": "support.function.range.less" |
| 2140 |
} |
| 2141 |
}, |
| 2142 |
"end": "\\)", |
| 2143 |
"endCaptures": { |
| 2144 |
"0": { |
| 2145 |
"name": "punctuation.definition.group.end.less" |
| 2146 |
} |
| 2147 |
}, |
| 2148 |
"name": "meta.function-call.less", |
| 2149 |
"patterns": [ |
| 2150 |
{ |
| 2151 |
"begin": "\\(", |
| 2152 |
"beginCaptures": { |
| 2153 |
"0": { |
| 2154 |
"name": "punctuation.definition.group.begin.less" |
| 2155 |
} |
| 2156 |
}, |
| 2157 |
"end": "(?=\\))", |
| 2158 |
"patterns": [ |
| 2159 |
{ |
| 2160 |
"include": "#property-values" |
| 2161 |
}, |
| 2162 |
{ |
| 2163 |
"include": "#comma-delimiter" |
| 2164 |
}, |
| 2165 |
{ |
| 2166 |
"include": "#integer-type" |
| 2167 |
} |
| 2168 |
] |
| 2169 |
} |
| 2170 |
] |
| 2171 |
} |
| 2172 |
] |
| 2173 |
}, |
| 2174 |
"less-logical-comparisons": { |
| 2175 |
"patterns": [ |
| 2176 |
{ |
| 2177 |
"captures": { |
| 2178 |
"1": { |
| 2179 |
"name": "keyword.operator.logical.less" |
| 2180 |
} |
| 2181 |
}, |
| 2182 |
"match": "\\s*(=|((<|>)=?))\\s*" |
| 2183 |
}, |
| 2184 |
{ |
| 2185 |
"begin": "\\(", |
| 2186 |
"beginCaptures": { |
| 2187 |
"0": { |
| 2188 |
"name": "punctuation.definition.group.begin.less" |
| 2189 |
} |
| 2190 |
}, |
| 2191 |
"end": "\\)", |
| 2192 |
"endCaptures": { |
| 2193 |
"0": { |
| 2194 |
"name": "punctuation.definition.group.end.less" |
| 2195 |
} |
| 2196 |
}, |
| 2197 |
"name": "meta.group.less", |
| 2198 |
"patterns": [ |
| 2199 |
{ |
| 2200 |
"include": "#less-logical-comparisons" |
| 2201 |
} |
| 2202 |
] |
| 2203 |
}, |
| 2204 |
{ |
| 2205 |
"match": "\\btrue|false\\b", |
| 2206 |
"name": "constant.language.less" |
| 2207 |
}, |
| 2208 |
{ |
| 2209 |
"match": ",", |
| 2210 |
"name": "punctuation.separator.less" |
| 2211 |
}, |
| 2212 |
{ |
| 2213 |
"include": "#property-values" |
| 2214 |
}, |
| 2215 |
{ |
| 2216 |
"include": "#selectors" |
| 2217 |
}, |
| 2218 |
{ |
| 2219 |
"include": "#unquoted-string" |
| 2220 |
} |
| 2221 |
] |
| 2222 |
}, |
| 2223 |
"less-math": { |
| 2224 |
"patterns": [ |
| 2225 |
{ |
| 2226 |
"match": "[-\\+\\*\\/]", |
| 2227 |
"name": "keyword.operator.arithmetic.less" |
| 2228 |
}, |
| 2229 |
{ |
| 2230 |
"begin": "\\(", |
| 2231 |
"beginCaptures": { |
| 2232 |
"0": { |
| 2233 |
"name": "punctuation.definition.group.begin.less" |
| 2234 |
} |
| 2235 |
}, |
| 2236 |
"end": "\\)", |
| 2237 |
"endCaptures": { |
| 2238 |
"0": { |
| 2239 |
"name": "punctuation.definition.group.end.less" |
| 2240 |
} |
| 2241 |
}, |
| 2242 |
"name": "meta.group.less", |
| 2243 |
"patterns": [ |
| 2244 |
{ |
| 2245 |
"include": "#less-math" |
| 2246 |
} |
| 2247 |
] |
| 2248 |
}, |
| 2249 |
{ |
| 2250 |
"include": "#numeric-values" |
| 2251 |
}, |
| 2252 |
{ |
| 2253 |
"include": "#less-variables" |
| 2254 |
} |
| 2255 |
] |
| 2256 |
}, |
| 2257 |
"less-math-functions": { |
| 2258 |
"patterns": [ |
| 2259 |
{ |
| 2260 |
"begin": "\\b(ceil|floor|percentage|round|sqrt|abs|a?(sin|cos|tan))(?=\\()", |
| 2261 |
"beginCaptures": { |
| 2262 |
"1": { |
| 2263 |
"name": "support.function.math.less" |
| 2264 |
} |
| 2265 |
}, |
| 2266 |
"end": "\\)", |
| 2267 |
"endCaptures": { |
| 2268 |
"0": { |
| 2269 |
"name": "punctuation.definition.group.end.less" |
| 2270 |
} |
| 2271 |
}, |
| 2272 |
"name": "meta.function-call.less", |
| 2273 |
"patterns": [ |
| 2274 |
{ |
| 2275 |
"begin": "\\(", |
| 2276 |
"beginCaptures": { |
| 2277 |
"0": { |
| 2278 |
"name": "punctuation.definition.group.begin.less" |
| 2279 |
} |
| 2280 |
}, |
| 2281 |
"end": "(?=\\))", |
| 2282 |
"patterns": [ |
| 2283 |
{ |
| 2284 |
"include": "#less-variables" |
| 2285 |
}, |
| 2286 |
{ |
| 2287 |
"include": "#numeric-values" |
| 2288 |
} |
| 2289 |
] |
| 2290 |
} |
| 2291 |
] |
| 2292 |
}, |
| 2293 |
{ |
| 2294 |
"captures": { |
| 2295 |
"2": { |
| 2296 |
"name": "support.function.math.less" |
| 2297 |
}, |
| 2298 |
"3": { |
| 2299 |
"name": "punctuation.definition.group.begin.less" |
| 2300 |
}, |
| 2301 |
"4": { |
| 2302 |
"name": "punctuation.definition.group.end.less" |
| 2303 |
} |
| 2304 |
}, |
| 2305 |
"match": "((pi)(\\()(\\)))", |
| 2306 |
"name": "meta.function-call.less" |
| 2307 |
}, |
| 2308 |
{ |
| 2309 |
"begin": "\\b(pow|m(od|in|ax))(?=\\()", |
| 2310 |
"beginCaptures": { |
| 2311 |
"1": { |
| 2312 |
"name": "support.function.math.less" |
| 2313 |
} |
| 2314 |
}, |
| 2315 |
"end": "\\)", |
| 2316 |
"endCaptures": { |
| 2317 |
"0": { |
| 2318 |
"name": "punctuation.definition.group.end.less" |
| 2319 |
} |
| 2320 |
}, |
| 2321 |
"name": "meta.function-call.less", |
| 2322 |
"patterns": [ |
| 2323 |
{ |
| 2324 |
"begin": "\\(", |
| 2325 |
"beginCaptures": { |
| 2326 |
"0": { |
| 2327 |
"name": "punctuation.definition.group.begin.less" |
| 2328 |
} |
| 2329 |
}, |
| 2330 |
"end": "(?=\\))", |
| 2331 |
"patterns": [ |
| 2332 |
{ |
| 2333 |
"include": "#less-variables" |
| 2334 |
}, |
| 2335 |
{ |
| 2336 |
"include": "#numeric-values" |
| 2337 |
}, |
| 2338 |
{ |
| 2339 |
"include": "#comma-delimiter" |
| 2340 |
} |
| 2341 |
] |
| 2342 |
} |
| 2343 |
] |
| 2344 |
} |
| 2345 |
] |
| 2346 |
}, |
| 2347 |
"less-misc-functions": { |
| 2348 |
"patterns": [ |
| 2349 |
{ |
| 2350 |
"begin": "\\b(color)(?=\\()", |
| 2351 |
"beginCaptures": { |
| 2352 |
"1": { |
| 2353 |
"name": "support.function.color.less" |
| 2354 |
} |
| 2355 |
}, |
| 2356 |
"end": "\\)", |
| 2357 |
"endCaptures": { |
| 2358 |
"0": { |
| 2359 |
"name": "punctuation.definition.group.end.less" |
| 2360 |
} |
| 2361 |
}, |
| 2362 |
"name": "meta.function-call.less", |
| 2363 |
"patterns": [ |
| 2364 |
{ |
| 2365 |
"begin": "\\(", |
| 2366 |
"beginCaptures": { |
| 2367 |
"0": { |
| 2368 |
"name": "punctuation.definition.group.begin.less" |
| 2369 |
} |
| 2370 |
}, |
| 2371 |
"end": "(?=\\))", |
| 2372 |
"patterns": [ |
| 2373 |
{ |
| 2374 |
"include": "#literal-string" |
| 2375 |
} |
| 2376 |
] |
| 2377 |
} |
| 2378 |
] |
| 2379 |
}, |
| 2380 |
{ |
| 2381 |
"begin": "\\b(image-(size|width|height))(?=\\()", |
| 2382 |
"beginCaptures": { |
| 2383 |
"1": { |
| 2384 |
"name": "support.function.image.less" |
| 2385 |
} |
| 2386 |
}, |
| 2387 |
"end": "\\)", |
| 2388 |
"endCaptures": { |
| 2389 |
"0": { |
| 2390 |
"name": "punctuation.definition.group.end.less" |
| 2391 |
} |
| 2392 |
}, |
| 2393 |
"name": "meta.function-call.less", |
| 2394 |
"patterns": [ |
| 2395 |
{ |
| 2396 |
"begin": "\\(", |
| 2397 |
"beginCaptures": { |
| 2398 |
"0": { |
| 2399 |
"name": "punctuation.definition.group.begin.less" |
| 2400 |
} |
| 2401 |
}, |
| 2402 |
"end": "(?=\\))", |
| 2403 |
"patterns": [ |
| 2404 |
{ |
| 2405 |
"include": "#literal-string" |
| 2406 |
}, |
| 2407 |
{ |
| 2408 |
"include": "#unquoted-string" |
| 2409 |
} |
| 2410 |
] |
| 2411 |
} |
| 2412 |
] |
| 2413 |
}, |
| 2414 |
{ |
| 2415 |
"begin": "\\b(convert|unit)(?=\\()", |
| 2416 |
"beginCaptures": { |
| 2417 |
"1": { |
| 2418 |
"name": "support.function.convert.less" |
| 2419 |
} |
| 2420 |
}, |
| 2421 |
"end": "\\)", |
| 2422 |
"endCaptures": { |
| 2423 |
"0": { |
| 2424 |
"name": "punctuation.definition.group.end.less" |
| 2425 |
} |
| 2426 |
}, |
| 2427 |
"name": "meta.function-call.less", |
| 2428 |
"patterns": [ |
| 2429 |
{ |
| 2430 |
"begin": "\\(", |
| 2431 |
"beginCaptures": { |
| 2432 |
"0": { |
| 2433 |
"name": "punctuation.definition.group.begin.less" |
| 2434 |
} |
| 2435 |
}, |
| 2436 |
"end": "(?=\\))", |
| 2437 |
"patterns": [ |
| 2438 |
{ |
| 2439 |
"include": "#less-variables" |
| 2440 |
}, |
| 2441 |
{ |
| 2442 |
"include": "#dimensions" |
| 2443 |
}, |
| 2444 |
{ |
| 2445 |
"include": "#numeric-values" |
| 2446 |
}, |
| 2447 |
{ |
| 2448 |
"include": "#literal-string" |
| 2449 |
}, |
| 2450 |
{ |
| 2451 |
"include": "#comma-delimiter" |
| 2452 |
}, |
| 2453 |
{ |
| 2454 |
"match": "((c|m)?m|in|p(t|c|x)|m?s|g?rad|deg|turn|%|r?em|ex|ch)", |
| 2455 |
"name": "keyword.other.unit.less" |
| 2456 |
} |
| 2457 |
] |
| 2458 |
} |
| 2459 |
] |
| 2460 |
}, |
| 2461 |
{ |
| 2462 |
"begin": "\\b(data-uri)(?=\\()", |
| 2463 |
"beginCaptures": { |
| 2464 |
"1": { |
| 2465 |
"name": "support.function.data-uri.less" |
| 2466 |
} |
| 2467 |
}, |
| 2468 |
"end": "\\)", |
| 2469 |
"endCaptures": { |
| 2470 |
"0": { |
| 2471 |
"name": "punctuation.definition.group.end.less" |
| 2472 |
} |
| 2473 |
}, |
| 2474 |
"name": "meta.function-call.less", |
| 2475 |
"patterns": [ |
| 2476 |
{ |
| 2477 |
"begin": "\\(", |
| 2478 |
"beginCaptures": { |
| 2479 |
"0": { |
| 2480 |
"name": "punctuation.definition.group.begin.less" |
| 2481 |
} |
| 2482 |
}, |
| 2483 |
"end": "(?=\\))", |
| 2484 |
"patterns": [ |
| 2485 |
{ |
| 2486 |
"include": "#less-variables" |
| 2487 |
}, |
| 2488 |
{ |
| 2489 |
"include": "#literal-string" |
| 2490 |
}, |
| 2491 |
{ |
| 2492 |
"captures": { |
| 2493 |
"1": { |
| 2494 |
"name": "punctuation.separator.less" |
| 2495 |
} |
| 2496 |
}, |
| 2497 |
"match": "\\s*(?:(,))" |
| 2498 |
} |
| 2499 |
] |
| 2500 |
} |
| 2501 |
] |
| 2502 |
}, |
| 2503 |
{ |
| 2504 |
"captures": { |
| 2505 |
"2": { |
| 2506 |
"name": "punctuation.definition.group.begin.less" |
| 2507 |
}, |
| 2508 |
"3": { |
| 2509 |
"name": "punctuation.definition.group.end.less" |
| 2510 |
} |
| 2511 |
}, |
| 2512 |
"match": "\\b(default(\\()(\\)))\\b", |
| 2513 |
"name": "support.function.default.less" |
| 2514 |
}, |
| 2515 |
{ |
| 2516 |
"begin": "\\b(get-unit)(?=\\()", |
| 2517 |
"beginCaptures": { |
| 2518 |
"1": { |
| 2519 |
"name": "support.function.get-unit.less" |
| 2520 |
} |
| 2521 |
}, |
| 2522 |
"end": "\\)", |
| 2523 |
"endCaptures": { |
| 2524 |
"0": { |
| 2525 |
"name": "punctuation.definition.group.end.less" |
| 2526 |
} |
| 2527 |
}, |
| 2528 |
"name": "meta.function-call.less", |
| 2529 |
"patterns": [ |
| 2530 |
{ |
| 2531 |
"begin": "\\(", |
| 2532 |
"beginCaptures": { |
| 2533 |
"0": { |
| 2534 |
"name": "punctuation.definition.group.begin.less" |
| 2535 |
} |
| 2536 |
}, |
| 2537 |
"end": "(?=\\))", |
| 2538 |
"patterns": [ |
| 2539 |
{ |
| 2540 |
"include": "#dimensions" |
| 2541 |
} |
| 2542 |
] |
| 2543 |
} |
| 2544 |
] |
| 2545 |
}, |
| 2546 |
{ |
| 2547 |
"begin": "\\b(svg-gradient)(?=\\()", |
| 2548 |
"beginCaptures": { |
| 2549 |
"1": { |
| 2550 |
"name": "support.function.svg-gradient.less" |
| 2551 |
} |
| 2552 |
}, |
| 2553 |
"end": "\\)", |
| 2554 |
"endCaptures": { |
| 2555 |
"0": { |
| 2556 |
"name": "punctuation.definition.group.end.less" |
| 2557 |
} |
| 2558 |
}, |
| 2559 |
"name": "meta.function-call.less", |
| 2560 |
"patterns": [ |
| 2561 |
{ |
| 2562 |
"begin": "\\(", |
| 2563 |
"beginCaptures": { |
| 2564 |
"0": { |
| 2565 |
"name": "punctuation.definition.group.begin.less" |
| 2566 |
} |
| 2567 |
}, |
| 2568 |
"end": "(?=\\))", |
| 2569 |
"patterns": [ |
| 2570 |
{ |
| 2571 |
"include": "#angle-type" |
| 2572 |
}, |
| 2573 |
{ |
| 2574 |
"include": "#comma-delimiter" |
| 2575 |
}, |
| 2576 |
{ |
| 2577 |
"include": "#color-values" |
| 2578 |
}, |
| 2579 |
{ |
| 2580 |
"include": "#percentage-type" |
| 2581 |
}, |
| 2582 |
{ |
| 2583 |
"include": "#length-type" |
| 2584 |
}, |
| 2585 |
{ |
| 2586 |
"match": "\\bto\\b", |
| 2587 |
"name": "keyword.other.less" |
| 2588 |
}, |
| 2589 |
{ |
| 2590 |
"match": "\\b(top|right|bottom|left|center)\\b", |
| 2591 |
"name": "support.constant.property-value.less" |
| 2592 |
}, |
| 2593 |
{ |
| 2594 |
"match": "\\b(at|circle|ellipse)\\b", |
| 2595 |
"name": "keyword.other.less" |
| 2596 |
} |
| 2597 |
] |
| 2598 |
} |
| 2599 |
] |
| 2600 |
} |
| 2601 |
] |
| 2602 |
}, |
| 2603 |
"less-mixin-guards": { |
| 2604 |
"patterns": [ |
| 2605 |
{ |
| 2606 |
"begin": "\\s*(and|not|or)?\\s*(?=\\()", |
| 2607 |
"beginCaptures": { |
| 2608 |
"1": { |
| 2609 |
"name": "keyword.operator.logical.less" |
| 2610 |
} |
| 2611 |
}, |
| 2612 |
"end": "\\)", |
| 2613 |
"endCaptures": { |
| 2614 |
"0": { |
| 2615 |
"name": "punctuation.definition.group.end.less" |
| 2616 |
} |
| 2617 |
}, |
| 2618 |
"patterns": [ |
| 2619 |
{ |
| 2620 |
"begin": "\\(", |
| 2621 |
"beginCaptures": { |
| 2622 |
"0": { |
| 2623 |
"name": "punctuation.definition.group.begin.less" |
| 2624 |
} |
| 2625 |
}, |
| 2626 |
"end": "(?=\\))", |
| 2627 |
"name": "meta.group.less", |
| 2628 |
"patterns": [ |
| 2629 |
{ |
| 2630 |
"include": "#less-variable-comparison" |
| 2631 |
}, |
| 2632 |
{ |
| 2633 |
"captures": { |
| 2634 |
"1": { |
| 2635 |
"name": "meta.group.less" |
| 2636 |
}, |
| 2637 |
"2": { |
| 2638 |
"name": "punctuation.definition.group.begin.less" |
| 2639 |
}, |
| 2640 |
"3": { |
| 2641 |
"name": "punctuation.definition.group.end.less" |
| 2642 |
} |
| 2643 |
}, |
| 2644 |
"match": "default((\\()(\\)))", |
| 2645 |
"name": "support.function.default.less" |
| 2646 |
}, |
| 2647 |
{ |
| 2648 |
"include": "#property-values" |
| 2649 |
}, |
| 2650 |
{ |
| 2651 |
"include": "#less-logical-comparisons" |
| 2652 |
}, |
| 2653 |
{ |
| 2654 |
"include": "$self" |
| 2655 |
} |
| 2656 |
] |
| 2657 |
} |
| 2658 |
] |
| 2659 |
} |
| 2660 |
] |
| 2661 |
}, |
| 2662 |
"less-namespace-accessors": { |
| 2663 |
"patterns": [ |
| 2664 |
{ |
| 2665 |
"begin": "(?=\\s*when\\b)", |
| 2666 |
"end": "\\s*(?:(,)|(?=[{;]))", |
| 2667 |
"endCaptures": { |
| 2668 |
"1": { |
| 2669 |
"name": "punctuation.definition.block.end.less" |
| 2670 |
} |
| 2671 |
}, |
| 2672 |
"name": "meta.conditional.guarded-namespace.less", |
| 2673 |
"patterns": [ |
| 2674 |
{ |
| 2675 |
"captures": { |
| 2676 |
"1": { |
| 2677 |
"name": "keyword.control.conditional.less" |
| 2678 |
}, |
| 2679 |
"2": { |
| 2680 |
"name": "punctuation.definition.keyword.less" |
| 2681 |
} |
| 2682 |
}, |
| 2683 |
"match": "\\s*(when)(?=.*?)" |
| 2684 |
}, |
| 2685 |
{ |
| 2686 |
"include": "#less-mixin-guards" |
| 2687 |
}, |
| 2688 |
{ |
| 2689 |
"include": "#comma-delimiter" |
| 2690 |
}, |
| 2691 |
{ |
| 2692 |
"begin": "\\s*(\\{)", |
| 2693 |
"beginCaptures": { |
| 2694 |
"1": { |
| 2695 |
"name": "punctuation.section.property-list.begin.less" |
| 2696 |
} |
| 2697 |
}, |
| 2698 |
"end": "(?=\\})", |
| 2699 |
"name": "meta.block.less", |
| 2700 |
"patterns": [ |
| 2701 |
{ |
| 2702 |
"include": "#rule-list-body" |
| 2703 |
} |
| 2704 |
] |
| 2705 |
}, |
| 2706 |
{ |
| 2707 |
"include": "#selectors" |
| 2708 |
} |
| 2709 |
] |
| 2710 |
}, |
| 2711 |
{ |
| 2712 |
"begin": "(\\()", |
| 2713 |
"beginCaptures": { |
| 2714 |
"1": { |
| 2715 |
"name": "punctuation.definition.group.begin.less" |
| 2716 |
} |
| 2717 |
}, |
| 2718 |
"end": "(\\))", |
| 2719 |
"endCaptures": { |
| 2720 |
"1": { |
| 2721 |
"name": "punctuation.definition.group.end.less" |
| 2722 |
}, |
| 2723 |
"2": { |
| 2724 |
"name": "punctuation.terminator.rule.less" |
| 2725 |
} |
| 2726 |
}, |
| 2727 |
"name": "meta.group.less", |
| 2728 |
"patterns": [ |
| 2729 |
{ |
| 2730 |
"include": "#less-variable-assignment" |
| 2731 |
}, |
| 2732 |
{ |
| 2733 |
"include": "#comma-delimiter" |
| 2734 |
}, |
| 2735 |
{ |
| 2736 |
"captures": { |
| 2737 |
"1": { |
| 2738 |
"name": "punctuation.terminator.rule.less" |
| 2739 |
} |
| 2740 |
}, |
| 2741 |
"match": "\\s*(;)|(?=[})])" |
| 2742 |
}, |
| 2743 |
{ |
| 2744 |
"include": "#property-values" |
| 2745 |
}, |
| 2746 |
{ |
| 2747 |
"include": "#rule-list-body" |
| 2748 |
} |
| 2749 |
] |
| 2750 |
} |
| 2751 |
] |
| 2752 |
}, |
| 2753 |
"less-number-units": { |
| 2754 |
"patterns": [ |
| 2755 |
{ |
| 2756 |
"match": "\\b((c|m)?m|in|p(t|c)|m?s|g?rad|deg|turn)\\b", |
| 2757 |
"name": "keyword.other.unit.less" |
| 2758 |
}, |
| 2759 |
{ |
| 2760 |
"match": "\\b(r?em|ex|ch|vw|vh|vmin|vmax|cm|mm|q|in|pt|pc|px|fr|s|ms|Hz|kHz|dpi|dpcm|dppx|deg|grad|rad|turn)\\b" |
| 2761 |
} |
| 2762 |
] |
| 2763 |
}, |
| 2764 |
"less-string-functions": { |
| 2765 |
"patterns": [ |
| 2766 |
{ |
| 2767 |
"begin": "\\b(e(scape)?)(?=\\()\\b", |
| 2768 |
"beginCaptures": { |
| 2769 |
"1": { |
| 2770 |
"name": "support.function.escape.less" |
| 2771 |
} |
| 2772 |
}, |
| 2773 |
"end": "\\)", |
| 2774 |
"endCaptures": { |
| 2775 |
"0": { |
| 2776 |
"name": "punctuation.definition.group.end.less" |
| 2777 |
} |
| 2778 |
}, |
| 2779 |
"name": "meta.function-call.less", |
| 2780 |
"patterns": [ |
| 2781 |
{ |
| 2782 |
"begin": "\\(", |
| 2783 |
"beginCaptures": { |
| 2784 |
"0": { |
| 2785 |
"name": "punctuation.definition.group.begin.less" |
| 2786 |
} |
| 2787 |
}, |
| 2788 |
"end": "(?=\\))", |
| 2789 |
"patterns": [ |
| 2790 |
{ |
| 2791 |
"include": "#less-variables" |
| 2792 |
}, |
| 2793 |
{ |
| 2794 |
"include": "#comma-delimiter" |
| 2795 |
}, |
| 2796 |
{ |
| 2797 |
"include": "#literal-string" |
| 2798 |
}, |
| 2799 |
{ |
| 2800 |
"include": "#unquoted-string" |
| 2801 |
} |
| 2802 |
] |
| 2803 |
} |
| 2804 |
] |
| 2805 |
}, |
| 2806 |
{ |
| 2807 |
"begin": "\\s*(%)(?=\\()\\s*", |
| 2808 |
"beginCaptures": { |
| 2809 |
"1": { |
| 2810 |
"name": "support.function.format.less" |
| 2811 |
} |
| 2812 |
}, |
| 2813 |
"end": "\\)", |
| 2814 |
"endCaptures": { |
| 2815 |
"0": { |
| 2816 |
"name": "punctuation.definition.group.end.less" |
| 2817 |
} |
| 2818 |
}, |
| 2819 |
"name": "meta.function-call.less", |
| 2820 |
"patterns": [ |
| 2821 |
{ |
| 2822 |
"begin": "\\(", |
| 2823 |
"beginCaptures": { |
| 2824 |
"0": { |
| 2825 |
"name": "punctuation.definition.group.begin.less" |
| 2826 |
} |
| 2827 |
}, |
| 2828 |
"end": "(?=\\))", |
| 2829 |
"patterns": [ |
| 2830 |
{ |
| 2831 |
"include": "#less-variables" |
| 2832 |
}, |
| 2833 |
{ |
| 2834 |
"include": "#comma-delimiter" |
| 2835 |
}, |
| 2836 |
{ |
| 2837 |
"include": "#literal-string" |
| 2838 |
}, |
| 2839 |
{ |
| 2840 |
"include": "#property-values" |
| 2841 |
} |
| 2842 |
] |
| 2843 |
} |
| 2844 |
] |
| 2845 |
}, |
| 2846 |
{ |
| 2847 |
"begin": "\\b(replace)(?=\\()\\b", |
| 2848 |
"beginCaptures": { |
| 2849 |
"1": { |
| 2850 |
"name": "support.function.replace.less" |
| 2851 |
} |
| 2852 |
}, |
| 2853 |
"end": "\\)", |
| 2854 |
"endCaptures": { |
| 2855 |
"0": { |
| 2856 |
"name": "punctuation.definition.group.end.less" |
| 2857 |
} |
| 2858 |
}, |
| 2859 |
"name": "meta.function-call.less", |
| 2860 |
"patterns": [ |
| 2861 |
{ |
| 2862 |
"begin": "\\(", |
| 2863 |
"beginCaptures": { |
| 2864 |
"0": { |
| 2865 |
"name": "punctuation.definition.group.begin.less" |
| 2866 |
} |
| 2867 |
}, |
| 2868 |
"end": "(?=\\))", |
| 2869 |
"patterns": [ |
| 2870 |
{ |
| 2871 |
"include": "#less-variables" |
| 2872 |
}, |
| 2873 |
{ |
| 2874 |
"include": "#comma-delimiter" |
| 2875 |
}, |
| 2876 |
{ |
| 2877 |
"include": "#literal-string" |
| 2878 |
}, |
| 2879 |
{ |
| 2880 |
"include": "#property-values" |
| 2881 |
} |
| 2882 |
] |
| 2883 |
} |
| 2884 |
] |
| 2885 |
} |
| 2886 |
] |
| 2887 |
}, |
| 2888 |
"less-strings": { |
| 2889 |
"patterns": [ |
| 2890 |
{ |
| 2891 |
"begin": "(~)('|\")", |
| 2892 |
"beginCaptures": { |
| 2893 |
"1": { |
| 2894 |
"name": "constant.character.escape.less" |
| 2895 |
}, |
| 2896 |
"2": { |
| 2897 |
"name": "punctuation.definition.string.begin.less" |
| 2898 |
} |
| 2899 |
}, |
| 2900 |
"contentName": "markup.raw.inline.less", |
| 2901 |
"end": "('|\")|(\\n)", |
| 2902 |
"endCaptures": { |
| 2903 |
"1": { |
| 2904 |
"name": "punctuation.definition.string.end.less" |
| 2905 |
}, |
| 2906 |
"2": { |
| 2907 |
"name": "invalid.illegal.newline.less" |
| 2908 |
} |
| 2909 |
}, |
| 2910 |
"name": "string.quoted.other.less", |
| 2911 |
"patterns": [ |
| 2912 |
{ |
| 2913 |
"include": "#string-content" |
| 2914 |
} |
| 2915 |
] |
| 2916 |
} |
| 2917 |
] |
| 2918 |
}, |
| 2919 |
"less-type-functions": { |
| 2920 |
"patterns": [ |
| 2921 |
{ |
| 2922 |
"begin": "\\b(is(number|string|color|keyword|url|pixel|em|percentage|ruleset))(?=\\()", |
| 2923 |
"beginCaptures": { |
| 2924 |
"1": { |
| 2925 |
"name": "support.function.type.less" |
| 2926 |
} |
| 2927 |
}, |
| 2928 |
"end": "\\)", |
| 2929 |
"endCaptures": { |
| 2930 |
"0": { |
| 2931 |
"name": "punctuation.definition.group.end.less" |
| 2932 |
} |
| 2933 |
}, |
| 2934 |
"name": "meta.function-call.less", |
| 2935 |
"patterns": [ |
| 2936 |
{ |
| 2937 |
"begin": "\\(", |
| 2938 |
"beginCaptures": { |
| 2939 |
"0": { |
| 2940 |
"name": "punctuation.definition.group.begin.less" |
| 2941 |
} |
| 2942 |
}, |
| 2943 |
"end": "(?=\\))", |
| 2944 |
"patterns": [ |
| 2945 |
{ |
| 2946 |
"include": "#property-values" |
| 2947 |
} |
| 2948 |
] |
| 2949 |
} |
| 2950 |
] |
| 2951 |
}, |
| 2952 |
{ |
| 2953 |
"begin": "\\b(isunit)(?=\\()", |
| 2954 |
"beginCaptures": { |
| 2955 |
"1": { |
| 2956 |
"name": "support.function.type.less" |
| 2957 |
} |
| 2958 |
}, |
| 2959 |
"end": "\\)", |
| 2960 |
"endCaptures": { |
| 2961 |
"0": { |
| 2962 |
"name": "punctuation.definition.group.end.less" |
| 2963 |
} |
| 2964 |
}, |
| 2965 |
"name": "meta.function-call.less", |
| 2966 |
"patterns": [ |
| 2967 |
{ |
| 2968 |
"begin": "\\(", |
| 2969 |
"beginCaptures": { |
| 2970 |
"0": { |
| 2971 |
"name": "punctuation.definition.group.begin.less" |
| 2972 |
} |
| 2973 |
}, |
| 2974 |
"end": "(?=\\))", |
| 2975 |
"patterns": [ |
| 2976 |
{ |
| 2977 |
"include": "#property-values" |
| 2978 |
}, |
| 2979 |
{ |
| 2980 |
"include": "#comma-delimiter" |
| 2981 |
}, |
| 2982 |
{ |
| 2983 |
"match": "(?x)\\b((?i:em|ex|ch|rem)|(?i:vw|vh|vmin|vmax)|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:s|ms)|(?i:Hz|kHz)|(?i:dpi|dpcm|dppx))\\b", |
| 2984 |
"name": "keyword.other.unit.less" |
| 2985 |
} |
| 2986 |
] |
| 2987 |
} |
| 2988 |
] |
| 2989 |
}, |
| 2990 |
{ |
| 2991 |
"begin": "\\b(isdefined)(?=\\()", |
| 2992 |
"beginCaptures": { |
| 2993 |
"1": { |
| 2994 |
"name": "support.function.type.less" |
| 2995 |
} |
| 2996 |
}, |
| 2997 |
"end": "\\)", |
| 2998 |
"endCaptures": { |
| 2999 |
"0": { |
| 3000 |
"name": "punctuation.definition.group.end.less" |
| 3001 |
} |
| 3002 |
}, |
| 3003 |
"name": "meta.function-call.less", |
| 3004 |
"patterns": [ |
| 3005 |
{ |
| 3006 |
"begin": "\\(", |
| 3007 |
"beginCaptures": { |
| 3008 |
"0": { |
| 3009 |
"name": "punctuation.definition.group.begin.less" |
| 3010 |
} |
| 3011 |
}, |
| 3012 |
"end": "(?=\\))", |
| 3013 |
"patterns": [ |
| 3014 |
{ |
| 3015 |
"include": "#less-variables" |
| 3016 |
} |
| 3017 |
] |
| 3018 |
} |
| 3019 |
] |
| 3020 |
} |
| 3021 |
] |
| 3022 |
}, |
| 3023 |
"less-variable-assignment": { |
| 3024 |
"patterns": [ |
| 3025 |
{ |
| 3026 |
"begin": "(@)(-?(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 3027 |
"beginCaptures": { |
| 3028 |
"0": { |
| 3029 |
"name": "variable.other.readwrite.less" |
| 3030 |
}, |
| 3031 |
"1": { |
| 3032 |
"name": "punctuation.definition.variable.less" |
| 3033 |
}, |
| 3034 |
"2": { |
| 3035 |
"name": "support.other.variable.less" |
| 3036 |
} |
| 3037 |
}, |
| 3038 |
"end": "\\s*(;|(\\.{3})|(?=\\)))", |
| 3039 |
"endCaptures": { |
| 3040 |
"1": { |
| 3041 |
"name": "punctuation.terminator.rule.less" |
| 3042 |
}, |
| 3043 |
"2": { |
| 3044 |
"name": "keyword.operator.spread.less" |
| 3045 |
} |
| 3046 |
}, |
| 3047 |
"name": "meta.property-value.less", |
| 3048 |
"patterns": [ |
| 3049 |
{ |
| 3050 |
"captures": { |
| 3051 |
"1": { |
| 3052 |
"name": "punctuation.separator.key-value.less" |
| 3053 |
}, |
| 3054 |
"4": { |
| 3055 |
"name": "meta.property-value.less" |
| 3056 |
} |
| 3057 |
}, |
| 3058 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 3059 |
}, |
| 3060 |
{ |
| 3061 |
"include": "#property-values" |
| 3062 |
}, |
| 3063 |
{ |
| 3064 |
"include": "#comma-delimiter" |
| 3065 |
}, |
| 3066 |
{ |
| 3067 |
"include": "#property-list" |
| 3068 |
}, |
| 3069 |
{ |
| 3070 |
"include": "#unquoted-string" |
| 3071 |
} |
| 3072 |
] |
| 3073 |
} |
| 3074 |
] |
| 3075 |
}, |
| 3076 |
"less-variable-comparison": { |
| 3077 |
"patterns": [ |
| 3078 |
{ |
| 3079 |
"begin": "(@{1,2})([-]?([_a-z]|[^\\x{00}-\\x{7F}]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 3080 |
"beginCaptures": { |
| 3081 |
"0": { |
| 3082 |
"name": "variable.other.readwrite.less" |
| 3083 |
}, |
| 3084 |
"1": { |
| 3085 |
"name": "punctuation.definition.variable.less" |
| 3086 |
}, |
| 3087 |
"2": { |
| 3088 |
"name": "support.other.variable.less" |
| 3089 |
} |
| 3090 |
}, |
| 3091 |
"end": "\\s*(?=\\))", |
| 3092 |
"endCaptures": { |
| 3093 |
"1": { |
| 3094 |
"name": "punctuation.terminator.rule.less" |
| 3095 |
} |
| 3096 |
}, |
| 3097 |
"patterns": [ |
| 3098 |
{ |
| 3099 |
"captures": { |
| 3100 |
"1": { |
| 3101 |
"name": "keyword.operator.logical.less" |
| 3102 |
} |
| 3103 |
}, |
| 3104 |
"match": "\\s*(=|((<|>)=?))\\s*" |
| 3105 |
}, |
| 3106 |
{ |
| 3107 |
"match": "\\btrue\\b", |
| 3108 |
"name": "constant.language.less" |
| 3109 |
}, |
| 3110 |
{ |
| 3111 |
"include": "#property-values" |
| 3112 |
}, |
| 3113 |
{ |
| 3114 |
"include": "#selectors" |
| 3115 |
}, |
| 3116 |
{ |
| 3117 |
"include": "#unquoted-string" |
| 3118 |
}, |
| 3119 |
{ |
| 3120 |
"match": ",", |
| 3121 |
"name": "punctuation.separator.less" |
| 3122 |
} |
| 3123 |
] |
| 3124 |
} |
| 3125 |
] |
| 3126 |
}, |
| 3127 |
"less-variable-interpolation": { |
| 3128 |
"captures": { |
| 3129 |
"1": { |
| 3130 |
"name": "punctuation.definition.variable.less" |
| 3131 |
}, |
| 3132 |
"2": { |
| 3133 |
"name": "punctuation.definition.expression.less" |
| 3134 |
}, |
| 3135 |
"3": { |
| 3136 |
"name": "support.other.variable.less" |
| 3137 |
}, |
| 3138 |
"4": { |
| 3139 |
"name": "punctuation.definition.expression.less" |
| 3140 |
} |
| 3141 |
}, |
| 3142 |
"match": "(@)(\\{)([-\\w]+)(\\})", |
| 3143 |
"name": "variable.other.readwrite.less" |
| 3144 |
}, |
| 3145 |
"less-variables": { |
| 3146 |
"captures": { |
| 3147 |
"1": { |
| 3148 |
"name": "punctuation.definition.variable.less" |
| 3149 |
}, |
| 3150 |
"2": { |
| 3151 |
"name": "support.other.variable.less" |
| 3152 |
} |
| 3153 |
}, |
| 3154 |
"match": "\\s*(@@?)([-\\w]+)", |
| 3155 |
"name": "variable.other.readwrite.less" |
| 3156 |
}, |
| 3157 |
"literal-string": { |
| 3158 |
"patterns": [ |
| 3159 |
{ |
| 3160 |
"begin": "'", |
| 3161 |
"beginCaptures": { |
| 3162 |
"0": { |
| 3163 |
"name": "punctuation.definition.string.begin.less" |
| 3164 |
} |
| 3165 |
}, |
| 3166 |
"end": "(')|(\\n)", |
| 3167 |
"endCaptures": { |
| 3168 |
"1": { |
| 3169 |
"name": "punctuation.definition.string.end.less" |
| 3170 |
}, |
| 3171 |
"2": { |
| 3172 |
"name": "invalid.illegal.newline.less" |
| 3173 |
} |
| 3174 |
}, |
| 3175 |
"name": "string.quoted.single.less", |
| 3176 |
"patterns": [ |
| 3177 |
{ |
| 3178 |
"include": "#string-content" |
| 3179 |
} |
| 3180 |
] |
| 3181 |
}, |
| 3182 |
{ |
| 3183 |
"begin": "\"", |
| 3184 |
"beginCaptures": { |
| 3185 |
"0": { |
| 3186 |
"name": "punctuation.definition.string.begin.less" |
| 3187 |
} |
| 3188 |
}, |
| 3189 |
"end": "(\")|(\\n)", |
| 3190 |
"endCaptures": { |
| 3191 |
"1": { |
| 3192 |
"name": "punctuation.definition.string.end.less" |
| 3193 |
}, |
| 3194 |
"2": { |
| 3195 |
"name": "invalid.illegal.newline.less" |
| 3196 |
} |
| 3197 |
}, |
| 3198 |
"name": "string.quoted.double.less", |
| 3199 |
"patterns": [ |
| 3200 |
{ |
| 3201 |
"include": "#string-content" |
| 3202 |
} |
| 3203 |
] |
| 3204 |
}, |
| 3205 |
{ |
| 3206 |
"include": "#less-strings" |
| 3207 |
} |
| 3208 |
] |
| 3209 |
}, |
| 3210 |
"local-function": { |
| 3211 |
"begin": "\\b(local)(?=\\()", |
| 3212 |
"beginCaptures": { |
| 3213 |
"0": { |
| 3214 |
"name": "support.function.font-face.less" |
| 3215 |
} |
| 3216 |
}, |
| 3217 |
"end": "\\)", |
| 3218 |
"endCaptures": { |
| 3219 |
"0": { |
| 3220 |
"name": "punctuation.definition.group.end.less" |
| 3221 |
} |
| 3222 |
}, |
| 3223 |
"name": "meta.function-call.less", |
| 3224 |
"patterns": [ |
| 3225 |
{ |
| 3226 |
"begin": "\\(", |
| 3227 |
"beginCaptures": { |
| 3228 |
"0": { |
| 3229 |
"name": "punctuation.definition.group.begin.less" |
| 3230 |
} |
| 3231 |
}, |
| 3232 |
"end": "(?=\\))", |
| 3233 |
"patterns": [ |
| 3234 |
{ |
| 3235 |
"include": "#unquoted-string" |
| 3236 |
} |
| 3237 |
] |
| 3238 |
} |
| 3239 |
] |
| 3240 |
}, |
| 3241 |
"media-query": { |
| 3242 |
"begin": "\\s*(only|not)?\\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?", |
| 3243 |
"beginCaptures": { |
| 3244 |
"1": { |
| 3245 |
"name": "keyword.operator.logic.media.less" |
| 3246 |
}, |
| 3247 |
"2": { |
| 3248 |
"name": "support.constant.media.less" |
| 3249 |
} |
| 3250 |
}, |
| 3251 |
"end": "\\s*(?:(,)|(?=[{;]))", |
| 3252 |
"endCaptures": { |
| 3253 |
"1": { |
| 3254 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 3255 |
} |
| 3256 |
}, |
| 3257 |
"patterns": [ |
| 3258 |
{ |
| 3259 |
"include": "#less-variables" |
| 3260 |
}, |
| 3261 |
{ |
| 3262 |
"include": "#custom-property-name" |
| 3263 |
}, |
| 3264 |
{ |
| 3265 |
"begin": "\\s*(and)?\\s*(\\()\\s*", |
| 3266 |
"beginCaptures": { |
| 3267 |
"1": { |
| 3268 |
"name": "keyword.operator.logic.media.less" |
| 3269 |
}, |
| 3270 |
"2": { |
| 3271 |
"name": "punctuation.definition.group.begin.less" |
| 3272 |
} |
| 3273 |
}, |
| 3274 |
"end": "\\)", |
| 3275 |
"endCaptures": { |
| 3276 |
"0": { |
| 3277 |
"name": "punctuation.definition.group.end.less" |
| 3278 |
} |
| 3279 |
}, |
| 3280 |
"name": "meta.group.less", |
| 3281 |
"patterns": [ |
| 3282 |
{ |
| 3283 |
"begin": "((-webkit-|-o-)?((min|max)-)?(-moz-)?(((device-)?(height|width|aspect-ratio|pixel-ratio))|(color(-index)?)|monochrome|resolution))|grid|scan|orientation\\s*(?=[:)])", |
| 3284 |
"beginCaptures": { |
| 3285 |
"0": { |
| 3286 |
"name": "support.type.property-name.media.less" |
| 3287 |
}, |
| 3288 |
"2": { |
| 3289 |
"name": "support.type.vendor-prefix.less" |
| 3290 |
}, |
| 3291 |
"5": { |
| 3292 |
"name": "support.type.vendor-prefix.less" |
| 3293 |
} |
| 3294 |
}, |
| 3295 |
"end": "(((\\+_?)?):)|(?=\\))", |
| 3296 |
"endCaptures": { |
| 3297 |
"1": { |
| 3298 |
"name": "punctuation.separator.key-value.less" |
| 3299 |
} |
| 3300 |
} |
| 3301 |
}, |
| 3302 |
{ |
| 3303 |
"match": "\\b(portrait|landscape|progressive|interlace)", |
| 3304 |
"name": "support.constant.property-value.less" |
| 3305 |
}, |
| 3306 |
{ |
| 3307 |
"captures": { |
| 3308 |
"1": { |
| 3309 |
"name": "constant.numeric.less" |
| 3310 |
}, |
| 3311 |
"2": { |
| 3312 |
"name": "keyword.operator.arithmetic.less" |
| 3313 |
}, |
| 3314 |
"3": { |
| 3315 |
"name": "constant.numeric.less" |
| 3316 |
} |
| 3317 |
}, |
| 3318 |
"match": "\\s*(\\d+)(/)(\\d+)" |
| 3319 |
}, |
| 3320 |
{ |
| 3321 |
"include": "#less-math" |
| 3322 |
} |
| 3323 |
] |
| 3324 |
} |
| 3325 |
] |
| 3326 |
}, |
| 3327 |
"media-query-list": { |
| 3328 |
"begin": "\\s*(?=[^{;])", |
| 3329 |
"end": "\\s*(?=[{;])", |
| 3330 |
"patterns": [ |
| 3331 |
{ |
| 3332 |
"include": "#media-query" |
| 3333 |
} |
| 3334 |
] |
| 3335 |
}, |
| 3336 |
"minmax-function": { |
| 3337 |
"begin": "\\b(minmax)(?=\\()", |
| 3338 |
"beginCaptures": { |
| 3339 |
"1": { |
| 3340 |
"name": "support.function.grid.less" |
| 3341 |
} |
| 3342 |
}, |
| 3343 |
"end": "\\)", |
| 3344 |
"endCaptures": { |
| 3345 |
"0": { |
| 3346 |
"name": "punctuation.definition.group.end.less" |
| 3347 |
} |
| 3348 |
}, |
| 3349 |
"name": "meta.function-call.less", |
| 3350 |
"patterns": [ |
| 3351 |
{ |
| 3352 |
"begin": "\\(", |
| 3353 |
"beginCaptures": { |
| 3354 |
"0": { |
| 3355 |
"name": "punctuation.definition.group.begin.less" |
| 3356 |
} |
| 3357 |
}, |
| 3358 |
"end": "(?=\\))", |
| 3359 |
"patterns": [ |
| 3360 |
{ |
| 3361 |
"include": "#less-variables" |
| 3362 |
}, |
| 3363 |
{ |
| 3364 |
"include": "#length-type" |
| 3365 |
}, |
| 3366 |
{ |
| 3367 |
"include": "#comma-delimiter" |
| 3368 |
}, |
| 3369 |
{ |
| 3370 |
"match": "\\b(max-content|min-content)\\b", |
| 3371 |
"name": "support.constant.property-value.less" |
| 3372 |
} |
| 3373 |
] |
| 3374 |
} |
| 3375 |
] |
| 3376 |
}, |
| 3377 |
"number-type": { |
| 3378 |
"match": "[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))", |
| 3379 |
"name": "constant.numeric.less" |
| 3380 |
}, |
| 3381 |
"numeric-values": { |
| 3382 |
"patterns": [ |
| 3383 |
{ |
| 3384 |
"include": "#dimensions" |
| 3385 |
}, |
| 3386 |
{ |
| 3387 |
"include": "#percentage-type" |
| 3388 |
}, |
| 3389 |
{ |
| 3390 |
"include": "#number-type" |
| 3391 |
} |
| 3392 |
] |
| 3393 |
}, |
| 3394 |
"percentage-type": { |
| 3395 |
"captures": { |
| 3396 |
"1": { |
| 3397 |
"name": "keyword.other.unit.less" |
| 3398 |
} |
| 3399 |
}, |
| 3400 |
"match": "[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(%)", |
| 3401 |
"name": "constant.numeric.less" |
| 3402 |
}, |
| 3403 |
"property-list": { |
| 3404 |
"patterns": [ |
| 3405 |
{ |
| 3406 |
"begin": "(?=(?=[^;]*)\\{)", |
| 3407 |
"end": "\\}", |
| 3408 |
"endCaptures": { |
| 3409 |
"0": { |
| 3410 |
"name": "punctuation.definition.block.end.less" |
| 3411 |
} |
| 3412 |
}, |
| 3413 |
"patterns": [ |
| 3414 |
{ |
| 3415 |
"include": "#rule-list" |
| 3416 |
} |
| 3417 |
] |
| 3418 |
} |
| 3419 |
] |
| 3420 |
}, |
| 3421 |
"property-value-constants": { |
| 3422 |
"patterns": [ |
| 3423 |
{ |
| 3424 |
"match": "(?x)\\b(\n absolute|active|add\n |all(-(petite|small)-caps|-scroll)?\n |alpha(betic)?\n |alternate(-reverse)?\n |always|annotation|antialiased|at\n |auto(hiding-scrollbar)?\n |avoid(-column|-page|-region)?\n |background(-color|-image|-position|-size)?\n |backwards|balance|baseline|below|bevel|bicubic|bidi-override|blink\n |block(-line-height)?\n |blur\n |bold(er)?\n |border(-bottom|-left|-right|-top)?-(color|radius|width|style)\n |border-(bottom|top)-(left|right)-radius\n |border-image(-outset|-repeat|-slice|-source|-width)?\n |border(-bottom|-left|-right|-top|-collapse|-spacing|-box)?\n |both|bottom\n |box(-shadow)?\n |break-(all|word)\n |brightness\n |butt(on)?\n |capitalize\n |cent(er|ral)\n |char(acter-variant)?\n |cjk-ideographic|clip|clone|close-quote\n |closest-(corner|side)\n |col-resize|collapse\n |color(-stop|-burn|-dodge)?\n |column((-count|-gap|-reverse|-rule(-color|-width)?|-width)|s)?\n |common-ligatures|condensed|consider-shifts|contain\n |content(-box|s)?\n |contextual|contrast|cover\n |crisp(-e|E)dges\n |crop\n |cross(hair)?\n |da(rken|shed)\n |default|dense|diagonal-fractions|difference|disabled\n |discretionary-ligatures|disregard-shifts\n |distribute(-all-lines|-letter|-space)?\n |dotted|double|drop-shadow\n |(nwse|nesw|ns|ew|sw|se|nw|ne|w|s|e|n)-resize\n |ease(-in-out|-in|-out)?\n |element|ellipsis|embed|end|EndColorStr|evenodd\n |exclu(de(-ruby)?|sion)\n |expanded\n |(extra|semi|ultra)-(condensed|expanded)\n |farthest-(corner|side)?\n |fill(-box|-opacity)?\n |filter|fixed|flat\n |flex((-basis|-end|-grow|-shrink|-start)|box)?\n |flip|flood-color\n |font(-size(-adjust)?|-stretch|-weight)?\n |forwards\n |from(-image)?\n |full-width|geometricPrecision|glyphs|gradient|grayscale\n |grid(-height)?\n |groove|hand|hanging|hard-light|height|help|hidden|hide\n |historical-(forms|ligatures)\n |horizontal(-tb)?\n |hue\n |ideograph(-alpha|-numeric|-parenthesis|-space|ic)\n |inactive|include-ruby|infinite|inherit|initial\n |inline(-block|-box|-flex(box)?|-line-height|-table)?\n |inset|inside\n |inter(-ideograph|-word|sect)\n |invert|isolat(e|ion)|italic\n |jis(04|78|83|90)\n |justify(-all)?\n |keep-all\n |large[r]?\n |last|layout|left|letter-spacing\n |light(e[nr]|ing-color)\n |line(-edge|-height|-through)?\n |linear(-gradient|RGB)?\n |lining-nums|list-item|local|loose|lowercase|lr-tb|ltr\n |lumin(osity|ance)|manual\n |manipulation\n |margin(-bottom|-box|-left|-right|-top)?\n |marker(-offset|s)?\n |mathematical\n |max-(content|height|lines|size|width)\n |medium|middle\n |min-(content|height|width)\n |miter|mixed|move|multiply|newspaper\n |no-(change|clip|(close|open)-quote|(common|discretionary|historical)-ligatures|contextual|drop|repeat)\n |none|nonzero|normal|not-allowed|nowrap|oblique\n |offset(-after|-before|-end|-start)?\n |oldstyle-nums|opacity|open-quote\n |optimize(Legibility|Precision|Quality|Speed)\n |order|ordinal|ornaments\n |outline(-color|-offset|-width)?\n |outset|outside|over(line|-edge|lay)\n |padding(-bottom|-box|-left|-right|-top|-box)?\n |page|painted|paused\n |pan-(x|left|right|y|up|down)\n |perspective-origin\n |petite-caps|pixelated|pointer\n |pinch-zoom\n |pre(-line|-wrap)?\n |preserve-3d\n |progid:DXImageTransform.Microsoft.(Alpha|Blur|dropshadow|gradient|Shadow)\n |progress\n |proportional-(nums|width)\n |radial-gradient|recto|region|relative\n |repeat(-[xy])?\n |repeating-(linear|radial)-gradient\n |replaced|reset-size|reverse|ridge|right\n |round\n |row(-resize|-reverse)?\n |rtl|ruby|running|saturat(e|ion)|screen\n |scroll(-position|bar)?\n |separate|sepia\n |scale-down\n |shape-(image-threshold|margin|outside)\n |show\n |sideways(-lr|-rl)?\n |simplified\n |size\n |slashed-zero|slice\n |small(-caps|er)?\n |smooth|snap|solid|soft-light\n |space(-around|-between)?\n |span|sRGB\n |stack(ed-fractions)?\n |start(ColorStr)?\n |static\n |step-(end|start)\n |sticky\n |stop-(color|opacity)\n |stretch|strict\n |stroke(-box|-dash(array|offset)|-miterlimit|-opacity|-width)?\n |style(set)?\n |stylistic\n |sub(grid|pixel-antialiased|tract)?\n |super|swash\n |table(-caption|-cell|(-column|-footer|-header|-row)-group|-column|-row)?\n |tabular-nums|tb-rl\n |text((-bottom|-(decoration|emphasis)-color|-indent|-(over|under)-edge|-shadow|-size(-adjust)?|-top)|field)?\n |thi(ck|n)\n |titling-ca(ps|se)\n |to[p]?\n |touch|traditional\n |transform(-origin)?\n |under(-edge|line)?\n |unicase|unset|uppercase|upright\n |use-(glyph-orientation|script)\n |verso\n |vertical(-align|-ideographic|-lr|-rl|-text)?\n |view-box\n |viewport-fill(-opacity)?\n |visibility\n |visible(Fill|Painted|Stroke)?\n |wait|wavy|weight|whitespace|(device-)?width|word-spacing\n |wrap(-reverse)?\n |x{1,2}-(large|small)\n |z-index|zero\n |zoom(-in|-out)?\n |((?xi:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)))\\b", |
| 3425 |
"name": "support.constant.property-value.less" |
| 3426 |
}, |
| 3427 |
{ |
| 3428 |
"match": "\\b(?i:sans-serif|serif|monospace|fantasy|cursive)\\b(?=\\s*[;,\\n}])", |
| 3429 |
"name": "support.constant.font-name.less" |
| 3430 |
} |
| 3431 |
] |
| 3432 |
}, |
| 3433 |
"property-values": { |
| 3434 |
"patterns": [ |
| 3435 |
{ |
| 3436 |
"include": "#comment-block" |
| 3437 |
}, |
| 3438 |
{ |
| 3439 |
"include": "#vendor-prefix" |
| 3440 |
}, |
| 3441 |
{ |
| 3442 |
"include": "#builtin-functions" |
| 3443 |
}, |
| 3444 |
{ |
| 3445 |
"include": "#color-functions" |
| 3446 |
}, |
| 3447 |
{ |
| 3448 |
"include": "#less-math" |
| 3449 |
}, |
| 3450 |
{ |
| 3451 |
"include": "#less-functions" |
| 3452 |
}, |
| 3453 |
{ |
| 3454 |
"include": "#less-variables" |
| 3455 |
}, |
| 3456 |
{ |
| 3457 |
"include": "#unicode-range" |
| 3458 |
}, |
| 3459 |
{ |
| 3460 |
"include": "#numeric-values" |
| 3461 |
}, |
| 3462 |
{ |
| 3463 |
"include": "#color-values" |
| 3464 |
}, |
| 3465 |
{ |
| 3466 |
"include": "#property-value-constants" |
| 3467 |
}, |
| 3468 |
{ |
| 3469 |
"include": "#literal-string" |
| 3470 |
}, |
| 3471 |
{ |
| 3472 |
"captures": { |
| 3473 |
"1": { |
| 3474 |
"name": "punctuation.separator.less" |
| 3475 |
} |
| 3476 |
}, |
| 3477 |
"match": "(\\!)\\s*important", |
| 3478 |
"name": "keyword.other.important.less" |
| 3479 |
} |
| 3480 |
] |
| 3481 |
}, |
| 3482 |
"pseudo-classes": { |
| 3483 |
"patterns": [ |
| 3484 |
{ |
| 3485 |
"begin": "(:)(dir|lang)(?=\\()", |
| 3486 |
"captures": { |
| 3487 |
"1": { |
| 3488 |
"name": "punctuation.definition.entity.less" |
| 3489 |
} |
| 3490 |
}, |
| 3491 |
"end": "\\)", |
| 3492 |
"endCaptures": { |
| 3493 |
"0": { |
| 3494 |
"name": "punctuation.definition.group.end.less" |
| 3495 |
} |
| 3496 |
}, |
| 3497 |
"name": "entity.other.attribute-name.pseudo-class.less", |
| 3498 |
"patterns": [ |
| 3499 |
{ |
| 3500 |
"begin": "\\(", |
| 3501 |
"beginCaptures": { |
| 3502 |
"0": { |
| 3503 |
"name": "punctuation.definition.group.begin.less" |
| 3504 |
} |
| 3505 |
}, |
| 3506 |
"end": "(?=\\))", |
| 3507 |
"patterns": [ |
| 3508 |
{ |
| 3509 |
"include": "#unquoted-string" |
| 3510 |
} |
| 3511 |
] |
| 3512 |
} |
| 3513 |
] |
| 3514 |
}, |
| 3515 |
{ |
| 3516 |
"begin": "(:)(not)(?=\\()", |
| 3517 |
"captures": { |
| 3518 |
"1": { |
| 3519 |
"name": "punctuation.definition.entity.less" |
| 3520 |
} |
| 3521 |
}, |
| 3522 |
"end": "\\)", |
| 3523 |
"endCaptures": { |
| 3524 |
"0": { |
| 3525 |
"name": "punctuation.definition.group.end.less" |
| 3526 |
} |
| 3527 |
}, |
| 3528 |
"name": "entity.other.attribute-name.pseudo-class.less", |
| 3529 |
"patterns": [ |
| 3530 |
{ |
| 3531 |
"begin": "\\(", |
| 3532 |
"beginCaptures": { |
| 3533 |
"0": { |
| 3534 |
"name": "punctuation.definition.group.begin.less" |
| 3535 |
} |
| 3536 |
}, |
| 3537 |
"end": "(?=\\))", |
| 3538 |
"patterns": [ |
| 3539 |
{ |
| 3540 |
"include": "#selectors" |
| 3541 |
} |
| 3542 |
] |
| 3543 |
} |
| 3544 |
] |
| 3545 |
}, |
| 3546 |
{ |
| 3547 |
"begin": "(:)(nth(-last)?-(child|of-type))(?=\\()", |
| 3548 |
"captures": { |
| 3549 |
"1": { |
| 3550 |
"name": "punctuation.definition.entity.less" |
| 3551 |
}, |
| 3552 |
"2": { |
| 3553 |
"name": "entity.other.attribute-name.pseudo-class.less" |
| 3554 |
} |
| 3555 |
}, |
| 3556 |
"end": "\\)", |
| 3557 |
"endCaptures": { |
| 3558 |
"0": { |
| 3559 |
"name": "punctuation.definition.group.end.less" |
| 3560 |
} |
| 3561 |
}, |
| 3562 |
"name": "meta.function-call.less", |
| 3563 |
"patterns": [ |
| 3564 |
{ |
| 3565 |
"begin": "\\(", |
| 3566 |
"beginCaptures": { |
| 3567 |
"0": { |
| 3568 |
"name": "punctuation.definition.group.begin.less" |
| 3569 |
} |
| 3570 |
}, |
| 3571 |
"end": "(?=\\))", |
| 3572 |
"name": "meta.group.less", |
| 3573 |
"patterns": [ |
| 3574 |
{ |
| 3575 |
"match": "\\b(even|odd)\\b", |
| 3576 |
"name": "keyword.other.pseudo-class.less" |
| 3577 |
}, |
| 3578 |
{ |
| 3579 |
"captures": { |
| 3580 |
"1": { |
| 3581 |
"name": "keyword.other.unit.less" |
| 3582 |
} |
| 3583 |
}, |
| 3584 |
"match": "(?:[-+]?(?:\\d+)?(n)(\\s*[-+]\\s*\\d+)?|[-+]?\\s*\\d+)", |
| 3585 |
"name": "constant.numeric.less" |
| 3586 |
}, |
| 3587 |
{ |
| 3588 |
"include": "#less-math" |
| 3589 |
}, |
| 3590 |
{ |
| 3591 |
"include": "#less-strings" |
| 3592 |
}, |
| 3593 |
{ |
| 3594 |
"include": "#less-variable-interpolation" |
| 3595 |
} |
| 3596 |
] |
| 3597 |
} |
| 3598 |
] |
| 3599 |
}, |
| 3600 |
{ |
| 3601 |
"begin": "(:)(host-context)(?=\\()", |
| 3602 |
"captures": { |
| 3603 |
"1": { |
| 3604 |
"name": "punctuation.definition.entity.less" |
| 3605 |
} |
| 3606 |
}, |
| 3607 |
"end": "\\)", |
| 3608 |
"endCaptures": { |
| 3609 |
"0": { |
| 3610 |
"name": "punctuation.definition.group.end.less" |
| 3611 |
} |
| 3612 |
}, |
| 3613 |
"name": "entity.other.attribute-name.pseudo-class.less", |
| 3614 |
"patterns": [ |
| 3615 |
{ |
| 3616 |
"begin": "\\(", |
| 3617 |
"beginCaptures": { |
| 3618 |
"0": { |
| 3619 |
"name": "punctuation.definition.group.begin.less" |
| 3620 |
} |
| 3621 |
}, |
| 3622 |
"end": "(?=\\))", |
| 3623 |
"patterns": [ |
| 3624 |
{ |
| 3625 |
"include": "#selectors" |
| 3626 |
} |
| 3627 |
] |
| 3628 |
} |
| 3629 |
] |
| 3630 |
}, |
| 3631 |
{ |
| 3632 |
"captures": { |
| 3633 |
"1": { |
| 3634 |
"name": "punctuation.definition.entity.less" |
| 3635 |
}, |
| 3636 |
"2": { |
| 3637 |
"name": "entity.other.attribute-name.pseudo-class.less" |
| 3638 |
} |
| 3639 |
}, |
| 3640 |
"match": "(:)(active|any|checked|default|disabled|empty|enabled|first(-(child|of-type))?|fullscreen|focus|host|hover|indeterminate|in-range|invalid|last-(child|of-type)|left|link|only-(child|of-type)|optional|out-of-range|read-(only|write)|required|right|root|scope|target|valid|visited)", |
| 3641 |
"name": "meta.function-call.less" |
| 3642 |
} |
| 3643 |
] |
| 3644 |
}, |
| 3645 |
"pseudo-elements": { |
| 3646 |
"patterns": [ |
| 3647 |
{ |
| 3648 |
"begin": "(::)(slotted)(?=\\()", |
| 3649 |
"captures": { |
| 3650 |
"1": { |
| 3651 |
"name": "punctuation.definition.entity.less" |
| 3652 |
} |
| 3653 |
}, |
| 3654 |
"end": "\\)", |
| 3655 |
"endCaptures": { |
| 3656 |
"0": { |
| 3657 |
"name": "punctuation.definition.group.end.less" |
| 3658 |
} |
| 3659 |
}, |
| 3660 |
"name": "entity.other.attribute-name.pseudo-class.less", |
| 3661 |
"patterns": [ |
| 3662 |
{ |
| 3663 |
"begin": "\\(", |
| 3664 |
"beginCaptures": { |
| 3665 |
"0": { |
| 3666 |
"name": "punctuation.definition.group.begin.less" |
| 3667 |
} |
| 3668 |
}, |
| 3669 |
"end": "(?=\\))", |
| 3670 |
"patterns": [ |
| 3671 |
{ |
| 3672 |
"include": "#selectors" |
| 3673 |
} |
| 3674 |
] |
| 3675 |
} |
| 3676 |
] |
| 3677 |
}, |
| 3678 |
{ |
| 3679 |
"captures": { |
| 3680 |
"1": { |
| 3681 |
"name": "punctuation.definition.entity.less" |
| 3682 |
}, |
| 3683 |
"2": { |
| 3684 |
"name": "punctuation.definition.entity.less" |
| 3685 |
}, |
| 3686 |
"3": { |
| 3687 |
"name": "support.type.vendor-prefix.less" |
| 3688 |
} |
| 3689 |
}, |
| 3690 |
"match": "(?:(:{1,2})(?:before|after|first-line|first-letter)|(::)(-(?:moz|ms|webkit)-)?(?:(-?(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)))\\b", |
| 3691 |
"name": "entity.other.attribute-name.pseudo-element.less" |
| 3692 |
} |
| 3693 |
] |
| 3694 |
}, |
| 3695 |
"qualified-name": { |
| 3696 |
"captures": { |
| 3697 |
"1": { |
| 3698 |
"name": "entity.name.constant.less" |
| 3699 |
}, |
| 3700 |
"2": { |
| 3701 |
"name": "entity.name.namespace.wildcard.less" |
| 3702 |
}, |
| 3703 |
"3": { |
| 3704 |
"name": "punctuation.separator.namespace.less" |
| 3705 |
} |
| 3706 |
}, |
| 3707 |
"match": "(?:(-?(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)|(\\*))?([|])(?!=)" |
| 3708 |
}, |
| 3709 |
"regexp-function": { |
| 3710 |
"begin": "\\b(regexp)(?=\\()", |
| 3711 |
"end": "\\)", |
| 3712 |
"endCaptures": { |
| 3713 |
"0": { |
| 3714 |
"name": "punctuation.definition.group.end.less" |
| 3715 |
} |
| 3716 |
}, |
| 3717 |
"name": "support.function.regexp.less", |
| 3718 |
"patterns": [ |
| 3719 |
{ |
| 3720 |
"begin": "\\(", |
| 3721 |
"beginCaptures": { |
| 3722 |
"0": { |
| 3723 |
"name": "punctuation.definition.group.begin.less" |
| 3724 |
} |
| 3725 |
}, |
| 3726 |
"end": "(?=\\))", |
| 3727 |
"name": "meta.function-call.less", |
| 3728 |
"patterns": [ |
| 3729 |
{ |
| 3730 |
"include": "#literal-string" |
| 3731 |
} |
| 3732 |
] |
| 3733 |
} |
| 3734 |
] |
| 3735 |
}, |
| 3736 |
"resolution-type": { |
| 3737 |
"captures": { |
| 3738 |
"1": { |
| 3739 |
"name": "keyword.other.unit.less" |
| 3740 |
} |
| 3741 |
}, |
| 3742 |
"match": "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(dpi|dpcm|dppx))\\b", |
| 3743 |
"name": "constant.numeric.less" |
| 3744 |
}, |
| 3745 |
"rule-list": { |
| 3746 |
"patterns": [ |
| 3747 |
{ |
| 3748 |
"begin": "\\{", |
| 3749 |
"beginCaptures": { |
| 3750 |
"0": { |
| 3751 |
"name": "punctuation.definition.block.begin.less" |
| 3752 |
} |
| 3753 |
}, |
| 3754 |
"end": "(?=\\s*\\})", |
| 3755 |
"name": "meta.property-list.less", |
| 3756 |
"patterns": [ |
| 3757 |
{ |
| 3758 |
"captures": { |
| 3759 |
"1": { |
| 3760 |
"name": "punctuation.terminator.rule.less" |
| 3761 |
} |
| 3762 |
}, |
| 3763 |
"match": "\\s*(;)|(?=[})])" |
| 3764 |
}, |
| 3765 |
{ |
| 3766 |
"include": "#rule-list-body" |
| 3767 |
}, |
| 3768 |
{ |
| 3769 |
"include": "#less-extend" |
| 3770 |
} |
| 3771 |
] |
| 3772 |
} |
| 3773 |
] |
| 3774 |
}, |
| 3775 |
"rule-list-body": { |
| 3776 |
"patterns": [ |
| 3777 |
{ |
| 3778 |
"include": "#comment-block" |
| 3779 |
}, |
| 3780 |
{ |
| 3781 |
"include": "#comment-line" |
| 3782 |
}, |
| 3783 |
{ |
| 3784 |
"include": "#at-rules" |
| 3785 |
}, |
| 3786 |
{ |
| 3787 |
"include": "#less-variable-assignment" |
| 3788 |
}, |
| 3789 |
{ |
| 3790 |
"include": "#less-variable-interpolation" |
| 3791 |
}, |
| 3792 |
{ |
| 3793 |
"begin": "(?=[-a-z])", |
| 3794 |
"end": "$|(?![-a-z])", |
| 3795 |
"patterns": [ |
| 3796 |
{ |
| 3797 |
"include": "#vendor-prefix" |
| 3798 |
}, |
| 3799 |
{ |
| 3800 |
"include": "#custom-property-name" |
| 3801 |
}, |
| 3802 |
{ |
| 3803 |
"include": "#filter-function" |
| 3804 |
}, |
| 3805 |
{ |
| 3806 |
"captures": { |
| 3807 |
"1": { |
| 3808 |
"name": "keyword.other.custom-property.prefix.less" |
| 3809 |
}, |
| 3810 |
"2": { |
| 3811 |
"name": "support.type.custom-property.name.less" |
| 3812 |
} |
| 3813 |
}, |
| 3814 |
"match": "\\b(var-)(-?(?:[[-\\w][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[_a-zA-Z][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)(?=\\s)", |
| 3815 |
"name": "invalid.deprecated.custom-property.less" |
| 3816 |
}, |
| 3817 |
{ |
| 3818 |
"begin": "\\bfont(-family)?(?!-)\\b", |
| 3819 |
"beginCaptures": { |
| 3820 |
"0": { |
| 3821 |
"name": "support.type.property-name.less" |
| 3822 |
} |
| 3823 |
}, |
| 3824 |
"end": "\\s*(;)|(?=[})])", |
| 3825 |
"endCaptures": { |
| 3826 |
"1": { |
| 3827 |
"name": "punctuation.terminator.rule.less" |
| 3828 |
} |
| 3829 |
}, |
| 3830 |
"name": "meta.property-name.less", |
| 3831 |
"patterns": [ |
| 3832 |
{ |
| 3833 |
"captures": { |
| 3834 |
"1": { |
| 3835 |
"name": "punctuation.separator.key-value.less" |
| 3836 |
}, |
| 3837 |
"4": { |
| 3838 |
"name": "meta.property-value.less" |
| 3839 |
} |
| 3840 |
}, |
| 3841 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 3842 |
}, |
| 3843 |
{ |
| 3844 |
"include": "#property-values" |
| 3845 |
}, |
| 3846 |
{ |
| 3847 |
"match": "-?(?:[[_a-zA-Z][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*(\\s+-?(?:[[_a-zA-Z][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)*", |
| 3848 |
"name": "string.unquoted.less" |
| 3849 |
}, |
| 3850 |
{ |
| 3851 |
"match": ",", |
| 3852 |
"name": "punctuation.separator.less" |
| 3853 |
} |
| 3854 |
] |
| 3855 |
}, |
| 3856 |
{ |
| 3857 |
"begin": "\\banimation(-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function))?\\b", |
| 3858 |
"beginCaptures": { |
| 3859 |
"0": { |
| 3860 |
"name": "support.type.property-name.less" |
| 3861 |
} |
| 3862 |
}, |
| 3863 |
"end": "\\s*(;)|(?=[})])", |
| 3864 |
"endCaptures": { |
| 3865 |
"1": { |
| 3866 |
"name": "punctuation.terminator.rule.less" |
| 3867 |
} |
| 3868 |
}, |
| 3869 |
"patterns": [ |
| 3870 |
{ |
| 3871 |
"begin": "(((\\+_?)?):)(?=[\\s\\t]*)", |
| 3872 |
"beginCaptures": { |
| 3873 |
"1": { |
| 3874 |
"name": "punctuation.separator.key-value.less" |
| 3875 |
} |
| 3876 |
}, |
| 3877 |
"captures": { |
| 3878 |
"1": { |
| 3879 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 3880 |
} |
| 3881 |
}, |
| 3882 |
"contentName": "meta.property-value.less", |
| 3883 |
"end": "(?=\\s*(;)|(?=[})]))", |
| 3884 |
"patterns": [ |
| 3885 |
{ |
| 3886 |
"match": "\\b(linear|ease(-in)?(-out)?|step-(start|end)|none|forwards|backwards|both|normal|alternate(-reverse)?|reverse|running|paused)\\b", |
| 3887 |
"name": "support.constant.property-value.less" |
| 3888 |
}, |
| 3889 |
{ |
| 3890 |
"include": "#cubic-bezier-function" |
| 3891 |
}, |
| 3892 |
{ |
| 3893 |
"include": "#steps-function" |
| 3894 |
}, |
| 3895 |
{ |
| 3896 |
"include": "#time-type" |
| 3897 |
}, |
| 3898 |
{ |
| 3899 |
"include": "#number-type" |
| 3900 |
}, |
| 3901 |
{ |
| 3902 |
"match": "-?(?:[_a-zA-Z]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\s\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[-_a-zA-Z0-9]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))*", |
| 3903 |
"name": "variable.other.constant.animation-name.less" |
| 3904 |
}, |
| 3905 |
{ |
| 3906 |
"include": "#literal-string" |
| 3907 |
}, |
| 3908 |
{ |
| 3909 |
"include": "#property-values" |
| 3910 |
}, |
| 3911 |
{ |
| 3912 |
"match": "\\s*(?:(,))" |
| 3913 |
} |
| 3914 |
] |
| 3915 |
} |
| 3916 |
] |
| 3917 |
}, |
| 3918 |
{ |
| 3919 |
"begin": "\\b(transition(-(property|duration|delay|timing-function))?)\\b", |
| 3920 |
"beginCaptures": { |
| 3921 |
"0": { |
| 3922 |
"name": "meta.property-name.less" |
| 3923 |
}, |
| 3924 |
"1": { |
| 3925 |
"name": "support.type.property-name.less" |
| 3926 |
} |
| 3927 |
}, |
| 3928 |
"end": "\\s*(;)|(?=[})])", |
| 3929 |
"endCaptures": { |
| 3930 |
"1": { |
| 3931 |
"name": "punctuation.terminator.rule.less" |
| 3932 |
} |
| 3933 |
}, |
| 3934 |
"patterns": [ |
| 3935 |
{ |
| 3936 |
"captures": { |
| 3937 |
"1": { |
| 3938 |
"name": "punctuation.separator.key-value.less" |
| 3939 |
}, |
| 3940 |
"4": { |
| 3941 |
"name": "meta.property-value.less" |
| 3942 |
} |
| 3943 |
}, |
| 3944 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 3945 |
}, |
| 3946 |
{ |
| 3947 |
"include": "#time-type" |
| 3948 |
}, |
| 3949 |
{ |
| 3950 |
"include": "#property-values" |
| 3951 |
}, |
| 3952 |
{ |
| 3953 |
"include": "#cubic-bezier-function" |
| 3954 |
}, |
| 3955 |
{ |
| 3956 |
"include": "#steps-function" |
| 3957 |
}, |
| 3958 |
{ |
| 3959 |
"captures": { |
| 3960 |
"1": { |
| 3961 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 3962 |
} |
| 3963 |
}, |
| 3964 |
"match": "\\s*(?:(,))" |
| 3965 |
} |
| 3966 |
] |
| 3967 |
}, |
| 3968 |
{ |
| 3969 |
"begin": "\\bfilter\\b", |
| 3970 |
"beginCaptures": { |
| 3971 |
"0": { |
| 3972 |
"name": "support.type.property-name.less" |
| 3973 |
} |
| 3974 |
}, |
| 3975 |
"end": "\\s*(;)|(?=[})])", |
| 3976 |
"endCaptures": { |
| 3977 |
"1": { |
| 3978 |
"name": "punctuation.terminator.rule.less" |
| 3979 |
} |
| 3980 |
}, |
| 3981 |
"name": "meta.property-name.less", |
| 3982 |
"patterns": [ |
| 3983 |
{ |
| 3984 |
"captures": { |
| 3985 |
"1": { |
| 3986 |
"name": "punctuation.separator.key-value.less" |
| 3987 |
}, |
| 3988 |
"4": { |
| 3989 |
"name": "meta.property-value.less" |
| 3990 |
} |
| 3991 |
}, |
| 3992 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 3993 |
}, |
| 3994 |
{ |
| 3995 |
"match": "\\b(inherit|initial|unset|none)\\b", |
| 3996 |
"name": "meta.property-value.less" |
| 3997 |
}, |
| 3998 |
{ |
| 3999 |
"include": "#filter-functions" |
| 4000 |
} |
| 4001 |
] |
| 4002 |
}, |
| 4003 |
{ |
| 4004 |
"begin": "\\bwill-change\\b", |
| 4005 |
"beginCaptures": { |
| 4006 |
"0": { |
| 4007 |
"name": "support.type.property-name.less" |
| 4008 |
} |
| 4009 |
}, |
| 4010 |
"end": "\\s*(;)|(?=[})])", |
| 4011 |
"endCaptures": { |
| 4012 |
"1": { |
| 4013 |
"name": "punctuation.terminator.rule.less" |
| 4014 |
} |
| 4015 |
}, |
| 4016 |
"name": "meta.property-name.less", |
| 4017 |
"patterns": [ |
| 4018 |
{ |
| 4019 |
"captures": { |
| 4020 |
"1": { |
| 4021 |
"name": "punctuation.separator.key-value.less" |
| 4022 |
}, |
| 4023 |
"4": { |
| 4024 |
"name": "meta.property-value.less" |
| 4025 |
} |
| 4026 |
}, |
| 4027 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 4028 |
}, |
| 4029 |
{ |
| 4030 |
"match": "unset|initial|inherit|will-change|auto|scroll-position|contents", |
| 4031 |
"name": "invalid.illegal.property-value.less" |
| 4032 |
}, |
| 4033 |
{ |
| 4034 |
"match": "-?(?:[[-\\w][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[_a-zA-Z][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*", |
| 4035 |
"name": "support.constant.property-value.less" |
| 4036 |
}, |
| 4037 |
{ |
| 4038 |
"captures": { |
| 4039 |
"1": { |
| 4040 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 4041 |
} |
| 4042 |
}, |
| 4043 |
"match": "\\s*(?:(,))" |
| 4044 |
} |
| 4045 |
] |
| 4046 |
}, |
| 4047 |
{ |
| 4048 |
"begin": "\\bcounter-(increment|(re)?set)\\b", |
| 4049 |
"beginCaptures": { |
| 4050 |
"0": { |
| 4051 |
"name": "support.type.property-name.less" |
| 4052 |
} |
| 4053 |
}, |
| 4054 |
"end": "\\s*(;)|(?=[})])", |
| 4055 |
"endCaptures": { |
| 4056 |
"1": { |
| 4057 |
"name": "punctuation.terminator.rule.less" |
| 4058 |
} |
| 4059 |
}, |
| 4060 |
"name": "meta.property-name.less", |
| 4061 |
"patterns": [ |
| 4062 |
{ |
| 4063 |
"captures": { |
| 4064 |
"1": { |
| 4065 |
"name": "punctuation.separator.key-value.less" |
| 4066 |
}, |
| 4067 |
"4": { |
| 4068 |
"name": "meta.property-value.less" |
| 4069 |
} |
| 4070 |
}, |
| 4071 |
"match": "(((\\+_?)?):)([\\s\\t]*)" |
| 4072 |
}, |
| 4073 |
{ |
| 4074 |
"match": "-?(?:[[-\\w][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[_a-zA-Z][^\\x{00}-\\x{9f}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*", |
| 4075 |
"name": "entity.name.constant.counter-name.less" |
| 4076 |
}, |
| 4077 |
{ |
| 4078 |
"include": "#integer-type" |
| 4079 |
}, |
| 4080 |
{ |
| 4081 |
"match": "unset|initial|inherit|auto", |
| 4082 |
"name": "invalid.illegal.property-value.less" |
| 4083 |
} |
| 4084 |
] |
| 4085 |
}, |
| 4086 |
{ |
| 4087 |
"match": "(?x)\\b( accent-height | align-content | align-items | align-self | alignment-baseline | all | animation-timing-function | animation-play-state | animation-name | animation-iteration-count | animation-fill-mode | animation-duration | animation-direction | animation-delay | animation | appearance | ascent | azimuth | backface-visibility | background-size | background-repeat-y | background-repeat-x | background-repeat | background-position-y | background-position-x | background-position | background-origin | background-image | background-color | background-clip | background-blend-mode | background-attachment | background | baseline-shift | begin | bias | blend-mode | border-((top|right|bottom|left)-)?(width|style|color) | border-(top|bottom)-(right|left)-radius | border-image-(width|source|slice|repeat|outset) | border-(top|right|bottom|left|collapse|image|radius|spacing) | border | bottom | box-(align|decoration-break|direction|flex|ordinal-group|orient|pack|shadow|sizing) | break-(after|before|inside) | caption-side | clear | clip-path | clip-rule | clip | color(-(interpolation(-filters)?|profile|rendering))? | columns | column-(break-before|count|fill|gap|(rule(-(color|style|width))?)|span|width) | contain | content | counter-(increment|reset) | cursor | (c|d|f)(x|y) | direction | display | divisor | dominant-baseline | dur | elevation | empty-cells | enable-background | end | fallback | fill(-(opacity|rule))? | filter | flex(-(align|basis|direction|flow|grow|item-align|line-pack|negative|order|pack|positive|preferred-size|shrink|wrap))? | float | flood-(color|opacity) | font-display | font-family | font-feature-settings | font-kerning | font-language-override | font-size(-adjust)? | font-smoothing | font-stretch | font-style | font-synthesis | font-variant(-(alternates|caps|east-asian|ligatures|numeric|position))? | font-weight | font | fr | glyph-orientation-(horizontal|vertical) | grid-(area|gap) | grid-auto-(columns|flow|rows) | grid-(column|row)(-(end|gap|start))? | grid-template(-(areas|columns|rows))? | height | hyphens | image-(orientation|rendering|resolution) | isolation | justify-content | kerning | left | letter-spacing | lighting-color | line-(box-contain|break|clamp|height) | list-style(-(image|position|type))? | margin(-(bottom|left|right|top))? | marker(-(end|mid|start))? | mask(-(clip||composite|image|origin|position|repeat|size|type))? | (max|min)-(height|width) | mix-blend-mode | nbsp-mode | negative | object-(fit|position) | opacity | operator | order | orphans | outline(-(color|offset|style|width))? | overflow(-(scrolling|wrap|x|y))? | pad(ding(-(bottom|left|right|top))?)? | page(-break-(after|before|inside))? | paint-order | pause(-(after|before))? | perspective(-origin(-(x|y))?)? | pitch(-range)? | pointer-events | position | prefix | quotes | range | resize | right | rotate | scale | scroll-behavior | shape-(image-threshold|margin|outside|rendering) | size | speak(-as)? | src | stop-(color|opacity) | stroke(-(dash(array|offset)|line(cap|join)|miterlimit|opacity|width))? | suffix | symbols | system | tab-size | table-layout | tap-highlight-color | text-align(-last)? | text-decoration(-(color|line|style))? | text-emphasis(-(color|position|style))? | text-(anchor|fill-color|height|indent|justify|orientation|overflow|rendering|shadow|transform|underline-position) | top | touch-action | transform(-origin(-(x|y))?) | transform(-style)? | transition(-(delay|duration|property|timing-function))? | translate | unicode-(bidi|range) | user-(drag|select) | vertical-align | visibility | white-space | widows | width | will-change | word-(break|spacing|wrap) | writing-mode | z-index | zoom )\\b", |
| 4088 |
"name": "support.type.property-name.less" |
| 4089 |
}, |
| 4090 |
{ |
| 4091 |
"include": "$self" |
| 4092 |
} |
| 4093 |
] |
| 4094 |
}, |
| 4095 |
{ |
| 4096 |
"begin": "\\b(((\\+_?)?):)([\\s\\t]*)", |
| 4097 |
"captures": { |
| 4098 |
"1": { |
| 4099 |
"name": "punctuation.separator.key-value.less" |
| 4100 |
}, |
| 4101 |
"4": { |
| 4102 |
"name": "meta.property-value.less" |
| 4103 |
} |
| 4104 |
}, |
| 4105 |
"contentName": "meta.property-value.less", |
| 4106 |
"end": "\\s*(;)|(?=[})])", |
| 4107 |
"endCaptures": { |
| 4108 |
"1": { |
| 4109 |
"name": "punctuation.terminator.rule.less" |
| 4110 |
} |
| 4111 |
}, |
| 4112 |
"patterns": [ |
| 4113 |
{ |
| 4114 |
"include": "#property-values" |
| 4115 |
} |
| 4116 |
] |
| 4117 |
}, |
| 4118 |
{ |
| 4119 |
"include": "$self" |
| 4120 |
} |
| 4121 |
] |
| 4122 |
}, |
| 4123 |
"selector": { |
| 4124 |
"patterns": [ |
| 4125 |
{ |
| 4126 |
"begin": "(?=[>~+/\\.*#a-zA-Z\\[&]|(\\:{1,2}[^\\s])|@\\{)", |
| 4127 |
"contentName": "meta.selector.less", |
| 4128 |
"end": "(?=@(?!\\{)|[{;])", |
| 4129 |
"patterns": [ |
| 4130 |
{ |
| 4131 |
"include": "#comment-line" |
| 4132 |
}, |
| 4133 |
{ |
| 4134 |
"include": "#selectors" |
| 4135 |
}, |
| 4136 |
{ |
| 4137 |
"include": "#less-namespace-accessors" |
| 4138 |
}, |
| 4139 |
{ |
| 4140 |
"include": "#less-variable-interpolation" |
| 4141 |
}, |
| 4142 |
{ |
| 4143 |
"captures": { |
| 4144 |
"1": { |
| 4145 |
"name": "punctuation.separator.less" |
| 4146 |
} |
| 4147 |
}, |
| 4148 |
"match": "(\\!)\\s*important", |
| 4149 |
"name": "keyword.other.important.less" |
| 4150 |
} |
| 4151 |
] |
| 4152 |
} |
| 4153 |
] |
| 4154 |
}, |
| 4155 |
"selectors": { |
| 4156 |
"patterns": [ |
| 4157 |
{ |
| 4158 |
"match": "\\b([a-z](?:(?:[-_a-z0-9\\x{00B7}]|\\\\\\.|[[\\x{00C0}-\\x{00D6}][\\x{00D8}-\\x{00F6}][\\x{00F8}-\\x{02FF}][\\x{0300}-\\x{037D}][\\x{037F}-\\x{1FFF}][\\x{200C}-\\x{200D}][\\x{203F}-\\x{2040}][\\x{2070}-\\x{218F}][\\x{2C00}-\\x{2FEF}][\\x{3001}-\\x{D7FF}][\\x{F900}-\\x{FDCF}][\\x{FDF0}-\\x{FFFD}][\\x{10000}-\\x{EFFFF}]]))*-(?:(?:[-_a-z0-9\\x{00B7}]|\\\\\\.|[[\\x{00C0}-\\x{00D6}][\\x{00D8}-\\x{00F6}][\\x{00F8}-\\x{02FF}][\\x{0300}-\\x{037D}][\\x{037F}-\\x{1FFF}][\\x{200C}-\\x{200D}][\\x{203F}-\\x{2040}][\\x{2070}-\\x{218F}][\\x{2C00}-\\x{2FEF}][\\x{3001}-\\x{D7FF}][\\x{F900}-\\x{FDCF}][\\x{FDF0}-\\x{FFFD}][\\x{10000}-\\x{EFFFF}]]))*)\\b", |
| 4159 |
"name": "entity.name.tag.custom.less" |
| 4160 |
}, |
| 4161 |
{ |
| 4162 |
"match": "(?x)\\b( a | abbr | acronym | address | applet | area | article | aside | audio | b | base | basefont | bdi | bdo | big | blockquote | body | br | button | canvas | caption | circle | cite | clipPath | code | col | colgroup | content | data | dataList | dd | defs | del | details | dfn | dialog | dir | div | dl | dt | element | ellipse | em | embed | eventsource | fieldset | figcaption | figure | filter | footer | foreignObject | form | frame | frameset | g | glyph | glyphRef | h1 | h2 | h3 | h4 | h5 | h6 | head | header | hgroup | hr | html | i | iframe | image | img | input | ins | isindex | kbd | keygen | label | legend | li | line | linearGradient | link | main | map | mark | marker | mask | menu | meta | meter | nav | noframes | noscript | object | ol | optgroup | option | output | p | param | path | pattern | picture | polygon | polyline | pre | progress | q | radialGradient | rect | rp | ruby | rt | rtc | s | samp | script | section | select | shadow | small | source | span | stop | strike | strong | style | sub | summary | sup | svg | switch | symbol | table | tbody | td | template | textarea | textPath | tfoot | th | thead | time | title | tr | track | tref | tspan | tt | u | ul | use | var | video | wbr | xmp )\\b", |
| 4163 |
"name": "entity.name.tag.less" |
| 4164 |
}, |
| 4165 |
{ |
| 4166 |
"begin": "(\\.)", |
| 4167 |
"beginCaptures": { |
| 4168 |
"1": { |
| 4169 |
"name": "punctuation.definition.entity.less" |
| 4170 |
} |
| 4171 |
}, |
| 4172 |
"end": "(?![-\\w]|[^\\x{00}-\\x{9f}]|\\\\([A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9])|(\\@(?=\\{)))", |
| 4173 |
"name": "entity.other.attribute-name.class.less", |
| 4174 |
"patterns": [ |
| 4175 |
{ |
| 4176 |
"include": "#less-variable-interpolation" |
| 4177 |
} |
| 4178 |
] |
| 4179 |
}, |
| 4180 |
{ |
| 4181 |
"begin": "(#)", |
| 4182 |
"beginCaptures": { |
| 4183 |
"1": { |
| 4184 |
"name": "punctuation.definition.entity.less" |
| 4185 |
} |
| 4186 |
}, |
| 4187 |
"end": "(?![-\\w]|[^\\x{00}-\\x{9f}]|\\\\([A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9])|(\\@(?=\\{)))", |
| 4188 |
"name": "entity.other.attribute-name.id.less", |
| 4189 |
"patterns": [ |
| 4190 |
{ |
| 4191 |
"include": "#less-variable-interpolation" |
| 4192 |
} |
| 4193 |
] |
| 4194 |
}, |
| 4195 |
{ |
| 4196 |
"begin": "(&)", |
| 4197 |
"beginCaptures": { |
| 4198 |
"1": { |
| 4199 |
"name": "punctuation.definition.entity.less" |
| 4200 |
} |
| 4201 |
}, |
| 4202 |
"contentName": "entity.other.attribute-name.parent.less", |
| 4203 |
"end": "(?![-\\w]|[^\\x{00}-\\x{9f}]|\\\\([A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9])|(\\@(?=\\{)))", |
| 4204 |
"name": "entity.other.attribute-name.parent.less", |
| 4205 |
"patterns": [ |
| 4206 |
{ |
| 4207 |
"include": "#less-variable-interpolation" |
| 4208 |
}, |
| 4209 |
{ |
| 4210 |
"include": "#selectors" |
| 4211 |
} |
| 4212 |
] |
| 4213 |
}, |
| 4214 |
{ |
| 4215 |
"include": "#pseudo-elements" |
| 4216 |
}, |
| 4217 |
{ |
| 4218 |
"include": "#pseudo-classes" |
| 4219 |
}, |
| 4220 |
{ |
| 4221 |
"include": "#less-extend" |
| 4222 |
}, |
| 4223 |
{ |
| 4224 |
"match": "(?!\\+_?:)(?:>{1,3}|[~+])(?![>~+;}])", |
| 4225 |
"name": "punctuation.separator.combinator.less" |
| 4226 |
}, |
| 4227 |
{ |
| 4228 |
"match": "((?:>{1,3}|[~+])){2,}", |
| 4229 |
"name": "invalid.illegal.combinator.less" |
| 4230 |
}, |
| 4231 |
{ |
| 4232 |
"match": "\\/deep\\/", |
| 4233 |
"name": "invalid.illegal.combinator.less" |
| 4234 |
}, |
| 4235 |
{ |
| 4236 |
"begin": "\\[", |
| 4237 |
"captures": { |
| 4238 |
"0": { |
| 4239 |
"name": "punctuation.definition.entity.less" |
| 4240 |
} |
| 4241 |
}, |
| 4242 |
"end": "\\]", |
| 4243 |
"name": "meta.attribute-selector.less", |
| 4244 |
"patterns": [ |
| 4245 |
{ |
| 4246 |
"include": "#less-variable-interpolation" |
| 4247 |
}, |
| 4248 |
{ |
| 4249 |
"include": "#qualified-name" |
| 4250 |
}, |
| 4251 |
{ |
| 4252 |
"match": "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", |
| 4253 |
"name": "entity.other.attribute-name.less" |
| 4254 |
}, |
| 4255 |
{ |
| 4256 |
"begin": "\\s*([~*|^$]?=)\\s*", |
| 4257 |
"captures": { |
| 4258 |
"1": { |
| 4259 |
"name": "keyword.operator.attribute-selector.less" |
| 4260 |
} |
| 4261 |
}, |
| 4262 |
"end": "(?=(\\s|\\]))", |
| 4263 |
"patterns": [ |
| 4264 |
{ |
| 4265 |
"include": "#less-variable-interpolation" |
| 4266 |
}, |
| 4267 |
{ |
| 4268 |
"match": "[^\\s\\]\\['\"]", |
| 4269 |
"name": "string.unquoted.less" |
| 4270 |
}, |
| 4271 |
{ |
| 4272 |
"include": "#literal-string" |
| 4273 |
}, |
| 4274 |
{ |
| 4275 |
"captures": { |
| 4276 |
"1": { |
| 4277 |
"name": "keyword.other.less" |
| 4278 |
} |
| 4279 |
}, |
| 4280 |
"match": "(?:\\s+([iI]))?" |
| 4281 |
}, |
| 4282 |
{ |
| 4283 |
"match": "\\]", |
| 4284 |
"name": "punctuation.definition.entity.less" |
| 4285 |
} |
| 4286 |
] |
| 4287 |
} |
| 4288 |
] |
| 4289 |
}, |
| 4290 |
{ |
| 4291 |
"captures": { |
| 4292 |
"1": { |
| 4293 |
"name": "punctuation.definition.arbitrary-repetition.less" |
| 4294 |
} |
| 4295 |
}, |
| 4296 |
"match": "\\s*(?:(,))" |
| 4297 |
}, |
| 4298 |
{ |
| 4299 |
"match": "\\*", |
| 4300 |
"name": "entity.name.tag.wildcard.less" |
| 4301 |
} |
| 4302 |
] |
| 4303 |
}, |
| 4304 |
"shape-functions": { |
| 4305 |
"patterns": [ |
| 4306 |
{ |
| 4307 |
"begin": "\\b(rect)(?=\\()", |
| 4308 |
"beginCaptures": { |
| 4309 |
"0": { |
| 4310 |
"name": "support.function.shape.less" |
| 4311 |
} |
| 4312 |
}, |
| 4313 |
"end": "\\)", |
| 4314 |
"endCaptures": { |
| 4315 |
"0": { |
| 4316 |
"name": "punctuation.definition.group.end.less" |
| 4317 |
} |
| 4318 |
}, |
| 4319 |
"name": "meta.function-call.less", |
| 4320 |
"patterns": [ |
| 4321 |
{ |
| 4322 |
"begin": "\\(", |
| 4323 |
"beginCaptures": { |
| 4324 |
"0": { |
| 4325 |
"name": "punctuation.definition.group.begin.less" |
| 4326 |
} |
| 4327 |
}, |
| 4328 |
"end": "(?=\\))", |
| 4329 |
"patterns": [ |
| 4330 |
{ |
| 4331 |
"match": "\\bauto\\b", |
| 4332 |
"name": "support.constant.property-value.less" |
| 4333 |
}, |
| 4334 |
{ |
| 4335 |
"include": "#length-type" |
| 4336 |
}, |
| 4337 |
{ |
| 4338 |
"include": "#comma-delimiter" |
| 4339 |
} |
| 4340 |
] |
| 4341 |
} |
| 4342 |
] |
| 4343 |
}, |
| 4344 |
{ |
| 4345 |
"begin": "\\b(inset)(?=\\()", |
| 4346 |
"beginCaptures": { |
| 4347 |
"0": { |
| 4348 |
"name": "support.function.shape.less" |
| 4349 |
} |
| 4350 |
}, |
| 4351 |
"end": "\\)", |
| 4352 |
"endCaptures": { |
| 4353 |
"0": { |
| 4354 |
"name": "punctuation.definition.group.end.less" |
| 4355 |
} |
| 4356 |
}, |
| 4357 |
"name": "meta.function-call.less", |
| 4358 |
"patterns": [ |
| 4359 |
{ |
| 4360 |
"begin": "\\(", |
| 4361 |
"beginCaptures": { |
| 4362 |
"0": { |
| 4363 |
"name": "punctuation.definition.group.begin.less" |
| 4364 |
} |
| 4365 |
}, |
| 4366 |
"end": "(?=\\))", |
| 4367 |
"patterns": [ |
| 4368 |
{ |
| 4369 |
"match": "\\bround\\b", |
| 4370 |
"name": "keyword.other.less" |
| 4371 |
}, |
| 4372 |
{ |
| 4373 |
"include": "#length-type" |
| 4374 |
}, |
| 4375 |
{ |
| 4376 |
"include": "#percentage-type" |
| 4377 |
} |
| 4378 |
] |
| 4379 |
} |
| 4380 |
] |
| 4381 |
}, |
| 4382 |
{ |
| 4383 |
"begin": "\\b(circle|ellipse)(?=\\()", |
| 4384 |
"beginCaptures": { |
| 4385 |
"0": { |
| 4386 |
"name": "support.function.shape.less" |
| 4387 |
} |
| 4388 |
}, |
| 4389 |
"end": "\\)", |
| 4390 |
"endCaptures": { |
| 4391 |
"0": { |
| 4392 |
"name": "punctuation.definition.group.end.less" |
| 4393 |
} |
| 4394 |
}, |
| 4395 |
"name": "meta.function-call.less", |
| 4396 |
"patterns": [ |
| 4397 |
{ |
| 4398 |
"begin": "\\(", |
| 4399 |
"beginCaptures": { |
| 4400 |
"0": { |
| 4401 |
"name": "punctuation.definition.group.begin.less" |
| 4402 |
} |
| 4403 |
}, |
| 4404 |
"end": "(?=\\))", |
| 4405 |
"patterns": [ |
| 4406 |
{ |
| 4407 |
"match": "\\bat\\b", |
| 4408 |
"name": "keyword.other.less" |
| 4409 |
}, |
| 4410 |
{ |
| 4411 |
"match": "\\b(top|right|bottom|left|center|closest-side|farthest-side)\\b", |
| 4412 |
"name": "support.constant.property-value.less" |
| 4413 |
}, |
| 4414 |
{ |
| 4415 |
"include": "#length-type" |
| 4416 |
}, |
| 4417 |
{ |
| 4418 |
"include": "#percentage-type" |
| 4419 |
} |
| 4420 |
] |
| 4421 |
} |
| 4422 |
] |
| 4423 |
}, |
| 4424 |
{ |
| 4425 |
"begin": "\\b(polygon)(?=\\()", |
| 4426 |
"beginCaptures": { |
| 4427 |
"0": { |
| 4428 |
"name": "support.function.shape.less" |
| 4429 |
} |
| 4430 |
}, |
| 4431 |
"end": "\\)", |
| 4432 |
"endCaptures": { |
| 4433 |
"0": { |
| 4434 |
"name": "punctuation.definition.group.end.less" |
| 4435 |
} |
| 4436 |
}, |
| 4437 |
"name": "meta.function-call.less", |
| 4438 |
"patterns": [ |
| 4439 |
{ |
| 4440 |
"begin": "\\(", |
| 4441 |
"beginCaptures": { |
| 4442 |
"0": { |
| 4443 |
"name": "punctuation.definition.group.begin.less" |
| 4444 |
} |
| 4445 |
}, |
| 4446 |
"end": "(?=\\))", |
| 4447 |
"patterns": [ |
| 4448 |
{ |
| 4449 |
"match": "\\b(nonzero|evenodd)\\b", |
| 4450 |
"name": "support.constant.property-value.less" |
| 4451 |
}, |
| 4452 |
{ |
| 4453 |
"include": "#length-type" |
| 4454 |
}, |
| 4455 |
{ |
| 4456 |
"include": "#percentage-type" |
| 4457 |
} |
| 4458 |
] |
| 4459 |
} |
| 4460 |
] |
| 4461 |
} |
| 4462 |
] |
| 4463 |
}, |
| 4464 |
"steps-function": { |
| 4465 |
"begin": "\\b(steps)(?=\\()", |
| 4466 |
"beginCaptures": { |
| 4467 |
"0": { |
| 4468 |
"name": "support.function.timing.less" |
| 4469 |
} |
| 4470 |
}, |
| 4471 |
"end": "\\)", |
| 4472 |
"endCaptures": { |
| 4473 |
"0": { |
| 4474 |
"name": "punctuation.definition.group.end.less" |
| 4475 |
} |
| 4476 |
}, |
| 4477 |
"name": "meta.function-call.less", |
| 4478 |
"patterns": [ |
| 4479 |
{ |
| 4480 |
"begin": "\\(", |
| 4481 |
"beginCaptures": { |
| 4482 |
"0": { |
| 4483 |
"name": "punctuation.definition.group.begin.less" |
| 4484 |
} |
| 4485 |
}, |
| 4486 |
"end": "(?=\\))", |
| 4487 |
"patterns": [ |
| 4488 |
{ |
| 4489 |
"include": "#comma-delimiter" |
| 4490 |
}, |
| 4491 |
{ |
| 4492 |
"include": "#integer-type" |
| 4493 |
}, |
| 4494 |
{ |
| 4495 |
"match": "(end|middle|start)", |
| 4496 |
"name": "support.keyword.timing-direction.less" |
| 4497 |
} |
| 4498 |
] |
| 4499 |
} |
| 4500 |
] |
| 4501 |
}, |
| 4502 |
"string-content": { |
| 4503 |
"patterns": [ |
| 4504 |
{ |
| 4505 |
"include": "#less-variable-interpolation" |
| 4506 |
}, |
| 4507 |
{ |
| 4508 |
"match": "\\\\\\s*\\n", |
| 4509 |
"name": "constant.character.escape.newline.less" |
| 4510 |
}, |
| 4511 |
{ |
| 4512 |
"match": "\\\\(\\h{1,6}|.)", |
| 4513 |
"name": "constant.character.escape.less" |
| 4514 |
} |
| 4515 |
] |
| 4516 |
}, |
| 4517 |
"symbols-function": { |
| 4518 |
"begin": "\\b(symbols)(?=\\()", |
| 4519 |
"beginCaptures": { |
| 4520 |
"1": { |
| 4521 |
"name": "support.function.counter.less" |
| 4522 |
} |
| 4523 |
}, |
| 4524 |
"end": "\\)", |
| 4525 |
"endCaptures": { |
| 4526 |
"0": { |
| 4527 |
"name": "punctuation.definition.group.end.less" |
| 4528 |
} |
| 4529 |
}, |
| 4530 |
"name": "meta.function-call.less", |
| 4531 |
"patterns": [ |
| 4532 |
{ |
| 4533 |
"begin": "\\(", |
| 4534 |
"beginCaptures": { |
| 4535 |
"0": { |
| 4536 |
"name": "punctuation.definition.group.begin.less" |
| 4537 |
} |
| 4538 |
}, |
| 4539 |
"end": "(?=\\))", |
| 4540 |
"patterns": [ |
| 4541 |
{ |
| 4542 |
"match": "\\b(cyclic|numeric|alphabetic|symbolic|fixed)\\b", |
| 4543 |
"name": "support.constant.symbol-type.less" |
| 4544 |
}, |
| 4545 |
{ |
| 4546 |
"include": "#comma-delimiter" |
| 4547 |
}, |
| 4548 |
{ |
| 4549 |
"include": "#literal-string" |
| 4550 |
}, |
| 4551 |
{ |
| 4552 |
"include": "#image-type" |
| 4553 |
} |
| 4554 |
] |
| 4555 |
} |
| 4556 |
] |
| 4557 |
}, |
| 4558 |
"time-type": { |
| 4559 |
"captures": { |
| 4560 |
"1": { |
| 4561 |
"name": "keyword.other.unit.less" |
| 4562 |
} |
| 4563 |
}, |
| 4564 |
"match": "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(s|ms))\\b", |
| 4565 |
"name": "constant.numeric.less" |
| 4566 |
}, |
| 4567 |
"transform-functions": { |
| 4568 |
"patterns": [ |
| 4569 |
{ |
| 4570 |
"begin": "\\b(matrix3d|scale3d|matrix|scale)(?=\\()", |
| 4571 |
"beginCaptures": { |
| 4572 |
"0": { |
| 4573 |
"name": "support.function.transform.less" |
| 4574 |
} |
| 4575 |
}, |
| 4576 |
"end": "\\)", |
| 4577 |
"endCaptures": { |
| 4578 |
"0": { |
| 4579 |
"name": "punctuation.definition.group.end.less" |
| 4580 |
} |
| 4581 |
}, |
| 4582 |
"name": "meta.function-call.less", |
| 4583 |
"patterns": [ |
| 4584 |
{ |
| 4585 |
"begin": "\\(", |
| 4586 |
"beginCaptures": { |
| 4587 |
"0": { |
| 4588 |
"name": "punctuation.definition.group.begin.less" |
| 4589 |
} |
| 4590 |
}, |
| 4591 |
"end": "(?=\\))", |
| 4592 |
"patterns": [ |
| 4593 |
{ |
| 4594 |
"include": "#comma-delimiter" |
| 4595 |
}, |
| 4596 |
{ |
| 4597 |
"include": "#number-type" |
| 4598 |
}, |
| 4599 |
{ |
| 4600 |
"include": "#less-variables" |
| 4601 |
}, |
| 4602 |
{ |
| 4603 |
"include": "#var-function" |
| 4604 |
} |
| 4605 |
] |
| 4606 |
} |
| 4607 |
] |
| 4608 |
}, |
| 4609 |
{ |
| 4610 |
"begin": "\\b(translate(3d)?)(?=\\()", |
| 4611 |
"beginCaptures": { |
| 4612 |
"0": { |
| 4613 |
"name": "support.function.transform.less" |
| 4614 |
} |
| 4615 |
}, |
| 4616 |
"end": "\\)", |
| 4617 |
"endCaptures": { |
| 4618 |
"0": { |
| 4619 |
"name": "punctuation.definition.group.end.less" |
| 4620 |
} |
| 4621 |
}, |
| 4622 |
"name": "meta.function-call.less", |
| 4623 |
"patterns": [ |
| 4624 |
{ |
| 4625 |
"begin": "\\(", |
| 4626 |
"beginCaptures": { |
| 4627 |
"0": { |
| 4628 |
"name": "punctuation.definition.group.begin.less" |
| 4629 |
} |
| 4630 |
}, |
| 4631 |
"end": "(?=\\))", |
| 4632 |
"patterns": [ |
| 4633 |
{ |
| 4634 |
"include": "#comma-delimiter" |
| 4635 |
}, |
| 4636 |
{ |
| 4637 |
"include": "#percentage-type" |
| 4638 |
}, |
| 4639 |
{ |
| 4640 |
"include": "#length-type" |
| 4641 |
}, |
| 4642 |
{ |
| 4643 |
"include": "#number-type" |
| 4644 |
}, |
| 4645 |
{ |
| 4646 |
"include": "#less-variables" |
| 4647 |
}, |
| 4648 |
{ |
| 4649 |
"include": "#var-function" |
| 4650 |
} |
| 4651 |
] |
| 4652 |
} |
| 4653 |
] |
| 4654 |
}, |
| 4655 |
{ |
| 4656 |
"begin": "\\b(translate[XY])(?=\\()", |
| 4657 |
"beginCaptures": { |
| 4658 |
"0": { |
| 4659 |
"name": "support.function.transform.less" |
| 4660 |
} |
| 4661 |
}, |
| 4662 |
"end": "\\)", |
| 4663 |
"endCaptures": { |
| 4664 |
"0": { |
| 4665 |
"name": "punctuation.definition.group.end.less" |
| 4666 |
} |
| 4667 |
}, |
| 4668 |
"name": "meta.function-call.less", |
| 4669 |
"patterns": [ |
| 4670 |
{ |
| 4671 |
"begin": "\\(", |
| 4672 |
"beginCaptures": { |
| 4673 |
"0": { |
| 4674 |
"name": "punctuation.definition.group.begin.less" |
| 4675 |
} |
| 4676 |
}, |
| 4677 |
"end": "(?=\\))", |
| 4678 |
"patterns": [ |
| 4679 |
{ |
| 4680 |
"include": "#percentage-type" |
| 4681 |
}, |
| 4682 |
{ |
| 4683 |
"include": "#length-type" |
| 4684 |
}, |
| 4685 |
{ |
| 4686 |
"include": "#number-type" |
| 4687 |
}, |
| 4688 |
{ |
| 4689 |
"include": "#less-variables" |
| 4690 |
}, |
| 4691 |
{ |
| 4692 |
"include": "#var-function" |
| 4693 |
} |
| 4694 |
] |
| 4695 |
} |
| 4696 |
] |
| 4697 |
}, |
| 4698 |
{ |
| 4699 |
"begin": "\\b(rotate[XYZ]?|skew[XY])(?=\\()", |
| 4700 |
"beginCaptures": { |
| 4701 |
"0": { |
| 4702 |
"name": "support.function.transform.less" |
| 4703 |
} |
| 4704 |
}, |
| 4705 |
"end": "\\)", |
| 4706 |
"endCaptures": { |
| 4707 |
"0": { |
| 4708 |
"name": "punctuation.definition.group.end.less" |
| 4709 |
} |
| 4710 |
}, |
| 4711 |
"name": "meta.function-call.less", |
| 4712 |
"patterns": [ |
| 4713 |
{ |
| 4714 |
"begin": "\\(", |
| 4715 |
"beginCaptures": { |
| 4716 |
"0": { |
| 4717 |
"name": "punctuation.definition.group.begin.less" |
| 4718 |
} |
| 4719 |
}, |
| 4720 |
"end": "(?=\\))", |
| 4721 |
"patterns": [ |
| 4722 |
{ |
| 4723 |
"include": "#angle-type" |
| 4724 |
}, |
| 4725 |
{ |
| 4726 |
"include": "#less-variables" |
| 4727 |
}, |
| 4728 |
{ |
| 4729 |
"include": "#calc-function" |
| 4730 |
}, |
| 4731 |
{ |
| 4732 |
"include": "#var-function" |
| 4733 |
} |
| 4734 |
] |
| 4735 |
} |
| 4736 |
] |
| 4737 |
}, |
| 4738 |
{ |
| 4739 |
"begin": "\\b(skew)(?=\\()", |
| 4740 |
"beginCaptures": { |
| 4741 |
"0": { |
| 4742 |
"name": "support.function.transform.less" |
| 4743 |
} |
| 4744 |
}, |
| 4745 |
"end": "\\)", |
| 4746 |
"endCaptures": { |
| 4747 |
"0": { |
| 4748 |
"name": "punctuation.definition.group.end.less" |
| 4749 |
} |
| 4750 |
}, |
| 4751 |
"name": "meta.function-call.less", |
| 4752 |
"patterns": [ |
| 4753 |
{ |
| 4754 |
"begin": "\\(", |
| 4755 |
"beginCaptures": { |
| 4756 |
"0": { |
| 4757 |
"name": "punctuation.definition.group.begin.less" |
| 4758 |
} |
| 4759 |
}, |
| 4760 |
"end": "(?=\\))", |
| 4761 |
"patterns": [ |
| 4762 |
{ |
| 4763 |
"include": "#comma-delimiter" |
| 4764 |
}, |
| 4765 |
{ |
| 4766 |
"include": "#angle-type" |
| 4767 |
}, |
| 4768 |
{ |
| 4769 |
"include": "#less-variables" |
| 4770 |
}, |
| 4771 |
{ |
| 4772 |
"include": "#calc-function" |
| 4773 |
}, |
| 4774 |
{ |
| 4775 |
"include": "#var-function" |
| 4776 |
} |
| 4777 |
] |
| 4778 |
} |
| 4779 |
] |
| 4780 |
}, |
| 4781 |
{ |
| 4782 |
"begin": "\\b(translateZ|perspective)(?=\\()", |
| 4783 |
"beginCaptures": { |
| 4784 |
"0": { |
| 4785 |
"name": "support.function.transform.less" |
| 4786 |
} |
| 4787 |
}, |
| 4788 |
"end": "\\)", |
| 4789 |
"endCaptures": { |
| 4790 |
"0": { |
| 4791 |
"name": "punctuation.definition.group.end.less" |
| 4792 |
} |
| 4793 |
}, |
| 4794 |
"name": "meta.function-call.less", |
| 4795 |
"patterns": [ |
| 4796 |
{ |
| 4797 |
"begin": "\\(", |
| 4798 |
"beginCaptures": { |
| 4799 |
"0": { |
| 4800 |
"name": "punctuation.definition.group.begin.less" |
| 4801 |
} |
| 4802 |
}, |
| 4803 |
"end": "(?=\\))", |
| 4804 |
"patterns": [ |
| 4805 |
{ |
| 4806 |
"include": "#length-type" |
| 4807 |
}, |
| 4808 |
{ |
| 4809 |
"include": "#less-variables" |
| 4810 |
}, |
| 4811 |
{ |
| 4812 |
"include": "#calc-function" |
| 4813 |
}, |
| 4814 |
{ |
| 4815 |
"include": "#var-function" |
| 4816 |
} |
| 4817 |
] |
| 4818 |
} |
| 4819 |
] |
| 4820 |
}, |
| 4821 |
{ |
| 4822 |
"begin": "\\b(rotate3d)(?=\\()", |
| 4823 |
"beginCaptures": { |
| 4824 |
"0": { |
| 4825 |
"name": "support.function.transform.less" |
| 4826 |
} |
| 4827 |
}, |
| 4828 |
"end": "\\)", |
| 4829 |
"endCaptures": { |
| 4830 |
"0": { |
| 4831 |
"name": "punctuation.definition.group.end.less" |
| 4832 |
} |
| 4833 |
}, |
| 4834 |
"name": "meta.function-call.less", |
| 4835 |
"patterns": [ |
| 4836 |
{ |
| 4837 |
"begin": "\\(", |
| 4838 |
"beginCaptures": { |
| 4839 |
"0": { |
| 4840 |
"name": "punctuation.definition.group.begin.less" |
| 4841 |
} |
| 4842 |
}, |
| 4843 |
"end": "(?=\\))", |
| 4844 |
"patterns": [ |
| 4845 |
{ |
| 4846 |
"include": "#comma-delimiter" |
| 4847 |
}, |
| 4848 |
{ |
| 4849 |
"include": "#angle-type" |
| 4850 |
}, |
| 4851 |
{ |
| 4852 |
"include": "#number-type" |
| 4853 |
}, |
| 4854 |
{ |
| 4855 |
"include": "#less-variables" |
| 4856 |
}, |
| 4857 |
{ |
| 4858 |
"include": "#calc-function" |
| 4859 |
}, |
| 4860 |
{ |
| 4861 |
"include": "#var-function" |
| 4862 |
} |
| 4863 |
] |
| 4864 |
} |
| 4865 |
] |
| 4866 |
}, |
| 4867 |
{ |
| 4868 |
"begin": "\\b(scale[XYZ])(?=\\()", |
| 4869 |
"beginCaptures": { |
| 4870 |
"0": { |
| 4871 |
"name": "support.function.transform.less" |
| 4872 |
} |
| 4873 |
}, |
| 4874 |
"end": "\\)", |
| 4875 |
"endCaptures": { |
| 4876 |
"0": { |
| 4877 |
"name": "punctuation.definition.group.end.less" |
| 4878 |
} |
| 4879 |
}, |
| 4880 |
"name": "meta.function-call.less", |
| 4881 |
"patterns": [ |
| 4882 |
{ |
| 4883 |
"begin": "\\(", |
| 4884 |
"beginCaptures": { |
| 4885 |
"0": { |
| 4886 |
"name": "punctuation.definition.group.begin.less" |
| 4887 |
} |
| 4888 |
}, |
| 4889 |
"end": "(?=\\))", |
| 4890 |
"patterns": [ |
| 4891 |
{ |
| 4892 |
"include": "#comma-delimiter" |
| 4893 |
}, |
| 4894 |
{ |
| 4895 |
"include": "#number-type" |
| 4896 |
}, |
| 4897 |
{ |
| 4898 |
"include": "#less-variables" |
| 4899 |
}, |
| 4900 |
{ |
| 4901 |
"include": "#calc-function" |
| 4902 |
}, |
| 4903 |
{ |
| 4904 |
"include": "#var-function" |
| 4905 |
} |
| 4906 |
] |
| 4907 |
} |
| 4908 |
] |
| 4909 |
} |
| 4910 |
] |
| 4911 |
}, |
| 4912 |
"unicode-range": { |
| 4913 |
"captures": { |
| 4914 |
"1": { |
| 4915 |
"name": "support.constant.unicode-range.prefix.less" |
| 4916 |
}, |
| 4917 |
"2": { |
| 4918 |
"name": "constant.codepoint-range.less" |
| 4919 |
}, |
| 4920 |
"3": { |
| 4921 |
"name": "punctuation.section.range.less" |
| 4922 |
} |
| 4923 |
}, |
| 4924 |
"match": "(?i)(u\\+)([0-9a-f?]{1,6}(?:(-)[0-9a-f]{1,6})?)", |
| 4925 |
"name": "support.unicode-range.less" |
| 4926 |
}, |
| 4927 |
"unquoted-string": { |
| 4928 |
"match": "[^\\s'\"]", |
| 4929 |
"name": "string.unquoted.less" |
| 4930 |
}, |
| 4931 |
"url-function": { |
| 4932 |
"begin": "\\b(url)(?=\\()", |
| 4933 |
"beginCaptures": { |
| 4934 |
"1": { |
| 4935 |
"name": "support.function.url.less" |
| 4936 |
} |
| 4937 |
}, |
| 4938 |
"end": "\\)", |
| 4939 |
"endCaptures": { |
| 4940 |
"0": { |
| 4941 |
"name": "punctuation.definition.group.end.less" |
| 4942 |
} |
| 4943 |
}, |
| 4944 |
"name": "meta.function-call.less", |
| 4945 |
"patterns": [ |
| 4946 |
{ |
| 4947 |
"begin": "\\(", |
| 4948 |
"beginCaptures": { |
| 4949 |
"0": { |
| 4950 |
"name": "punctuation.definition.group.begin.less" |
| 4951 |
} |
| 4952 |
}, |
| 4953 |
"end": "(?=\\))", |
| 4954 |
"patterns": [ |
| 4955 |
{ |
| 4956 |
"include": "#less-variables" |
| 4957 |
}, |
| 4958 |
{ |
| 4959 |
"include": "#literal-string" |
| 4960 |
}, |
| 4961 |
{ |
| 4962 |
"include": "#unquoted-string" |
| 4963 |
}, |
| 4964 |
{ |
| 4965 |
"include": "#var-function" |
| 4966 |
} |
| 4967 |
] |
| 4968 |
} |
| 4969 |
] |
| 4970 |
}, |
| 4971 |
"var-function": { |
| 4972 |
"patterns": [ |
| 4973 |
{ |
| 4974 |
"begin": "\\b(var)(?=\\()", |
| 4975 |
"beginCaptures": { |
| 4976 |
"1": { |
| 4977 |
"name": "support.function.var.less" |
| 4978 |
} |
| 4979 |
}, |
| 4980 |
"end": "\\)", |
| 4981 |
"endCaptures": { |
| 4982 |
"0": { |
| 4983 |
"name": "punctuation.definition.group.end.less" |
| 4984 |
} |
| 4985 |
}, |
| 4986 |
"name": "meta.function-call.less", |
| 4987 |
"patterns": [ |
| 4988 |
{ |
| 4989 |
"begin": "\\(", |
| 4990 |
"beginCaptures": { |
| 4991 |
"0": { |
| 4992 |
"name": "punctuation.definition.group.begin.less" |
| 4993 |
} |
| 4994 |
}, |
| 4995 |
"end": "(?=\\))", |
| 4996 |
"patterns": [ |
| 4997 |
{ |
| 4998 |
"include": "#comma-delimiter" |
| 4999 |
}, |
| 5000 |
{ |
| 5001 |
"include": "#custom-property-name" |
| 5002 |
}, |
| 5003 |
{ |
| 5004 |
"include": "#less-variables" |
| 5005 |
} |
| 5006 |
] |
| 5007 |
} |
| 5008 |
] |
| 5009 |
} |
| 5010 |
] |
| 5011 |
}, |
| 5012 |
"vendor-prefix": { |
| 5013 |
"match": "-(?:webkit|moz(-osx)?|ms|o)-", |
| 5014 |
"name": "support.type.vendor-prefix.less" |
| 5015 |
} |
| 5016 |
} |
| 5017 |
} |
| 5018 |
|