| 1 | { |
| 2 | "scopeName": "source.css.scss", |
| 3 | "name": "SCSS", |
| 4 | "fileTypes": [ |
| 5 | "scss", |
| 6 | "css.scss", |
| 7 | "css.scss.erb", |
| 8 | "scss.erb" |
| 9 | ], |
| 10 | "patterns": [ |
| 11 | { |
| 12 | "include": "#variable_setting" |
| 13 | }, |
| 14 | { |
| 15 | "include": "#at_rule_include" |
| 16 | }, |
| 17 | { |
| 18 | "include": "#at_rule_import" |
| 19 | }, |
| 20 | { |
| 21 | "include": "#general" |
| 22 | }, |
| 23 | { |
| 24 | "include": "#flow_control" |
| 25 | }, |
| 26 | { |
| 27 | "include": "#rules" |
| 28 | }, |
| 29 | { |
| 30 | "include": "#property_list" |
| 31 | }, |
| 32 | { |
| 33 | "include": "#at_rule_mixin" |
| 34 | }, |
| 35 | { |
| 36 | "include": "#at_rule_media" |
| 37 | }, |
| 38 | { |
| 39 | "include": "#at_rule_function" |
| 40 | }, |
| 41 | { |
| 42 | "include": "#at_rule_charset" |
| 43 | }, |
| 44 | { |
| 45 | "include": "#at_rule_option" |
| 46 | }, |
| 47 | { |
| 48 | "include": "#at_rule_namespace" |
| 49 | }, |
| 50 | { |
| 51 | "include": "#at_rule_fontface" |
| 52 | }, |
| 53 | { |
| 54 | "include": "#at_rule_page" |
| 55 | }, |
| 56 | { |
| 57 | "include": "#at_rule_keyframes" |
| 58 | }, |
| 59 | { |
| 60 | "include": "#at_rule_at_root" |
| 61 | }, |
| 62 | { |
| 63 | "include": "#at_rule_supports" |
| 64 | } |
| 65 | ], |
| 66 | "repository": { |
| 67 | "at_rule__": { |
| 68 | "comment": "Note how all @rules are prefixed." |
| 69 | }, |
| 70 | "at_rule_charset": { |
| 71 | "begin": "\\s*((@)charset\\b)\\s*", |
| 72 | "captures": { |
| 73 | "1": { |
| 74 | "name": "keyword.control.at-rule.charset.scss" |
| 75 | }, |
| 76 | "2": { |
| 77 | "name": "punctuation.definition.keyword.scss" |
| 78 | } |
| 79 | }, |
| 80 | "comment": "Charset", |
| 81 | "end": "\\s*((?=;|$))", |
| 82 | "name": "meta.at-rule.charset.scss", |
| 83 | "patterns": [ |
| 84 | { |
| 85 | "include": "#variable" |
| 86 | }, |
| 87 | { |
| 88 | "include": "#string_single" |
| 89 | }, |
| 90 | { |
| 91 | "include": "#string_double" |
| 92 | } |
| 93 | ] |
| 94 | }, |
| 95 | "at_rule_content": { |
| 96 | "begin": "\\s*((@)content\\b)\\s*", |
| 97 | "captures": { |
| 98 | "1": { |
| 99 | "name": "keyword.control.content.scss" |
| 100 | } |
| 101 | }, |
| 102 | "end": "\\s*((?=;))", |
| 103 | "name": "meta.content.scss", |
| 104 | "patterns": [ |
| 105 | { |
| 106 | "include": "#variable" |
| 107 | }, |
| 108 | { |
| 109 | "include": "#selectors" |
| 110 | }, |
| 111 | { |
| 112 | "include": "#property_values" |
| 113 | } |
| 114 | ] |
| 115 | }, |
| 116 | "at_rule_each": { |
| 117 | "begin": "\\s*((@)each\\b)\\s*", |
| 118 | "captures": { |
| 119 | "1": { |
| 120 | "name": "keyword.control.each.scss" |
| 121 | }, |
| 122 | "2": { |
| 123 | "name": "punctuation.definition.keyword.scss" |
| 124 | } |
| 125 | }, |
| 126 | "end": "\\s*((?=}))", |
| 127 | "name": "meta.at-rule.each.scss", |
| 128 | "patterns": [ |
| 129 | { |
| 130 | "match": "\\b(in|,)\\b", |
| 131 | "name": "keyword.control.operator" |
| 132 | }, |
| 133 | { |
| 134 | "include": "#variable" |
| 135 | }, |
| 136 | { |
| 137 | "include": "#property_values" |
| 138 | }, |
| 139 | { |
| 140 | "include": "$self" |
| 141 | } |
| 142 | ] |
| 143 | }, |
| 144 | "at_rule_else": { |
| 145 | "begin": "\\s*((@)else(\\s*(if)?))\\s*", |
| 146 | "captures": { |
| 147 | "1": { |
| 148 | "name": "keyword.control.else.scss" |
| 149 | }, |
| 150 | "2": { |
| 151 | "name": "punctuation.definition.keyword.scss" |
| 152 | } |
| 153 | }, |
| 154 | "end": "\\s*(?={)", |
| 155 | "name": "meta.at-rule.else.scss", |
| 156 | "patterns": [ |
| 157 | { |
| 158 | "include": "#conditional_operators" |
| 159 | }, |
| 160 | { |
| 161 | "include": "#variable" |
| 162 | }, |
| 163 | { |
| 164 | "include": "#property_values" |
| 165 | } |
| 166 | ] |
| 167 | }, |
| 168 | "at_rule_extend": { |
| 169 | "begin": "\\s*((@)extend\\b)\\s*", |
| 170 | "captures": { |
| 171 | "1": { |
| 172 | "name": "keyword.control.at-rule.import.scss" |
| 173 | }, |
| 174 | "2": { |
| 175 | "name": "punctuation.definition.keyword.scss" |
| 176 | } |
| 177 | }, |
| 178 | "end": "\\s*(?=;)", |
| 179 | "name": "meta.at-rule.import.scss", |
| 180 | "patterns": [ |
| 181 | { |
| 182 | "include": "#variable" |
| 183 | }, |
| 184 | { |
| 185 | "include": "#selectors" |
| 186 | }, |
| 187 | { |
| 188 | "include": "#property_values" |
| 189 | } |
| 190 | ] |
| 191 | }, |
| 192 | "at_rule_fontface": { |
| 193 | "patterns": [ |
| 194 | { |
| 195 | "begin": "^\\s*((@)font-face\\b)", |
| 196 | "beginCaptures": { |
| 197 | "1": { |
| 198 | "name": "keyword.control.at-rule.fontface.scss" |
| 199 | }, |
| 200 | "2": { |
| 201 | "name": "punctuation.definition.keyword.scss" |
| 202 | } |
| 203 | }, |
| 204 | "end": "\\s*(?={)", |
| 205 | "name": "meta.at-rule.fontface.scss", |
| 206 | "patterns": [ |
| 207 | { |
| 208 | "include": "#function_attributes" |
| 209 | } |
| 210 | ] |
| 211 | } |
| 212 | ] |
| 213 | }, |
| 214 | "at_rule_for": { |
| 215 | "begin": "\\s*((@)for\\b)\\s*", |
| 216 | "captures": { |
| 217 | "1": { |
| 218 | "name": "keyword.control.for.scss" |
| 219 | }, |
| 220 | "2": { |
| 221 | "name": "punctuation.definition.keyword.scss" |
| 222 | } |
| 223 | }, |
| 224 | "end": "\\s*(?={)", |
| 225 | "name": "meta.at-rule.for.scss", |
| 226 | "patterns": [ |
| 227 | { |
| 228 | "match": "(==|!=|<=|>=|<|>|from|to|through)", |
| 229 | "name": "keyword.control.operator" |
| 230 | }, |
| 231 | { |
| 232 | "include": "#variable" |
| 233 | }, |
| 234 | { |
| 235 | "include": "#property_values" |
| 236 | }, |
| 237 | { |
| 238 | "include": "$self" |
| 239 | } |
| 240 | ] |
| 241 | }, |
| 242 | "at_rule_function": { |
| 243 | "patterns": [ |
| 244 | { |
| 245 | "begin": "\\s*((@)function\\b)\\s*", |
| 246 | "captures": { |
| 247 | "1": { |
| 248 | "name": "keyword.control.at-rule.function.scss" |
| 249 | }, |
| 250 | "2": { |
| 251 | "name": "punctuation.definition.keyword.scss" |
| 252 | }, |
| 253 | "3": { |
| 254 | "name": "entity.name.function.scss" |
| 255 | } |
| 256 | }, |
| 257 | "comment": "Function with Attributes", |
| 258 | "end": "\\s*(?={)", |
| 259 | "name": "meta.at-rule.function.scss", |
| 260 | "patterns": [ |
| 261 | { |
| 262 | "include": "#function_attributes" |
| 263 | } |
| 264 | ] |
| 265 | }, |
| 266 | { |
| 267 | "captures": { |
| 268 | "1": { |
| 269 | "name": "keyword.control.at-rule.function.scss" |
| 270 | }, |
| 271 | "2": { |
| 272 | "name": "punctuation.definition.keyword.scss" |
| 273 | }, |
| 274 | "3": { |
| 275 | "name": "entity.name.function.scss" |
| 276 | } |
| 277 | }, |
| 278 | "comment": "Simple Function", |
| 279 | "match": "\\s*((@)function\\b)\\s*", |
| 280 | "name": "meta.at-rule.function.scss" |
| 281 | } |
| 282 | ] |
| 283 | }, |
| 284 | "at_rule_if": { |
| 285 | "begin": "\\s*((@)if\\b)\\s*", |
| 286 | "captures": { |
| 287 | "1": { |
| 288 | "name": "keyword.control.if.scss" |
| 289 | }, |
| 290 | "2": { |
| 291 | "name": "punctuation.definition.keyword.scss" |
| 292 | } |
| 293 | }, |
| 294 | "end": "\\s*(?={)", |
| 295 | "name": "meta.at-rule.if.scss", |
| 296 | "patterns": [ |
| 297 | { |
| 298 | "include": "#conditional_operators" |
| 299 | }, |
| 300 | { |
| 301 | "include": "#variable" |
| 302 | }, |
| 303 | { |
| 304 | "include": "#property_values" |
| 305 | } |
| 306 | ] |
| 307 | }, |
| 308 | "at_rule_import": { |
| 309 | "begin": "\\s*((@)import\\b)\\s*", |
| 310 | "captures": { |
| 311 | "1": { |
| 312 | "name": "keyword.control.at-rule.import.scss" |
| 313 | }, |
| 314 | "2": { |
| 315 | "name": "punctuation.definition.keyword.scss" |
| 316 | } |
| 317 | }, |
| 318 | "end": "\\s*((?=;)|(?=}))", |
| 319 | "name": "meta.at-rule.import.scss", |
| 320 | "patterns": [ |
| 321 | { |
| 322 | "include": "#variable" |
| 323 | }, |
| 324 | { |
| 325 | "include": "#string_single" |
| 326 | }, |
| 327 | { |
| 328 | "include": "#string_double" |
| 329 | }, |
| 330 | { |
| 331 | "include": "#functions" |
| 332 | }, |
| 333 | { |
| 334 | "include": "#comment_line" |
| 335 | } |
| 336 | ] |
| 337 | }, |
| 338 | "at_rule_include": { |
| 339 | "patterns": [ |
| 340 | { |
| 341 | "begin": "(?<=@include)\\s+([\\w-]+)\\s*(\\()", |
| 342 | "beginCaptures": { |
| 343 | "1": { |
| 344 | "name": "entity.name.function.scss" |
| 345 | }, |
| 346 | "2": { |
| 347 | "name": "punctuation.definition.parameters.begin.bracket.round.scss" |
| 348 | } |
| 349 | }, |
| 350 | "end": "\\)", |
| 351 | "endCaptures": { |
| 352 | "0": { |
| 353 | "name": "punctuation.definition.parameters.end.bracket.round.scss" |
| 354 | } |
| 355 | }, |
| 356 | "name": "meta.at-rule.include.scss", |
| 357 | "patterns": [ |
| 358 | { |
| 359 | "include": "#function_attributes" |
| 360 | } |
| 361 | ] |
| 362 | }, |
| 363 | { |
| 364 | "match": "(?<=@include)\\s+([\\w-]+)", |
| 365 | "captures": { |
| 366 | "0": { |
| 367 | "name": "meta.at-rule.include.scss" |
| 368 | }, |
| 369 | "1": { |
| 370 | "name": "entity.name.function.scss" |
| 371 | } |
| 372 | } |
| 373 | }, |
| 374 | { |
| 375 | "match": "((@)include)\\b", |
| 376 | "captures": { |
| 377 | "0": { |
| 378 | "name": "meta.at-rule.include.scss" |
| 379 | }, |
| 380 | "1": { |
| 381 | "name": "keyword.control.at-rule.include.scss" |
| 382 | }, |
| 383 | "2": { |
| 384 | "name": "punctuation.definition.keyword.scss" |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | ] |
| 389 | }, |
| 390 | "at_rule_keyframes": { |
| 391 | "begin": "(?<=^|\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\b", |
| 392 | "beginCaptures": { |
| 393 | "0": { |
| 394 | "name": "keyword.control.at-rule.keyframes.scss" |
| 395 | }, |
| 396 | "1": { |
| 397 | "name": "punctuation.definition.keyword.scss" |
| 398 | } |
| 399 | }, |
| 400 | "end": "(?<=})", |
| 401 | "name": "meta.at-rule.keyframes.scss", |
| 402 | "patterns": [ |
| 403 | { |
| 404 | "match": "(?<=@keyframes)\\s+((?:[_A-Za-z][-\\w]|-[_A-Za-z])[-\\w]*)", |
| 405 | "captures": { |
| 406 | "1": { |
| 407 | "name": "entity.name.function.scss" |
| 408 | } |
| 409 | } |
| 410 | }, |
| 411 | { |
| 412 | "begin": "(?<=@keyframes)\\s+(\")", |
| 413 | "beginCaptures": { |
| 414 | "1": { |
| 415 | "name": "punctuation.definition.string.begin.scss" |
| 416 | } |
| 417 | }, |
| 418 | "end": "\"", |
| 419 | "endCaptures": { |
| 420 | "0": { |
| 421 | "name": "punctuation.definition.string.end.scss" |
| 422 | } |
| 423 | }, |
| 424 | "name": "string.quoted.double.scss", |
| 425 | "contentName": "entity.name.function.scss", |
| 426 | "patterns": [ |
| 427 | { |
| 428 | "match": "\\\\(\\h{1,6}|.)", |
| 429 | "name": "constant.character.escape.scss" |
| 430 | }, |
| 431 | { |
| 432 | "include": "#interpolation" |
| 433 | } |
| 434 | ] |
| 435 | }, |
| 436 | { |
| 437 | "begin": "(?<=@keyframes)\\s+(')", |
| 438 | "beginCaptures": { |
| 439 | "1": { |
| 440 | "name": "punctuation.definition.string.begin.scss" |
| 441 | } |
| 442 | }, |
| 443 | "end": "'", |
| 444 | "endCaptures": { |
| 445 | "0": { |
| 446 | "name": "punctuation.definition.string.end.scss" |
| 447 | } |
| 448 | }, |
| 449 | "name": "string.quoted.single.scss", |
| 450 | "contentName": "entity.name.function.scss", |
| 451 | "patterns": [ |
| 452 | { |
| 453 | "match": "\\\\(\\h{1,6}|.)", |
| 454 | "name": "constant.character.escape.scss" |
| 455 | }, |
| 456 | { |
| 457 | "include": "#interpolation" |
| 458 | } |
| 459 | ] |
| 460 | }, |
| 461 | { |
| 462 | "begin": "{", |
| 463 | "beginCaptures": { |
| 464 | "0": { |
| 465 | "name": "punctuation.section.keyframes.begin.scss" |
| 466 | } |
| 467 | }, |
| 468 | "end": "}", |
| 469 | "endCaptures": { |
| 470 | "0": { |
| 471 | "name": "punctuation.section.keyframes.end.scss" |
| 472 | } |
| 473 | }, |
| 474 | "patterns": [ |
| 475 | { |
| 476 | "match": "\\b(?:(?:100|[1-9]\\d|\\d)%|from|to)(?=\\s*{)", |
| 477 | "name": "entity.other.attribute-name.scss" |
| 478 | }, |
| 479 | { |
| 480 | "include": "#flow_control" |
| 481 | }, |
| 482 | { |
| 483 | "include": "#interpolation" |
| 484 | }, |
| 485 | { |
| 486 | "include": "#property_list" |
| 487 | }, |
| 488 | { |
| 489 | "include": "#rules" |
| 490 | } |
| 491 | ] |
| 492 | } |
| 493 | ] |
| 494 | }, |
| 495 | "at_rule_media": { |
| 496 | "patterns": [ |
| 497 | { |
| 498 | "begin": "^\\s*((@)media\\b)\\s*", |
| 499 | "end": "\\s*(?={)", |
| 500 | "captures": { |
| 501 | "1": { |
| 502 | "name": "keyword.control.at-rule.media.scss" |
| 503 | }, |
| 504 | "2": { |
| 505 | "name": "punctuation.definition.keyword.scss" |
| 506 | } |
| 507 | }, |
| 508 | "name": "meta.at-rule.media.scss", |
| 509 | "patterns": [ |
| 510 | { |
| 511 | "match": "\\b(only)\\b", |
| 512 | "name": "keyword.control.operator" |
| 513 | }, |
| 514 | { |
| 515 | "include": "#media_features" |
| 516 | }, |
| 517 | { |
| 518 | "include": "#property_values" |
| 519 | }, |
| 520 | { |
| 521 | "include": "#variable" |
| 522 | }, |
| 523 | { |
| 524 | "include": "#conditional_operators" |
| 525 | }, |
| 526 | { |
| 527 | "include": "#media_types" |
| 528 | }, |
| 529 | { |
| 530 | "include": "#property_names" |
| 531 | } |
| 532 | ] |
| 533 | } |
| 534 | ] |
| 535 | }, |
| 536 | "at_rule_mixin": { |
| 537 | "patterns": [ |
| 538 | { |
| 539 | "begin": "(?<=@mixin)\\s+([\\w-]+)\\s*(\\()", |
| 540 | "beginCaptures": { |
| 541 | "1": { |
| 542 | "name": "entity.name.function.scss" |
| 543 | }, |
| 544 | "2": { |
| 545 | "name": "punctuation.definition.parameters.begin.bracket.round.scss" |
| 546 | } |
| 547 | }, |
| 548 | "end": "\\)", |
| 549 | "endCaptures": { |
| 550 | "0": { |
| 551 | "name": "punctuation.definition.parameters.end.bracket.round.scss" |
| 552 | } |
| 553 | }, |
| 554 | "name": "meta.at-rule.mixin.scss", |
| 555 | "patterns": [ |
| 556 | { |
| 557 | "include": "#function_attributes" |
| 558 | } |
| 559 | ] |
| 560 | }, |
| 561 | { |
| 562 | "match": "(?<=@mixin)\\s+([\\w-]+)", |
| 563 | "captures": { |
| 564 | "1": { |
| 565 | "name": "entity.name.function.scss" |
| 566 | } |
| 567 | }, |
| 568 | "name": "meta.at-rule.mixin.scss" |
| 569 | }, |
| 570 | { |
| 571 | "match": "((@)mixin)\\b", |
| 572 | "captures": { |
| 573 | "1": { |
| 574 | "name": "keyword.control.at-rule.mixin.scss" |
| 575 | }, |
| 576 | "2": { |
| 577 | "name": "punctuation.definition.keyword.scss" |
| 578 | } |
| 579 | }, |
| 580 | "name": "meta.at-rule.mixin.scss" |
| 581 | } |
| 582 | ] |
| 583 | }, |
| 584 | "at_rule_namespace": { |
| 585 | "patterns": [ |
| 586 | { |
| 587 | "begin": "(?<=@namespace)\\s+(?=url)", |
| 588 | "end": "(?=;|$)", |
| 589 | "name": "meta.at-rule.namespace.scss", |
| 590 | "patterns": [ |
| 591 | { |
| 592 | "include": "#property_values" |
| 593 | }, |
| 594 | { |
| 595 | "include": "#string_single" |
| 596 | }, |
| 597 | { |
| 598 | "include": "#string_double" |
| 599 | } |
| 600 | ] |
| 601 | }, |
| 602 | { |
| 603 | "begin": "(?<=@namespace)\\s+([\\w-]*)", |
| 604 | "captures": { |
| 605 | "1": { |
| 606 | "name": "entity.name.namespace-prefix.scss" |
| 607 | } |
| 608 | }, |
| 609 | "end": "(?=;|$)", |
| 610 | "name": "meta.at-rule.namespace.scss", |
| 611 | "patterns": [ |
| 612 | { |
| 613 | "include": "#variables" |
| 614 | }, |
| 615 | { |
| 616 | "include": "#property_values" |
| 617 | }, |
| 618 | { |
| 619 | "include": "#string_single" |
| 620 | }, |
| 621 | { |
| 622 | "include": "#string_double" |
| 623 | } |
| 624 | ] |
| 625 | }, |
| 626 | { |
| 627 | "match": "((@)namespace)\\b", |
| 628 | "captures": { |
| 629 | "1": { |
| 630 | "name": "keyword.control.at-rule.namespace.scss" |
| 631 | }, |
| 632 | "2": { |
| 633 | "name": "punctuation.definition.keyword.scss" |
| 634 | } |
| 635 | }, |
| 636 | "name": "meta.at-rule.namespace.scss" |
| 637 | } |
| 638 | ] |
| 639 | }, |
| 640 | "at_rule_option": { |
| 641 | "captures": { |
| 642 | "1": { |
| 643 | "name": "keyword.control.at-rule.charset.scss" |
| 644 | }, |
| 645 | "2": { |
| 646 | "name": "punctuation.definition.keyword.scss" |
| 647 | } |
| 648 | }, |
| 649 | "comment": "Option", |
| 650 | "match": "^\\s*((@)option\\b)\\s*", |
| 651 | "name": "meta.at-rule.option.scss" |
| 652 | }, |
| 653 | "at_rule_page": { |
| 654 | "patterns": [ |
| 655 | { |
| 656 | "begin": "^\\s*((@)page)(?=:|\\s)\\s*([-:\\w]*)", |
| 657 | "captures": { |
| 658 | "1": { |
| 659 | "name": "keyword.control.at-rule.page.scss" |
| 660 | }, |
| 661 | "2": { |
| 662 | "name": "punctuation.definition.keyword.scss" |
| 663 | }, |
| 664 | "3": { |
| 665 | "name": "entity.name.function.scss" |
| 666 | } |
| 667 | }, |
| 668 | "comment": "Page with Attributes", |
| 669 | "end": "\\s*(?={)", |
| 670 | "name": "meta.at-rule.page.scss" |
| 671 | } |
| 672 | ] |
| 673 | }, |
| 674 | "at_rule_return": { |
| 675 | "begin": "\\s*((@)(return)\\b)", |
| 676 | "captures": { |
| 677 | "1": { |
| 678 | "name": "keyword.control.return.scss" |
| 679 | }, |
| 680 | "2": { |
| 681 | "name": "punctuation.definition.keyword.scss" |
| 682 | } |
| 683 | }, |
| 684 | "end": "\\s*((?=;))", |
| 685 | "name": "meta.at-rule.return.scss", |
| 686 | "patterns": [ |
| 687 | { |
| 688 | "include": "#variable" |
| 689 | }, |
| 690 | { |
| 691 | "include": "#property_values" |
| 692 | } |
| 693 | ] |
| 694 | }, |
| 695 | "at_rule_at_root": { |
| 696 | "begin": "\\s*((@)(at-root))(\\s+|$)", |
| 697 | "end": "\\s*(?={)", |
| 698 | "beginCaptures": { |
| 699 | "1": { |
| 700 | "name": "keyword.control.at-rule.at-root.scss" |
| 701 | }, |
| 702 | "2": { |
| 703 | "name": "punctuation.definition.keyword.scss" |
| 704 | } |
| 705 | }, |
| 706 | "name": "meta.at-rule.at-root.scss", |
| 707 | "patterns": [ |
| 708 | { |
| 709 | "include": "#function_attributes" |
| 710 | }, |
| 711 | { |
| 712 | "include": "#functions" |
| 713 | }, |
| 714 | { |
| 715 | "include": "#selectors" |
| 716 | } |
| 717 | ] |
| 718 | }, |
| 719 | "at_rule_supports": { |
| 720 | "begin": "(?<=^|\\s)(@)supports\\b", |
| 721 | "captures": { |
| 722 | "0": { |
| 723 | "name": "keyword.control.at-rule.supports.scss" |
| 724 | }, |
| 725 | "1": { |
| 726 | "name": "punctuation.definition.keyword.scss" |
| 727 | } |
| 728 | }, |
| 729 | "end": "(?={)|$", |
| 730 | "name": "meta.at-rule.supports.scss", |
| 731 | "patterns": [ |
| 732 | { |
| 733 | "include": "#logical_operators" |
| 734 | }, |
| 735 | { |
| 736 | "include": "#properties" |
| 737 | }, |
| 738 | { |
| 739 | "match": "\\(", |
| 740 | "name": "punctuation.definition.condition.begin.bracket.round.scss" |
| 741 | }, |
| 742 | { |
| 743 | "match": "\\)", |
| 744 | "name": "punctuation.definition.condition.end.bracket.round.scss" |
| 745 | } |
| 746 | ] |
| 747 | }, |
| 748 | "at_rule_warn": { |
| 749 | "begin": "\\s*((@)(warn|debug|error)\\b)\\s*", |
| 750 | "captures": { |
| 751 | "1": { |
| 752 | "name": "keyword.control.warn.scss" |
| 753 | }, |
| 754 | "2": { |
| 755 | "name": "punctuation.definition.keyword.scss" |
| 756 | } |
| 757 | }, |
| 758 | "end": "\\s*(?=;)", |
| 759 | "name": "meta.at-rule.warn.scss", |
| 760 | "patterns": [ |
| 761 | { |
| 762 | "include": "#variable" |
| 763 | }, |
| 764 | { |
| 765 | "include": "#string_double" |
| 766 | }, |
| 767 | { |
| 768 | "include": "#string_single" |
| 769 | } |
| 770 | ] |
| 771 | }, |
| 772 | "at_rule_while": { |
| 773 | "begin": "\\s*((@)while\\b)\\s*", |
| 774 | "captures": { |
| 775 | "1": { |
| 776 | "name": "keyword.control.while.scss" |
| 777 | }, |
| 778 | "2": { |
| 779 | "name": "punctuation.definition.keyword.scss" |
| 780 | } |
| 781 | }, |
| 782 | "end": "\\s*(?=})", |
| 783 | "name": "meta.at-rule.while.scss", |
| 784 | "patterns": [ |
| 785 | { |
| 786 | "include": "#conditional_operators" |
| 787 | }, |
| 788 | { |
| 789 | "include": "#variable" |
| 790 | }, |
| 791 | { |
| 792 | "include": "#property_values" |
| 793 | }, |
| 794 | { |
| 795 | "include": "$self" |
| 796 | } |
| 797 | ] |
| 798 | }, |
| 799 | "comment_block": { |
| 800 | "begin": "/\\*", |
| 801 | "beginCaptures": { |
| 802 | "0": { |
| 803 | "name": "punctuation.definition.comment.scss" |
| 804 | } |
| 805 | }, |
| 806 | "end": "\\*/", |
| 807 | "endCaptures": { |
| 808 | "0": { |
| 809 | "name": "punctuation.definition.comment.scss" |
| 810 | } |
| 811 | }, |
| 812 | "name": "comment.block.scss" |
| 813 | }, |
| 814 | "comment_line": { |
| 815 | "begin": "//", |
| 816 | "beginCaptures": { |
| 817 | "0": { |
| 818 | "name": "punctuation.definition.comment.scss" |
| 819 | } |
| 820 | }, |
| 821 | "end": "\\n", |
| 822 | "name": "comment.line.scss" |
| 823 | }, |
| 824 | "constant_color": { |
| 825 | "comment": "http://www.w3.org/TR/css3-color/#svg-color", |
| 826 | "match": "\\b(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|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|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|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|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)\\b", |
| 827 | "name": "support.constant.color.w3c-standard-color-name.scss" |
| 828 | }, |
| 829 | "constant_default": { |
| 830 | "match": "!default", |
| 831 | "name": "keyword.other.default.scss" |
| 832 | }, |
| 833 | "constant_deprecated_color": { |
| 834 | "comment": "These colours are deprecated from CSS color module level 3 http://www.w3.org/TR/css3-color/#css2-system", |
| 835 | "match": "\\b(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)\\b", |
| 836 | "name": "invalid.deprecated.color.system.css.scss" |
| 837 | }, |
| 838 | "constant_font": { |
| 839 | "match": "(\\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\\b)", |
| 840 | "name": "support.constant.font-name.scss" |
| 841 | }, |
| 842 | "constant_functions": { |
| 843 | "begin": "([\\w-]+)(\\()", |
| 844 | "beginCaptures": { |
| 845 | "1": { |
| 846 | "name": "support.function.misc.scss" |
| 847 | }, |
| 848 | "2": { |
| 849 | "name": "punctuation.section.function.scss" |
| 850 | } |
| 851 | }, |
| 852 | "end": "(\\))", |
| 853 | "endCaptures": { |
| 854 | "1": { |
| 855 | "name": "punctuation.section.function.scss" |
| 856 | } |
| 857 | }, |
| 858 | "patterns": [ |
| 859 | { |
| 860 | "include": "#parameters" |
| 861 | } |
| 862 | ] |
| 863 | }, |
| 864 | "constant_hex": { |
| 865 | "captures": { |
| 866 | "1": { |
| 867 | "name": "punctuation.definition.constant.scss" |
| 868 | } |
| 869 | }, |
| 870 | "match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b", |
| 871 | "name": "constant.numeric.color.hex-value.scss" |
| 872 | }, |
| 873 | "constant_important": { |
| 874 | "match": "!important", |
| 875 | "name": "keyword.other.important.scss" |
| 876 | }, |
| 877 | "constant_mathematical_symbols": { |
| 878 | "match": "\\b(\\+|-|\\*|/)\\b", |
| 879 | "name": "support.constant.mathematical-symbols.scss" |
| 880 | }, |
| 881 | "constant_number": { |
| 882 | "match": "(\\b([0-9]+(\\.[0-9]+)?)|\\B\\.[0-9]+)(?=\\s*(ch|cm|deg|dpi|dpcm|dppx|em|ex|grad|in|mm|mozmm|ms|pc|pt|px|rad|rem|turn|s|vh|vmin|vmax|vw|\\b))", |
| 883 | "name": "constant.numeric.scss" |
| 884 | }, |
| 885 | "constant_optional": { |
| 886 | "match": "!optional", |
| 887 | "name": "keyword.other.optional.scss" |
| 888 | }, |
| 889 | "constant_property_value": { |
| 890 | "match": "\\b(absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|border-box|break-all|break-word|butt|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|column-reverse|column|contain|content-box|cover|crosshair|currentColor|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in-out|ease-in|ease-out|ease|ellipsis|fill|fixed|flex-end|flex-start|flex|georgian|grid|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline-flex|inline-grid|inline-table|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|landscape|left|lighter|line-edge|line-through|line|linear|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|manipulation|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|null|oblique|outset|outside|overline|pan-(x|y|left|right|up|down)|pointer|portrait|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|right|ridge|round|row-resize|row-reverse|row|rtl|ruby-base-container|ruby-base|ruby-text-container|ruby-text|ruby|s-resize|scale-down|scroll|se-resize|separate|small-caps|solid|space-around|space-between|square|static|step-end|step-start|stretch|strict|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|wrap|wrap-reverse|zero|true|false|vertical|horizontal)\\b", |
| 891 | "name": "support.constant.property-value.scss" |
| 892 | }, |
| 893 | "constant_rgb": { |
| 894 | "match": "(?x)\n(?<!scale3d\\(|translate3d\\(|rotate3d\\() # scale3d, translate3d, and rotate3d don't use RGB values\n\\b\n(0*(?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\n\\s*(,)\\s*\n(0*(?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\n\\s*(,)\\s*\n(0*(?:1?[0-9]{1,2})|(?:2(?:[0-4][0-9]|5[0-5])))\n\\b", |
| 895 | "captures": { |
| 896 | "1": { |
| 897 | "name": "constant.numeric.color.rgb-value.scss" |
| 898 | }, |
| 899 | "2": { |
| 900 | "name": "punctuation.separator.delimiter.scss" |
| 901 | }, |
| 902 | "3": { |
| 903 | "name": "constant.numeric.color.rgb-value.scss" |
| 904 | }, |
| 905 | "4": { |
| 906 | "name": "punctuation.separator.delimiter.scss" |
| 907 | }, |
| 908 | "5": { |
| 909 | "name": "constant.numeric.color.rgb-value.scss" |
| 910 | } |
| 911 | } |
| 912 | }, |
| 913 | "constant_rgb_percentage": { |
| 914 | "match": "(?x)\n(?<!scale3d\\(|translate3d\\(|rotate3d\\() # scale3d, translate3d, and rotate3d don't use RGB percentages\n\\b\n([0-9]{1,2}|100)\\s*(%)\n\\s*(,)\\s*\n([0-9]{1,2}|100)\\s*(%)\n\\s*(,)\\s*\n([0-9]{1,2}|100)\\s*(%)", |
| 915 | "captures": { |
| 916 | "1": { |
| 917 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 918 | }, |
| 919 | "2": { |
| 920 | "name": "keyword.other.unit.scss" |
| 921 | }, |
| 922 | "3": { |
| 923 | "name": "punctuation.separator.delimiter.scss" |
| 924 | }, |
| 925 | "4": { |
| 926 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 927 | }, |
| 928 | "5": { |
| 929 | "name": "keyword.other.unit.scss" |
| 930 | }, |
| 931 | "6": { |
| 932 | "name": "punctuation.separator.delimiter.scss" |
| 933 | }, |
| 934 | "7": { |
| 935 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 936 | }, |
| 937 | "8": { |
| 938 | "name": "keyword.other.unit.scss" |
| 939 | } |
| 940 | } |
| 941 | }, |
| 942 | "constant_sass_functions": { |
| 943 | "begin": "(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate(?:X|Y))(\\()", |
| 944 | "beginCaptures": { |
| 945 | "1": { |
| 946 | "name": "support.function.misc.scss" |
| 947 | }, |
| 948 | "2": { |
| 949 | "name": "punctuation.section.function.scss" |
| 950 | } |
| 951 | }, |
| 952 | "end": "(\\))", |
| 953 | "endCaptures": { |
| 954 | "1": { |
| 955 | "name": "punctuation.section.function.scss" |
| 956 | } |
| 957 | }, |
| 958 | "patterns": [ |
| 959 | { |
| 960 | "include": "#parameters" |
| 961 | } |
| 962 | ] |
| 963 | }, |
| 964 | "constant_unit": { |
| 965 | "match": "(?<=[\\d])(ch|cm|deg|dpi|dpcm|dppx|em|ex|grad|in|mm|mozmm|ms|pc|pt|px|rad|rem|turn|s|vh|vmin|vmax|vw)\\b|%", |
| 966 | "name": "keyword.other.unit.scss" |
| 967 | }, |
| 968 | "flow_control": { |
| 969 | "patterns": [ |
| 970 | { |
| 971 | "include": "#at_rule_if" |
| 972 | }, |
| 973 | { |
| 974 | "include": "#at_rule_else" |
| 975 | }, |
| 976 | { |
| 977 | "include": "#at_rule_warn" |
| 978 | }, |
| 979 | { |
| 980 | "include": "#at_rule_for" |
| 981 | }, |
| 982 | { |
| 983 | "include": "#at_rule_while" |
| 984 | }, |
| 985 | { |
| 986 | "include": "#at_rule_each" |
| 987 | }, |
| 988 | { |
| 989 | "include": "#at_rule_return" |
| 990 | } |
| 991 | ] |
| 992 | }, |
| 993 | "function_attributes": { |
| 994 | "patterns": [ |
| 995 | { |
| 996 | "match": ":", |
| 997 | "name": "punctuation.separator.key-value.scss" |
| 998 | }, |
| 999 | { |
| 1000 | "include": "#general" |
| 1001 | }, |
| 1002 | { |
| 1003 | "include": "#property_values" |
| 1004 | }, |
| 1005 | { |
| 1006 | "comment": "We even have error highlighting <3", |
| 1007 | "match": "[={}\\?;@]", |
| 1008 | "name": "invalid.illegal.scss" |
| 1009 | } |
| 1010 | ] |
| 1011 | }, |
| 1012 | "functions": { |
| 1013 | "patterns": [ |
| 1014 | { |
| 1015 | "begin": "([\\w-]{1,})(\\()\\s*", |
| 1016 | "beginCaptures": { |
| 1017 | "1": { |
| 1018 | "name": "support.function.misc.scss" |
| 1019 | }, |
| 1020 | "2": { |
| 1021 | "name": "punctuation.section.function.scss" |
| 1022 | } |
| 1023 | }, |
| 1024 | "end": "(\\))", |
| 1025 | "endCaptures": { |
| 1026 | "1": { |
| 1027 | "name": "punctuation.section.function.scss" |
| 1028 | } |
| 1029 | }, |
| 1030 | "patterns": [ |
| 1031 | { |
| 1032 | "include": "#parameters" |
| 1033 | } |
| 1034 | ] |
| 1035 | }, |
| 1036 | { |
| 1037 | "match": "([\\w-]{1,})", |
| 1038 | "name": "support.function.misc.scss" |
| 1039 | } |
| 1040 | ] |
| 1041 | }, |
| 1042 | "general": { |
| 1043 | "comment": "Stuff that should be everywhere", |
| 1044 | "patterns": [ |
| 1045 | { |
| 1046 | "include": "#variable" |
| 1047 | }, |
| 1048 | { |
| 1049 | "include": "#comment_block" |
| 1050 | }, |
| 1051 | { |
| 1052 | "include": "#comment_line" |
| 1053 | } |
| 1054 | ] |
| 1055 | }, |
| 1056 | "interpolation": { |
| 1057 | "begin": "#{", |
| 1058 | "beginCaptures": { |
| 1059 | "0": { |
| 1060 | "name": "punctuation.definition.interpolation.begin.bracket.curly.scss" |
| 1061 | } |
| 1062 | }, |
| 1063 | "end": "}", |
| 1064 | "endCaptures": { |
| 1065 | "0": { |
| 1066 | "name": "punctuation.definition.interpolation.end.bracket.curly.scss" |
| 1067 | } |
| 1068 | }, |
| 1069 | "name": "variable.interpolation.scss", |
| 1070 | "patterns": [ |
| 1071 | { |
| 1072 | "include": "#property_values" |
| 1073 | }, |
| 1074 | { |
| 1075 | "include": "#variable" |
| 1076 | } |
| 1077 | ] |
| 1078 | }, |
| 1079 | "conditional_operators": { |
| 1080 | "patterns": [ |
| 1081 | { |
| 1082 | "include": "#comparison_operators" |
| 1083 | }, |
| 1084 | { |
| 1085 | "include": "#logical_operators" |
| 1086 | } |
| 1087 | ] |
| 1088 | }, |
| 1089 | "comparison_operators": { |
| 1090 | "match": "==|!=|<=|>=|<|>", |
| 1091 | "name": "keyword.operator.comparison.scss" |
| 1092 | }, |
| 1093 | "logical_operators": { |
| 1094 | "match": "\\b(not\\b|or\\b|and\\b)", |
| 1095 | "name": "keyword.operator.logical.scss" |
| 1096 | }, |
| 1097 | "map": { |
| 1098 | "begin": "\\(", |
| 1099 | "beginCaptures": { |
| 1100 | "0": { |
| 1101 | "name": "punctuation.definition.map.begin.bracket.round.scss" |
| 1102 | } |
| 1103 | }, |
| 1104 | "end": "\\)", |
| 1105 | "endCaptures": { |
| 1106 | "0": { |
| 1107 | "name": "punctuation.definition.map.end.bracket.round.scss" |
| 1108 | } |
| 1109 | }, |
| 1110 | "name": "meta.set.variable.map.scss", |
| 1111 | "patterns": [ |
| 1112 | { |
| 1113 | "include": "#comment_block" |
| 1114 | }, |
| 1115 | { |
| 1116 | "include": "#comment_line" |
| 1117 | }, |
| 1118 | { |
| 1119 | "match": "\\b([\\w-]+)\\s*(:)", |
| 1120 | "captures": { |
| 1121 | "1": { |
| 1122 | "name": "support.type.map.key.scss" |
| 1123 | }, |
| 1124 | "2": { |
| 1125 | "name": "punctuation.separator.key-value.scss" |
| 1126 | } |
| 1127 | } |
| 1128 | }, |
| 1129 | { |
| 1130 | "match": ",", |
| 1131 | "name": "punctuation.separator.delimiter.scss" |
| 1132 | }, |
| 1133 | { |
| 1134 | "include": "#property_values" |
| 1135 | }, |
| 1136 | { |
| 1137 | "include": "#variable" |
| 1138 | }, |
| 1139 | { |
| 1140 | "include": "#map" |
| 1141 | } |
| 1142 | ] |
| 1143 | }, |
| 1144 | "media_attributes": { |
| 1145 | "patterns": [ |
| 1146 | { |
| 1147 | "match": ":", |
| 1148 | "name": "punctuation.separator.key-value.scss" |
| 1149 | }, |
| 1150 | { |
| 1151 | "include": "#general" |
| 1152 | }, |
| 1153 | { |
| 1154 | "include": "#property_name" |
| 1155 | }, |
| 1156 | { |
| 1157 | "include": "#property_values" |
| 1158 | }, |
| 1159 | { |
| 1160 | "comment": "We even have error highlighting <3", |
| 1161 | "match": "[={}\\?@]", |
| 1162 | "name": "invalid.illegal.scss" |
| 1163 | } |
| 1164 | ] |
| 1165 | }, |
| 1166 | "media_features": { |
| 1167 | "patterns": [ |
| 1168 | { |
| 1169 | "match": "\\b(min-device-aspect-ratio|max-device-aspect-ratio|device-aspect-ratio|min-aspect-ratio|max-aspect-ratio|aspect-ratio|min-device-height|max-device-height|device-height|min-device-width|max-device-width|device-width|min-monochrome|max-monochrome|monochrome|min-color-index|max-color-index|color-index|min-color|max-color|color|orientation|scan|min-resolution|max-resolution|resolution|grid|min-width|max-width|width)\\b", |
| 1170 | "name": "support.type.property-name.media.css" |
| 1171 | } |
| 1172 | ] |
| 1173 | }, |
| 1174 | "media_types": { |
| 1175 | "patterns": [ |
| 1176 | { |
| 1177 | "match": "\\b(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)\\b", |
| 1178 | "name": "support.constant.media.css" |
| 1179 | } |
| 1180 | ] |
| 1181 | }, |
| 1182 | "operators": { |
| 1183 | "match": "[-+*/](?!\\s*[-+*/])", |
| 1184 | "name": "keyword.operator.css" |
| 1185 | }, |
| 1186 | "parameters": { |
| 1187 | "patterns": [ |
| 1188 | { |
| 1189 | "include": "#variable" |
| 1190 | }, |
| 1191 | { |
| 1192 | "include": "#property_values" |
| 1193 | }, |
| 1194 | { |
| 1195 | "include": "#comment_block" |
| 1196 | }, |
| 1197 | { |
| 1198 | "begin": "\\(", |
| 1199 | "beginCaptures": { |
| 1200 | "0": { |
| 1201 | "name": "punctuation.definition.begin.bracket.round.scss" |
| 1202 | } |
| 1203 | }, |
| 1204 | "end": "\\)", |
| 1205 | "endCaptures": { |
| 1206 | "0": { |
| 1207 | "name": "punctuation.definition.end.bracket.round.scss" |
| 1208 | } |
| 1209 | }, |
| 1210 | "patterns": [ |
| 1211 | { |
| 1212 | "include": "#function_attributes" |
| 1213 | } |
| 1214 | ] |
| 1215 | }, |
| 1216 | { |
| 1217 | "match": "[^'\",) \\t]+", |
| 1218 | "name": "variable.parameter.url.scss" |
| 1219 | }, |
| 1220 | { |
| 1221 | "match": ",", |
| 1222 | "name": "punctuation.separator.delimiter.scss" |
| 1223 | } |
| 1224 | ] |
| 1225 | }, |
| 1226 | "properties": { |
| 1227 | "patterns": [ |
| 1228 | { |
| 1229 | "begin": "(?<![-a-z])(?=[-a-z])", |
| 1230 | "end": "$|(?![-a-z])", |
| 1231 | "name": "meta.property-name.scss", |
| 1232 | "patterns": [ |
| 1233 | { |
| 1234 | "include": "#property_names" |
| 1235 | }, |
| 1236 | { |
| 1237 | "include": "#at_rule_include" |
| 1238 | } |
| 1239 | ] |
| 1240 | }, |
| 1241 | { |
| 1242 | "begin": "(:)\\s*(?!(\\s*{))", |
| 1243 | "beginCaptures": { |
| 1244 | "1": { |
| 1245 | "name": "punctuation.separator.key-value.scss" |
| 1246 | } |
| 1247 | }, |
| 1248 | "comment": "Kuroir: fixed nested elements for sass.", |
| 1249 | "end": "\\s*(;|(?=}|\\)))", |
| 1250 | "endCaptures": { |
| 1251 | "1": { |
| 1252 | "name": "punctuation.terminator.rule.scss" |
| 1253 | } |
| 1254 | }, |
| 1255 | "contentName": "meta.property-value.scss", |
| 1256 | "patterns": [ |
| 1257 | { |
| 1258 | "include": "#general" |
| 1259 | }, |
| 1260 | { |
| 1261 | "include": "#property_values" |
| 1262 | } |
| 1263 | ] |
| 1264 | } |
| 1265 | ] |
| 1266 | }, |
| 1267 | "property_list": { |
| 1268 | "begin": "{", |
| 1269 | "beginCaptures": { |
| 1270 | "0": { |
| 1271 | "name": "punctuation.section.property-list.begin.bracket.curly.scss" |
| 1272 | } |
| 1273 | }, |
| 1274 | "end": "}", |
| 1275 | "endCaptures": { |
| 1276 | "0": { |
| 1277 | "name": "punctuation.section.property-list.end.bracket.curly.scss" |
| 1278 | } |
| 1279 | }, |
| 1280 | "name": "meta.property-list.scss", |
| 1281 | "patterns": [ |
| 1282 | { |
| 1283 | "include": "#flow_control" |
| 1284 | }, |
| 1285 | { |
| 1286 | "include": "#rules" |
| 1287 | }, |
| 1288 | { |
| 1289 | "include": "#properties" |
| 1290 | }, |
| 1291 | { |
| 1292 | "include": "$self" |
| 1293 | } |
| 1294 | ] |
| 1295 | }, |
| 1296 | "property_name": { |
| 1297 | "comment": "Reversal order is important; KEEP IT. Also when adding new properties add them to the error checker below!", |
| 1298 | "match": "((?<=\\s|^)(-webkit-[A-Za-z-]+|-moz-[A-Za-z-]+|-ms-[A-Za-z-]+))|\\b([0-9]{1,3}%|zoom|z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|width|widows|will-change|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|user-select|up|unicode-bidi|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|style-type|style-position|style-image|style|stroke|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset|object-position|object-fit|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|marker|mark|margin-top|margin-right|margin-left|margin-bottom|margin|mask-image|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|grid-rows|grid-columns|grid|gap|font-weight|font-variant|font-variant-ligatures|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|backface-visibility|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust)\\b", |
| 1299 | "name": "support.type.property-name.scss" |
| 1300 | }, |
| 1301 | "property_name_error": { |
| 1302 | "match": "(?<![a-z-])(?!-(top|right|left|bottom|color|radius|last|inside|width|before|after|value|size|type|position|style|image|strategy|shift|align|adjust)\\b|-webkit-[A-Za-z]+\\b|-moz-[A-Za-z]+\\b|-ms-[A-Za-z]+\\b|z-index\\b|[0-9]{1,3}%\\b|zoom\\b|y\\b|x\\b|wrap\\b|word-wrap\\b|word-spacing\\b|word-break\\b|word\\b|will-change\\b|width\\b|widows\\b|white-space-collapse\\b|white-space\\b|white\\b|weight\\b|volume\\b|voice-volume\\b|voice-stress\\b|voice-rate\\b|voice-pitch-range\\b|voice-pitch\\b|voice-family\\b|voice-duration\\b|voice-balance\\b|voice\\b|visibility\\b|vertical-align\\b|variant\\b|user-select\\b|up\\b|unicode-bidi\\b|unicode\\b|u\\b|tt\\b|trim\\b|transition-timing-function\\b|transition-property\\b|transition-duration\\b|transition-delay\\b|transition\\b|transform\\b|touch-action\\b|top-width\\b|top-style\\b|top-right-radius\\b|top-left-radius\\b|top-color\\b|top\\b|timing-function\\b|text-wrap\\b|text-transform\\b|text-shadow\\b|text-replace\\b|text-outline\\b|text-justify\\b|text-indent\\b|text-height\\b|text-emphasis\\b|text-decoration\\b|text-align-last\\b|text-align\\b|text\\b|target-position\\b|target-new\\b|target-name\\b|target\\b|table-layout\\b|tab-size\\b|style-type\\b|style-position\\b|style-image\\b|style\\b|string-set\\b|stroke\\b|strike\\b|stretch\\b|stress\\b|stacking-strategy\\b|stacking-shift\\b|stacking-ruby\\b|stacking\\b|src\\b|speed\\b|speech-rate\\b|speech\\b|speak-punctuation\\b|speak-numeral\\b|speak-header\\b|speak\\b|span\\b|spacing\\b|space-collapse\\b|space\\b|sizing\\b|size-adjust\\b|size\\b|shadow\\b|s\\b|respond-to\\b|rule-width\\b|rule-style\\b|rule-color\\b|rule\\b|ruby-span\\b|ruby-position\\b|ruby-overhang\\b|ruby-align\\b|ruby\\b|rows\\b|rotation-point\\b|rotation\\b|role\\b|right-width\\b|right-style\\b|right-color\\b|right\\b|richness\\b|rest-before\\b|rest-after\\b|rest\\b|resource\\b|resolution\\b|resize\\b|reset\\b|replace\\b|repeat\\b|rendering-intent\\b|rate\\b|radius\\b|quotes\\b|punctuation-trim\\b|punctuation\\b|property\\b|profile\\b|presentation-level\\b|presentation\\b|position\\b|pointer-events\\b|point\\b|play-state\\b|play-during\\b|play-count\\b|pitch-range\\b|pitch\\b|phonemes\\b|pause-before\\b|pause-after\\b|pause\\b|page-policy\\b|page-break-inside\\b|page-break-before\\b|page-break-after\\b|page\\b|padding-top\\b|padding-right\\b|padding-left\\b|padding-bottom\\b|padding\\b|pack\\b|overhang\\b|overflow-y\\b|overflow-x\\b|overflow-wrap\\b|overflow-style\\b|overflow\\b|outline-width\\b|outline-style\\b|outline-offset\\b|outline-color\\b|outline\\b|orphans\\b|origin\\b|orientation\\b|orient\\b|ordinal-group\\b|order\\b|opacity\\b|offset\\b|object-position\\b|object-fit\\b|numeral\\b|new\\b|nav-up\\b|nav-right\\b|nav-left\\b|nav-index\\b|nav-down\\b|nav\\b|name\\b|move-to\\b|model\\b|min-width\\b|min-height\\b|min\\b|max-width\\b|max-height\\b|max\\b|marquee-style\\b|marquee-speed\\b|marquee-play-count\\b|marquee-direction\\b|marquee\\b|marks\\b|mark-before\\b|mark-after\\b|marker\\b|mark\\b|margin-top\\b|margin-right\\b|margin-left\\b|margin-bottom\\b|margin\\b|mask-image\\b|list-style-type\\b|list-style-position\\b|list-style-image\\b|list-style\\b|list\\b|lines\\b|line-stacking-strategy\\b|line-stacking-shift\\b|line-stacking-ruby\\b|line-stacking\\b|line-height\\b|line\\b|level\\b|letter-spacing\\b|length\\b|left-width\\b|left-style\\b|left-color\\b|left\\b|label\\b|justify-content\\b|justify\\b|iteration-count\\b|inline-box-align\\b|initial-value\\b|initial-size\\b|initial-before-align\\b|initial-before-adjust\\b|initial-after-align\\b|initial-after-adjust\\b|index\\b|indent\\b|increment\\b|image-resolution\\b|image-orientation\\b|image\\b|icon\\b|hyphens\\b|hyphenate-resource\\b|hyphenate-lines\\b|hyphenate-character\\b|hyphenate-before\\b|hyphenate-after\\b|hyphenate\\b|height\\b|header\\b|hanging-punctuation\\b|grid-rows\\b|grid-columns\\b|grid\\b|gap\\b|font-weight\\b|font-variant\\b|font-variant-ligatures\\b|font-style\\b|font-stretch\\b|font-size-adjust\\b|font-size\\b|font-family\\b|font\\b|float-offset\\b|float\\b|flex-wrap\\b|flex-shrink\\b|flex-grow\\b|flex-group\\b|flex-flow\\b|flex-direction\\b|flex-basis\\b|flex\\b|fit-position\\b|fit\\b|fill\\b|filter\\b|family\\b|empty-cells\\b|emphasis\\b|elevation\\b|duration\\b|drop-initial-value\\b|drop-initial-size\\b|drop-initial-before-align\\b|drop-initial-before-adjust\\b|drop-initial-after-align\\b|drop-initial-after-adjust\\b|drop\\b|down\\b|dominant-baseline\\b|display-role\\b|display-model\\b|display\\b|direction\\b|delay\\b|decoration-break\\b|decoration\\b|cursor\\b|cue-before\\b|cue-after\\b|cue\\b|crop\\b|counter-reset\\b|counter-increment\\b|counter\\b|count\\b|content\\b|columns\\b|column-width\\b|column-span\\b|column-rule-width\\b|column-rule-style\\b|column-rule-color\\b|column-rule\\b|column-gap\\b|column-fill\\b|column-count\\b|column-break-before\\b|column-break-after\\b|column\\b|color-profile\\b|color\\b|collapse\\b|clip\\b|clear\\b|character\\b|center\\b|caption-side\\b|break-inside\\b|break-before\\b|break-after\\b|break\\b|box-sizing\\b|box-shadow\\b|box-pack\\b|box-orient\\b|box-ordinal-group\\b|box-lines\\b|box-flex-group\\b|box-flex\\b|box-direction\\b|box-decoration-break\\b|box-align\\b|box\\b|bottom-width\\b|bottom-style\\b|bottom-right-radius\\b|bottom-left-radius\\b|bottom-color\\b|bottom\\b|border-width\\b|border-top-width\\b|border-top-style\\b|border-top-right-radius\\b|border-top-left-radius\\b|border-top-color\\b|border-top\\b|border-style\\b|border-spacing\\b|border-right-width\\b|border-right-style\\b|border-right-color\\b|border-right\\b|border-radius\\b|border-length\\b|border-left-width\\b|border-left-style\\b|border-left-color\\b|border-left\\b|border-image\\b|border-color\\b|border-collapse\\b|border-bottom-width\\b|border-bottom-style\\b|border-bottom-right-radius\\b|border-bottom-left-radius\\b|border-bottom-color\\b|border-bottom\\b|border\\b|bookmark-target\\b|bookmark-level\\b|bookmark-label\\b|bookmark\\b|binding\\b|bidi\\b|big\\b|before\\b|baseline-shift\\b|baseline\\b|balance\\b|background-size\\b|background-repeat\\b|background-position-y\\b|background-position-x\\b|background-position\\b|background-origin\\b|background-image\\b|background-color\\b|background-clip\\b|background-break\\b|background-attachment\\b|background\\b|backface-visibility\\b|azimuth\\b|attachment\\b|applet\\b|appearance\\b|animation-timing-function\\b|animation-play-state\\b|animation-name\\b|animation-iteration-count\\b|animation-fill-mode\\b|animation-duration\\b|animation-direction\\b|animation-delay\\b|animation\\b|alignment-baseline\\b|alignment-adjust\\b|alignment\\b|align-last\\b|align-self\\b|align-items\\b|align-content\\b|align\\b|after\\b|adjust\\b|acronym\\b)[-_a-z]+", |
| 1303 | "name": "invalid.illegal.scss" |
| 1304 | }, |
| 1305 | "property_names": { |
| 1306 | "patterns": [ |
| 1307 | { |
| 1308 | "include": "#property_name" |
| 1309 | }, |
| 1310 | { |
| 1311 | "include": "#property_name_error" |
| 1312 | } |
| 1313 | ] |
| 1314 | }, |
| 1315 | "property_values": { |
| 1316 | "comment": "Stuff that should only be available on values.", |
| 1317 | "patterns": [ |
| 1318 | { |
| 1319 | "include": "#string_single" |
| 1320 | }, |
| 1321 | { |
| 1322 | "include": "#string_double" |
| 1323 | }, |
| 1324 | { |
| 1325 | "include": "#constant_functions" |
| 1326 | }, |
| 1327 | { |
| 1328 | "include": "#constant_sass_functions" |
| 1329 | }, |
| 1330 | { |
| 1331 | "include": "#constant_hex" |
| 1332 | }, |
| 1333 | { |
| 1334 | "include": "#constant_rgb" |
| 1335 | }, |
| 1336 | { |
| 1337 | "include": "#constant_rgb_percentage" |
| 1338 | }, |
| 1339 | { |
| 1340 | "include": "#constant_important" |
| 1341 | }, |
| 1342 | { |
| 1343 | "include": "#constant_default" |
| 1344 | }, |
| 1345 | { |
| 1346 | "include": "#constant_optional" |
| 1347 | }, |
| 1348 | { |
| 1349 | "include": "#constant_unit" |
| 1350 | }, |
| 1351 | { |
| 1352 | "include": "#constant_property_value" |
| 1353 | }, |
| 1354 | { |
| 1355 | "include": "#constant_number" |
| 1356 | }, |
| 1357 | { |
| 1358 | "include": "#constant_font" |
| 1359 | }, |
| 1360 | { |
| 1361 | "include": "#constant_color" |
| 1362 | }, |
| 1363 | { |
| 1364 | "include": "#constant_deprecated_color" |
| 1365 | }, |
| 1366 | { |
| 1367 | "include": "#property_name" |
| 1368 | }, |
| 1369 | { |
| 1370 | "include": "#constant_mathematical_symbols" |
| 1371 | }, |
| 1372 | { |
| 1373 | "include": "#operators" |
| 1374 | } |
| 1375 | ] |
| 1376 | }, |
| 1377 | "rules": { |
| 1378 | "patterns": [ |
| 1379 | { |
| 1380 | "include": "#general" |
| 1381 | }, |
| 1382 | { |
| 1383 | "include": "#at_rule_extend" |
| 1384 | }, |
| 1385 | { |
| 1386 | "include": "#at_rule_content" |
| 1387 | }, |
| 1388 | { |
| 1389 | "include": "#at_rule_include" |
| 1390 | }, |
| 1391 | { |
| 1392 | "include": "#at_rule_media" |
| 1393 | }, |
| 1394 | { |
| 1395 | "include": "#selectors" |
| 1396 | } |
| 1397 | ] |
| 1398 | }, |
| 1399 | "selector_attribute": { |
| 1400 | "captures": { |
| 1401 | "1": { |
| 1402 | "name": "punctuation.definition.attribute-selector.begin.bracket.square.scss" |
| 1403 | }, |
| 1404 | "2": { |
| 1405 | "name": "entity.other.attribute-name.attribute.scss" |
| 1406 | }, |
| 1407 | "3": { |
| 1408 | "name": "punctuation.separator.operator.scss" |
| 1409 | }, |
| 1410 | "4": { |
| 1411 | "name": "string.unquoted.attribute-value.scss" |
| 1412 | }, |
| 1413 | "5": { |
| 1414 | "name": "string.quoted.double.attribute-value.scss" |
| 1415 | }, |
| 1416 | "6": { |
| 1417 | "name": "punctuation.definition.string.begin.scss" |
| 1418 | }, |
| 1419 | "7": { |
| 1420 | "name": "punctuation.definition.string.end.scss" |
| 1421 | }, |
| 1422 | "8": { |
| 1423 | "name": "punctuation.definition.attribute-selector.end.bracket.square.scss" |
| 1424 | } |
| 1425 | }, |
| 1426 | "match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][-_a-z0-9\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][-_a-z0-9\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(])", |
| 1427 | "name": "meta.attribute-selector.scss" |
| 1428 | }, |
| 1429 | "selector_class": { |
| 1430 | "begin": "(\\.)(?=[\\w-]|#{)", |
| 1431 | "beginCaptures": { |
| 1432 | "1": { |
| 1433 | "name": "punctuation.definition.entity.css" |
| 1434 | } |
| 1435 | }, |
| 1436 | "end": "(?![\\w-]|(#{))", |
| 1437 | "name": "entity.other.attribute-name.class.css", |
| 1438 | "patterns": [ |
| 1439 | { |
| 1440 | "include": "#interpolation" |
| 1441 | } |
| 1442 | ] |
| 1443 | }, |
| 1444 | "selector_entities": { |
| 1445 | "match": "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|circle|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|ellipse|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|g|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|image|input|ins|kbd|keygen|label|legend|li|line(?!-)|link|main|map|mark|menu|menuitem|meta|meter|nav|noframes|noscript|object(?!-)|ol|optgroup|option|output|p|param|path|picture|polygon|polyline|pre|progress|q|rb|rect|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table(?!-)|tbody|td|template|text(?!-)|textarea|textpath|tfoot|th|thead|time|title|tr|track|tspan|tt|u|ul|var|video|wbr)\\b", |
| 1446 | "name": "entity.name.tag.scss" |
| 1447 | }, |
| 1448 | "selector_custom": { |
| 1449 | "match": "\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|\\s++[^:]|\\s*[,{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-(child|last-child|of-type|last-of-type)|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\([0-9A-Za-z]*\\))?)", |
| 1450 | "name": "entity.name.tag.custom.scss" |
| 1451 | }, |
| 1452 | "selector_id": { |
| 1453 | "captures": { |
| 1454 | "1": { |
| 1455 | "name": "punctuation.definition.entity.css" |
| 1456 | } |
| 1457 | }, |
| 1458 | "match": "(#)[a-zA-Z][a-zA-Z0-9_-]*", |
| 1459 | "name": "entity.other.attribute-name.id.css" |
| 1460 | }, |
| 1461 | "selector_placeholder": { |
| 1462 | "captures": { |
| 1463 | "1": { |
| 1464 | "name": "punctuation.definition.entity.scss" |
| 1465 | } |
| 1466 | }, |
| 1467 | "match": "(%)[a-zA-Z0-9_-]+", |
| 1468 | "name": "entity.other.attribute-name.placeholder.scss" |
| 1469 | }, |
| 1470 | "parent_selector_suffix": { |
| 1471 | "match": "(?<=&)[a-zA-Z0-9_-]+", |
| 1472 | "name": "entity.other.attribute-name.parent-selector-suffix.scss" |
| 1473 | }, |
| 1474 | "selector_pseudo_class": { |
| 1475 | "patterns": [ |
| 1476 | { |
| 1477 | "begin": "((:)\\bnth-(?:child|last-child|of-type|last-of-type))(\\()", |
| 1478 | "beginCaptures": { |
| 1479 | "1": { |
| 1480 | "name": "entity.other.attribute-name.pseudo-class.css" |
| 1481 | }, |
| 1482 | "2": { |
| 1483 | "name": "punctuation.definition.entity.css" |
| 1484 | }, |
| 1485 | "3": { |
| 1486 | "name": "punctuation.definition.pseudo-class.begin.bracket.round.css" |
| 1487 | } |
| 1488 | }, |
| 1489 | "end": "\\)", |
| 1490 | "endCaptures": { |
| 1491 | "0": { |
| 1492 | "name": "punctuation.definition.pseudo-class.end.bracket.round.css" |
| 1493 | } |
| 1494 | }, |
| 1495 | "patterns": [ |
| 1496 | { |
| 1497 | "match": "\\d+", |
| 1498 | "name": "constant.numeric.scss" |
| 1499 | }, |
| 1500 | { |
| 1501 | "match": "(?<=\\d)n\\b|\\b(n|even|odd)\\b", |
| 1502 | "name": "constant.other.scss" |
| 1503 | }, |
| 1504 | { |
| 1505 | "match": "\\w+", |
| 1506 | "name": "invalid.illegal.scss" |
| 1507 | } |
| 1508 | ] |
| 1509 | }, |
| 1510 | { |
| 1511 | "match": "(?x)\n(:)\\b\n(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|\nindeterminate|root|first-child|last-child|first-of-type|last-of-type|\nonly-child|only-of-type|empty|not|valid|invalid)\\b", |
| 1512 | "captures": { |
| 1513 | "0": { |
| 1514 | "name": "entity.other.attribute-name.pseudo-class.css" |
| 1515 | }, |
| 1516 | "1": { |
| 1517 | "name": "punctuation.definition.entity.css" |
| 1518 | } |
| 1519 | } |
| 1520 | } |
| 1521 | ] |
| 1522 | }, |
| 1523 | "selector_pseudo_element": { |
| 1524 | "captures": { |
| 1525 | "1": { |
| 1526 | "name": "punctuation.definition.entity.css" |
| 1527 | } |
| 1528 | }, |
| 1529 | "match": "(:+)((-(moz|webkit|ms)-)?(after|before|first-letter|first-line|selection))\\b", |
| 1530 | "name": "entity.other.attribute-name.pseudo-element.css" |
| 1531 | }, |
| 1532 | "selectors": { |
| 1533 | "comment": "Stuff for Selectors.", |
| 1534 | "patterns": [ |
| 1535 | { |
| 1536 | "include": "#selector_entities" |
| 1537 | }, |
| 1538 | { |
| 1539 | "include": "#selector_custom" |
| 1540 | }, |
| 1541 | { |
| 1542 | "include": "#selector_class" |
| 1543 | }, |
| 1544 | { |
| 1545 | "include": "#selector_id" |
| 1546 | }, |
| 1547 | { |
| 1548 | "include": "#selector_pseudo_class" |
| 1549 | }, |
| 1550 | { |
| 1551 | "include": "#tag_wildcard" |
| 1552 | }, |
| 1553 | { |
| 1554 | "include": "#tag_parent_reference" |
| 1555 | }, |
| 1556 | { |
| 1557 | "include": "#selector_pseudo_element" |
| 1558 | }, |
| 1559 | { |
| 1560 | "include": "#selector_attribute" |
| 1561 | }, |
| 1562 | { |
| 1563 | "include": "#selector_placeholder" |
| 1564 | }, |
| 1565 | { |
| 1566 | "include": "#parent_selector_suffix" |
| 1567 | } |
| 1568 | ] |
| 1569 | }, |
| 1570 | "string_double": { |
| 1571 | "begin": "\"", |
| 1572 | "beginCaptures": { |
| 1573 | "0": { |
| 1574 | "name": "punctuation.definition.string.begin.scss" |
| 1575 | } |
| 1576 | }, |
| 1577 | "end": "\"", |
| 1578 | "endCaptures": { |
| 1579 | "0": { |
| 1580 | "name": "punctuation.definition.string.end.scss" |
| 1581 | } |
| 1582 | }, |
| 1583 | "name": "string.quoted.double.scss", |
| 1584 | "patterns": [ |
| 1585 | { |
| 1586 | "match": "\\\\(\\h{1,6}|.)", |
| 1587 | "name": "constant.character.escape.scss" |
| 1588 | }, |
| 1589 | { |
| 1590 | "include": "#interpolation" |
| 1591 | } |
| 1592 | ] |
| 1593 | }, |
| 1594 | "string_single": { |
| 1595 | "begin": "'", |
| 1596 | "beginCaptures": { |
| 1597 | "0": { |
| 1598 | "name": "punctuation.definition.string.begin.scss" |
| 1599 | } |
| 1600 | }, |
| 1601 | "end": "'", |
| 1602 | "endCaptures": { |
| 1603 | "0": { |
| 1604 | "name": "punctuation.definition.string.end.scss" |
| 1605 | } |
| 1606 | }, |
| 1607 | "name": "string.quoted.single.scss", |
| 1608 | "patterns": [ |
| 1609 | { |
| 1610 | "match": "\\\\(\\h{1,6}|.)", |
| 1611 | "name": "constant.character.escape.scss" |
| 1612 | }, |
| 1613 | { |
| 1614 | "include": "#interpolation" |
| 1615 | } |
| 1616 | ] |
| 1617 | }, |
| 1618 | "tag_parent_reference": { |
| 1619 | "match": "&", |
| 1620 | "name": "entity.name.tag.reference.scss" |
| 1621 | }, |
| 1622 | "tag_wildcard": { |
| 1623 | "match": "\\*", |
| 1624 | "name": "entity.name.tag.wildcard.scss" |
| 1625 | }, |
| 1626 | "variable": { |
| 1627 | "patterns": [ |
| 1628 | { |
| 1629 | "include": "#variables" |
| 1630 | }, |
| 1631 | { |
| 1632 | "include": "#interpolation" |
| 1633 | } |
| 1634 | ] |
| 1635 | }, |
| 1636 | "variable_setting": { |
| 1637 | "begin": "\\s*(\\$[A-Za-z0-9_-]+\\b)\\s*(:)\\s*", |
| 1638 | "captures": { |
| 1639 | "1": { |
| 1640 | "name": "variable.scss" |
| 1641 | }, |
| 1642 | "2": { |
| 1643 | "name": "punctuation.separator.key-value.scss" |
| 1644 | } |
| 1645 | }, |
| 1646 | "end": "\\s*(?=;)", |
| 1647 | "name": "meta.set.variable.scss", |
| 1648 | "patterns": [ |
| 1649 | { |
| 1650 | "include": "#comment_block" |
| 1651 | }, |
| 1652 | { |
| 1653 | "include": "#comment_line" |
| 1654 | }, |
| 1655 | { |
| 1656 | "include": "#map" |
| 1657 | }, |
| 1658 | { |
| 1659 | "include": "#property_values" |
| 1660 | }, |
| 1661 | { |
| 1662 | "include": "#variable" |
| 1663 | } |
| 1664 | ] |
| 1665 | }, |
| 1666 | "variables": { |
| 1667 | "match": "\\$[A-Za-z0-9_-]+\\b", |
| 1668 | "name": "variable.scss" |
| 1669 | } |
| 1670 | }, |
| 1671 | "version": "https://github.com/atom/language-sass/commit/b0417d1412a9169562f637133099fe2bb841a735" |
| 1672 | } |