| 1 | { |
| 2 | "scopeName": "source.css.scss", |
| 3 | "name": "SCSS", |
| 4 | "fileTypes": ["scss", "css.scss", "css.scss.erb", "scss.erb"], |
| 5 | "patterns": [ |
| 6 | { |
| 7 | "include": "#variable_setting" |
| 8 | }, |
| 9 | { |
| 10 | "include": "#at_rule_include" |
| 11 | }, |
| 12 | { |
| 13 | "include": "#at_rule_import" |
| 14 | }, |
| 15 | { |
| 16 | "include": "#general" |
| 17 | }, |
| 18 | { |
| 19 | "include": "#flow_control" |
| 20 | }, |
| 21 | { |
| 22 | "include": "#rules" |
| 23 | }, |
| 24 | { |
| 25 | "include": "#property_list" |
| 26 | }, |
| 27 | { |
| 28 | "include": "#at_rule_mixin" |
| 29 | }, |
| 30 | { |
| 31 | "include": "#at_rule_media" |
| 32 | }, |
| 33 | { |
| 34 | "include": "#at_rule_function" |
| 35 | }, |
| 36 | { |
| 37 | "include": "#at_rule_charset" |
| 38 | }, |
| 39 | { |
| 40 | "include": "#at_rule_option" |
| 41 | }, |
| 42 | { |
| 43 | "include": "#at_rule_namespace" |
| 44 | }, |
| 45 | { |
| 46 | "include": "#at_rule_fontface" |
| 47 | }, |
| 48 | { |
| 49 | "include": "#at_rule_page" |
| 50 | }, |
| 51 | { |
| 52 | "include": "#at_rule_keyframes" |
| 53 | }, |
| 54 | { |
| 55 | "include": "#at_rule_at_root" |
| 56 | }, |
| 57 | { |
| 58 | "include": "#at_rule_supports" |
| 59 | } |
| 60 | ], |
| 61 | "repository": { |
| 62 | "at_rule__": { |
| 63 | "comment": "Note how all @rules are prefixed." |
| 64 | }, |
| 65 | "at_rule_charset": { |
| 66 | "begin": "\\s*((@)charset\\b)\\s*", |
| 67 | "captures": { |
| 68 | "1": { |
| 69 | "name": "keyword.control.at-rule.charset.scss" |
| 70 | }, |
| 71 | "2": { |
| 72 | "name": "punctuation.definition.keyword.scss" |
| 73 | } |
| 74 | }, |
| 75 | "comment": "Charset", |
| 76 | "end": "\\s*((?=;|$))", |
| 77 | "name": "meta.at-rule.charset.scss", |
| 78 | "patterns": [ |
| 79 | { |
| 80 | "include": "#variable" |
| 81 | }, |
| 82 | { |
| 83 | "include": "#string_single" |
| 84 | }, |
| 85 | { |
| 86 | "include": "#string_double" |
| 87 | } |
| 88 | ] |
| 89 | }, |
| 90 | "at_rule_content": { |
| 91 | "begin": "\\s*((@)content\\b)\\s*", |
| 92 | "captures": { |
| 93 | "1": { |
| 94 | "name": "keyword.control.content.scss" |
| 95 | } |
| 96 | }, |
| 97 | "end": "\\s*((?=;))", |
| 98 | "name": "meta.content.scss", |
| 99 | "patterns": [ |
| 100 | { |
| 101 | "include": "#variable" |
| 102 | }, |
| 103 | { |
| 104 | "include": "#selectors" |
| 105 | }, |
| 106 | { |
| 107 | "include": "#property_values" |
| 108 | } |
| 109 | ] |
| 110 | }, |
| 111 | "at_rule_each": { |
| 112 | "begin": "\\s*((@)each\\b)\\s*", |
| 113 | "captures": { |
| 114 | "1": { |
| 115 | "name": "keyword.control.each.scss" |
| 116 | }, |
| 117 | "2": { |
| 118 | "name": "punctuation.definition.keyword.scss" |
| 119 | } |
| 120 | }, |
| 121 | "end": "\\s*((?=}))", |
| 122 | "name": "meta.at-rule.each.scss", |
| 123 | "patterns": [ |
| 124 | { |
| 125 | "match": "\\b(in|,)\\b", |
| 126 | "name": "keyword.control.operator" |
| 127 | }, |
| 128 | { |
| 129 | "include": "#variable" |
| 130 | }, |
| 131 | { |
| 132 | "include": "#property_values" |
| 133 | }, |
| 134 | { |
| 135 | "include": "$self" |
| 136 | } |
| 137 | ] |
| 138 | }, |
| 139 | "at_rule_else": { |
| 140 | "begin": "\\s*((@)else(\\s*(if)?))\\s*", |
| 141 | "captures": { |
| 142 | "1": { |
| 143 | "name": "keyword.control.else.scss" |
| 144 | }, |
| 145 | "2": { |
| 146 | "name": "punctuation.definition.keyword.scss" |
| 147 | } |
| 148 | }, |
| 149 | "end": "\\s*(?={)", |
| 150 | "name": "meta.at-rule.else.scss", |
| 151 | "patterns": [ |
| 152 | { |
| 153 | "include": "#conditional_operators" |
| 154 | }, |
| 155 | { |
| 156 | "include": "#variable" |
| 157 | }, |
| 158 | { |
| 159 | "include": "#property_values" |
| 160 | } |
| 161 | ] |
| 162 | }, |
| 163 | "at_rule_extend": { |
| 164 | "begin": "\\s*((@)extend\\b)\\s*", |
| 165 | "captures": { |
| 166 | "1": { |
| 167 | "name": "keyword.control.at-rule.import.scss" |
| 168 | }, |
| 169 | "2": { |
| 170 | "name": "punctuation.definition.keyword.scss" |
| 171 | } |
| 172 | }, |
| 173 | "end": "\\s*(?=;)", |
| 174 | "name": "meta.at-rule.import.scss", |
| 175 | "patterns": [ |
| 176 | { |
| 177 | "include": "#variable" |
| 178 | }, |
| 179 | { |
| 180 | "include": "#selectors" |
| 181 | }, |
| 182 | { |
| 183 | "include": "#property_values" |
| 184 | } |
| 185 | ] |
| 186 | }, |
| 187 | "at_rule_fontface": { |
| 188 | "patterns": [ |
| 189 | { |
| 190 | "begin": "^\\s*((@)font-face\\b)", |
| 191 | "beginCaptures": { |
| 192 | "1": { |
| 193 | "name": "keyword.control.at-rule.fontface.scss" |
| 194 | }, |
| 195 | "2": { |
| 196 | "name": "punctuation.definition.keyword.scss" |
| 197 | } |
| 198 | }, |
| 199 | "end": "\\s*(?={)", |
| 200 | "name": "meta.at-rule.fontface.scss", |
| 201 | "patterns": [ |
| 202 | { |
| 203 | "include": "#function_attributes" |
| 204 | } |
| 205 | ] |
| 206 | } |
| 207 | ] |
| 208 | }, |
| 209 | "at_rule_for": { |
| 210 | "begin": "\\s*((@)for\\b)\\s*", |
| 211 | "captures": { |
| 212 | "1": { |
| 213 | "name": "keyword.control.for.scss" |
| 214 | }, |
| 215 | "2": { |
| 216 | "name": "punctuation.definition.keyword.scss" |
| 217 | } |
| 218 | }, |
| 219 | "end": "\\s*(?={)", |
| 220 | "name": "meta.at-rule.for.scss", |
| 221 | "patterns": [ |
| 222 | { |
| 223 | "match": "(==|!=|<=|>=|<|>|from|to|through)", |
| 224 | "name": "keyword.control.operator" |
| 225 | }, |
| 226 | { |
| 227 | "include": "#variable" |
| 228 | }, |
| 229 | { |
| 230 | "include": "#property_values" |
| 231 | }, |
| 232 | { |
| 233 | "include": "$self" |
| 234 | } |
| 235 | ] |
| 236 | }, |
| 237 | "at_rule_function": { |
| 238 | "patterns": [ |
| 239 | { |
| 240 | "begin": "\\s*((@)function\\b)\\s*", |
| 241 | "captures": { |
| 242 | "1": { |
| 243 | "name": "keyword.control.at-rule.function.scss" |
| 244 | }, |
| 245 | "2": { |
| 246 | "name": "punctuation.definition.keyword.scss" |
| 247 | }, |
| 248 | "3": { |
| 249 | "name": "entity.name.function.scss" |
| 250 | } |
| 251 | }, |
| 252 | "comment": "Function with Attributes", |
| 253 | "end": "\\s*(?={)", |
| 254 | "name": "meta.at-rule.function.scss", |
| 255 | "patterns": [ |
| 256 | { |
| 257 | "include": "#function_attributes" |
| 258 | } |
| 259 | ] |
| 260 | }, |
| 261 | { |
| 262 | "captures": { |
| 263 | "1": { |
| 264 | "name": "keyword.control.at-rule.function.scss" |
| 265 | }, |
| 266 | "2": { |
| 267 | "name": "punctuation.definition.keyword.scss" |
| 268 | }, |
| 269 | "3": { |
| 270 | "name": "entity.name.function.scss" |
| 271 | } |
| 272 | }, |
| 273 | "comment": "Simple Function", |
| 274 | "match": "\\s*((@)function\\b)\\s*", |
| 275 | "name": "meta.at-rule.function.scss" |
| 276 | } |
| 277 | ] |
| 278 | }, |
| 279 | "at_rule_if": { |
| 280 | "begin": "\\s*((@)if\\b)\\s*", |
| 281 | "captures": { |
| 282 | "1": { |
| 283 | "name": "keyword.control.if.scss" |
| 284 | }, |
| 285 | "2": { |
| 286 | "name": "punctuation.definition.keyword.scss" |
| 287 | } |
| 288 | }, |
| 289 | "end": "\\s*(?={)", |
| 290 | "name": "meta.at-rule.if.scss", |
| 291 | "patterns": [ |
| 292 | { |
| 293 | "include": "#conditional_operators" |
| 294 | }, |
| 295 | { |
| 296 | "include": "#variable" |
| 297 | }, |
| 298 | { |
| 299 | "include": "#property_values" |
| 300 | } |
| 301 | ] |
| 302 | }, |
| 303 | "at_rule_import": { |
| 304 | "begin": "\\s*((@)import\\b)\\s*", |
| 305 | "captures": { |
| 306 | "1": { |
| 307 | "name": "keyword.control.at-rule.import.scss" |
| 308 | }, |
| 309 | "2": { |
| 310 | "name": "punctuation.definition.keyword.scss" |
| 311 | } |
| 312 | }, |
| 313 | "end": "\\s*((?=;)|(?=}))", |
| 314 | "name": "meta.at-rule.import.scss", |
| 315 | "patterns": [ |
| 316 | { |
| 317 | "include": "#variable" |
| 318 | }, |
| 319 | { |
| 320 | "include": "#string_single" |
| 321 | }, |
| 322 | { |
| 323 | "include": "#string_double" |
| 324 | }, |
| 325 | { |
| 326 | "include": "#functions" |
| 327 | }, |
| 328 | { |
| 329 | "include": "#comment_line" |
| 330 | } |
| 331 | ] |
| 332 | }, |
| 333 | "at_rule_include": { |
| 334 | "patterns": [ |
| 335 | { |
| 336 | "begin": "(?<=@include)\\s+([\\w-]+)\\s*(\\()", |
| 337 | "beginCaptures": { |
| 338 | "1": { |
| 339 | "name": "entity.name.function.scss" |
| 340 | }, |
| 341 | "2": { |
| 342 | "name": "punctuation.definition.parameters.begin.bracket.round.scss" |
| 343 | } |
| 344 | }, |
| 345 | "end": "\\)", |
| 346 | "endCaptures": { |
| 347 | "0": { |
| 348 | "name": "punctuation.definition.parameters.end.bracket.round.scss" |
| 349 | } |
| 350 | }, |
| 351 | "name": "meta.at-rule.include.scss", |
| 352 | "patterns": [ |
| 353 | { |
| 354 | "include": "#function_attributes" |
| 355 | } |
| 356 | ] |
| 357 | }, |
| 358 | { |
| 359 | "match": "(?<=@include)\\s+([\\w-]+)", |
| 360 | "captures": { |
| 361 | "0": { |
| 362 | "name": "meta.at-rule.include.scss" |
| 363 | }, |
| 364 | "1": { |
| 365 | "name": "entity.name.function.scss" |
| 366 | } |
| 367 | } |
| 368 | }, |
| 369 | { |
| 370 | "match": "((@)include)\\b", |
| 371 | "captures": { |
| 372 | "0": { |
| 373 | "name": "meta.at-rule.include.scss" |
| 374 | }, |
| 375 | "1": { |
| 376 | "name": "keyword.control.at-rule.include.scss" |
| 377 | }, |
| 378 | "2": { |
| 379 | "name": "punctuation.definition.keyword.scss" |
| 380 | } |
| 381 | } |
| 382 | } |
| 383 | ] |
| 384 | }, |
| 385 | "at_rule_keyframes": { |
| 386 | "begin": "(?<=^|\\s)(@)(?:-(?:webkit|moz)-)?keyframes\\b", |
| 387 | "beginCaptures": { |
| 388 | "0": { |
| 389 | "name": "keyword.control.at-rule.keyframes.scss" |
| 390 | }, |
| 391 | "1": { |
| 392 | "name": "punctuation.definition.keyword.scss" |
| 393 | } |
| 394 | }, |
| 395 | "end": "(?<=})", |
| 396 | "name": "meta.at-rule.keyframes.scss", |
| 397 | "patterns": [ |
| 398 | { |
| 399 | "match": "(?<=@keyframes)\\s+((?:[_A-Za-z][-\\w]|-[_A-Za-z])[-\\w]*)", |
| 400 | "captures": { |
| 401 | "1": { |
| 402 | "name": "entity.name.function.scss" |
| 403 | } |
| 404 | } |
| 405 | }, |
| 406 | { |
| 407 | "begin": "(?<=@keyframes)\\s+(\")", |
| 408 | "beginCaptures": { |
| 409 | "1": { |
| 410 | "name": "punctuation.definition.string.begin.scss" |
| 411 | } |
| 412 | }, |
| 413 | "end": "\"", |
| 414 | "endCaptures": { |
| 415 | "0": { |
| 416 | "name": "punctuation.definition.string.end.scss" |
| 417 | } |
| 418 | }, |
| 419 | "name": "string.quoted.double.scss", |
| 420 | "contentName": "entity.name.function.scss", |
| 421 | "patterns": [ |
| 422 | { |
| 423 | "match": "\\\\(\\h{1,6}|.)", |
| 424 | "name": "constant.character.escape.scss" |
| 425 | }, |
| 426 | { |
| 427 | "include": "#interpolation" |
| 428 | } |
| 429 | ] |
| 430 | }, |
| 431 | { |
| 432 | "begin": "(?<=@keyframes)\\s+(')", |
| 433 | "beginCaptures": { |
| 434 | "1": { |
| 435 | "name": "punctuation.definition.string.begin.scss" |
| 436 | } |
| 437 | }, |
| 438 | "end": "'", |
| 439 | "endCaptures": { |
| 440 | "0": { |
| 441 | "name": "punctuation.definition.string.end.scss" |
| 442 | } |
| 443 | }, |
| 444 | "name": "string.quoted.single.scss", |
| 445 | "contentName": "entity.name.function.scss", |
| 446 | "patterns": [ |
| 447 | { |
| 448 | "match": "\\\\(\\h{1,6}|.)", |
| 449 | "name": "constant.character.escape.scss" |
| 450 | }, |
| 451 | { |
| 452 | "include": "#interpolation" |
| 453 | } |
| 454 | ] |
| 455 | }, |
| 456 | { |
| 457 | "begin": "{", |
| 458 | "beginCaptures": { |
| 459 | "0": { |
| 460 | "name": "punctuation.section.keyframes.begin.scss" |
| 461 | } |
| 462 | }, |
| 463 | "end": "}", |
| 464 | "endCaptures": { |
| 465 | "0": { |
| 466 | "name": "punctuation.section.keyframes.end.scss" |
| 467 | } |
| 468 | }, |
| 469 | "patterns": [ |
| 470 | { |
| 471 | "match": "\\b(?:(?:100|[1-9]\\d|\\d)%|from|to)(?=\\s*{)", |
| 472 | "name": "entity.other.attribute-name.scss" |
| 473 | }, |
| 474 | { |
| 475 | "include": "#flow_control" |
| 476 | }, |
| 477 | { |
| 478 | "include": "#interpolation" |
| 479 | }, |
| 480 | { |
| 481 | "include": "#property_list" |
| 482 | }, |
| 483 | { |
| 484 | "include": "#rules" |
| 485 | } |
| 486 | ] |
| 487 | } |
| 488 | ] |
| 489 | }, |
| 490 | "at_rule_media": { |
| 491 | "patterns": [ |
| 492 | { |
| 493 | "begin": "^\\s*((@)media\\b)\\s*", |
| 494 | "end": "\\s*(?={)", |
| 495 | "captures": { |
| 496 | "1": { |
| 497 | "name": "keyword.control.at-rule.media.scss" |
| 498 | }, |
| 499 | "2": { |
| 500 | "name": "punctuation.definition.keyword.scss" |
| 501 | } |
| 502 | }, |
| 503 | "name": "meta.at-rule.media.scss", |
| 504 | "patterns": [ |
| 505 | { |
| 506 | "match": "\\b(only)\\b", |
| 507 | "name": "keyword.control.operator" |
| 508 | }, |
| 509 | { |
| 510 | "include": "#media_features" |
| 511 | }, |
| 512 | { |
| 513 | "include": "#property_values" |
| 514 | }, |
| 515 | { |
| 516 | "include": "#variable" |
| 517 | }, |
| 518 | { |
| 519 | "include": "#conditional_operators" |
| 520 | }, |
| 521 | { |
| 522 | "include": "#media_types" |
| 523 | }, |
| 524 | { |
| 525 | "include": "#property_names" |
| 526 | } |
| 527 | ] |
| 528 | } |
| 529 | ] |
| 530 | }, |
| 531 | "at_rule_mixin": { |
| 532 | "patterns": [ |
| 533 | { |
| 534 | "begin": "(?<=@mixin)\\s+([\\w-]+)\\s*(\\()", |
| 535 | "beginCaptures": { |
| 536 | "1": { |
| 537 | "name": "entity.name.function.scss" |
| 538 | }, |
| 539 | "2": { |
| 540 | "name": "punctuation.definition.parameters.begin.bracket.round.scss" |
| 541 | } |
| 542 | }, |
| 543 | "end": "\\)", |
| 544 | "endCaptures": { |
| 545 | "0": { |
| 546 | "name": "punctuation.definition.parameters.end.bracket.round.scss" |
| 547 | } |
| 548 | }, |
| 549 | "name": "meta.at-rule.mixin.scss", |
| 550 | "patterns": [ |
| 551 | { |
| 552 | "include": "#function_attributes" |
| 553 | } |
| 554 | ] |
| 555 | }, |
| 556 | { |
| 557 | "match": "(?<=@mixin)\\s+([\\w-]+)", |
| 558 | "captures": { |
| 559 | "1": { |
| 560 | "name": "entity.name.function.scss" |
| 561 | } |
| 562 | }, |
| 563 | "name": "meta.at-rule.mixin.scss" |
| 564 | }, |
| 565 | { |
| 566 | "match": "((@)mixin)\\b", |
| 567 | "captures": { |
| 568 | "1": { |
| 569 | "name": "keyword.control.at-rule.mixin.scss" |
| 570 | }, |
| 571 | "2": { |
| 572 | "name": "punctuation.definition.keyword.scss" |
| 573 | } |
| 574 | }, |
| 575 | "name": "meta.at-rule.mixin.scss" |
| 576 | } |
| 577 | ] |
| 578 | }, |
| 579 | "at_rule_namespace": { |
| 580 | "patterns": [ |
| 581 | { |
| 582 | "begin": "(?<=@namespace)\\s+(?=url)", |
| 583 | "end": "(?=;|$)", |
| 584 | "name": "meta.at-rule.namespace.scss", |
| 585 | "patterns": [ |
| 586 | { |
| 587 | "include": "#property_values" |
| 588 | }, |
| 589 | { |
| 590 | "include": "#string_single" |
| 591 | }, |
| 592 | { |
| 593 | "include": "#string_double" |
| 594 | } |
| 595 | ] |
| 596 | }, |
| 597 | { |
| 598 | "begin": "(?<=@namespace)\\s+([\\w-]*)", |
| 599 | "captures": { |
| 600 | "1": { |
| 601 | "name": "entity.name.namespace-prefix.scss" |
| 602 | } |
| 603 | }, |
| 604 | "end": "(?=;|$)", |
| 605 | "name": "meta.at-rule.namespace.scss", |
| 606 | "patterns": [ |
| 607 | { |
| 608 | "include": "#variables" |
| 609 | }, |
| 610 | { |
| 611 | "include": "#property_values" |
| 612 | }, |
| 613 | { |
| 614 | "include": "#string_single" |
| 615 | }, |
| 616 | { |
| 617 | "include": "#string_double" |
| 618 | } |
| 619 | ] |
| 620 | }, |
| 621 | { |
| 622 | "match": "((@)namespace)\\b", |
| 623 | "captures": { |
| 624 | "1": { |
| 625 | "name": "keyword.control.at-rule.namespace.scss" |
| 626 | }, |
| 627 | "2": { |
| 628 | "name": "punctuation.definition.keyword.scss" |
| 629 | } |
| 630 | }, |
| 631 | "name": "meta.at-rule.namespace.scss" |
| 632 | } |
| 633 | ] |
| 634 | }, |
| 635 | "at_rule_option": { |
| 636 | "captures": { |
| 637 | "1": { |
| 638 | "name": "keyword.control.at-rule.charset.scss" |
| 639 | }, |
| 640 | "2": { |
| 641 | "name": "punctuation.definition.keyword.scss" |
| 642 | } |
| 643 | }, |
| 644 | "comment": "Option", |
| 645 | "match": "^\\s*((@)option\\b)\\s*", |
| 646 | "name": "meta.at-rule.option.scss" |
| 647 | }, |
| 648 | "at_rule_page": { |
| 649 | "patterns": [ |
| 650 | { |
| 651 | "begin": "^\\s*((@)page)(?=:|\\s)\\s*([-:\\w]*)", |
| 652 | "captures": { |
| 653 | "1": { |
| 654 | "name": "keyword.control.at-rule.page.scss" |
| 655 | }, |
| 656 | "2": { |
| 657 | "name": "punctuation.definition.keyword.scss" |
| 658 | }, |
| 659 | "3": { |
| 660 | "name": "entity.name.function.scss" |
| 661 | } |
| 662 | }, |
| 663 | "comment": "Page with Attributes", |
| 664 | "end": "\\s*(?={)", |
| 665 | "name": "meta.at-rule.page.scss" |
| 666 | } |
| 667 | ] |
| 668 | }, |
| 669 | "at_rule_return": { |
| 670 | "begin": "\\s*((@)(return)\\b)", |
| 671 | "captures": { |
| 672 | "1": { |
| 673 | "name": "keyword.control.return.scss" |
| 674 | }, |
| 675 | "2": { |
| 676 | "name": "punctuation.definition.keyword.scss" |
| 677 | } |
| 678 | }, |
| 679 | "end": "\\s*((?=;))", |
| 680 | "name": "meta.at-rule.return.scss", |
| 681 | "patterns": [ |
| 682 | { |
| 683 | "include": "#variable" |
| 684 | }, |
| 685 | { |
| 686 | "include": "#property_values" |
| 687 | } |
| 688 | ] |
| 689 | }, |
| 690 | "at_rule_at_root": { |
| 691 | "begin": "\\s*((@)(at-root))(\\s+|$)", |
| 692 | "end": "\\s*(?={)", |
| 693 | "beginCaptures": { |
| 694 | "1": { |
| 695 | "name": "keyword.control.at-rule.at-root.scss" |
| 696 | }, |
| 697 | "2": { |
| 698 | "name": "punctuation.definition.keyword.scss" |
| 699 | } |
| 700 | }, |
| 701 | "name": "meta.at-rule.at-root.scss", |
| 702 | "patterns": [ |
| 703 | { |
| 704 | "include": "#function_attributes" |
| 705 | }, |
| 706 | { |
| 707 | "include": "#functions" |
| 708 | }, |
| 709 | { |
| 710 | "include": "#selectors" |
| 711 | } |
| 712 | ] |
| 713 | }, |
| 714 | "at_rule_supports": { |
| 715 | "begin": "(?<=^|\\s)(@)supports\\b", |
| 716 | "captures": { |
| 717 | "0": { |
| 718 | "name": "keyword.control.at-rule.supports.scss" |
| 719 | }, |
| 720 | "1": { |
| 721 | "name": "punctuation.definition.keyword.scss" |
| 722 | } |
| 723 | }, |
| 724 | "end": "(?={)|$", |
| 725 | "name": "meta.at-rule.supports.scss", |
| 726 | "patterns": [ |
| 727 | { |
| 728 | "include": "#logical_operators" |
| 729 | }, |
| 730 | { |
| 731 | "include": "#properties" |
| 732 | }, |
| 733 | { |
| 734 | "match": "\\(", |
| 735 | "name": "punctuation.definition.condition.begin.bracket.round.scss" |
| 736 | }, |
| 737 | { |
| 738 | "match": "\\)", |
| 739 | "name": "punctuation.definition.condition.end.bracket.round.scss" |
| 740 | } |
| 741 | ] |
| 742 | }, |
| 743 | "at_rule_warn": { |
| 744 | "begin": "\\s*((@)(warn|debug|error)\\b)\\s*", |
| 745 | "captures": { |
| 746 | "1": { |
| 747 | "name": "keyword.control.warn.scss" |
| 748 | }, |
| 749 | "2": { |
| 750 | "name": "punctuation.definition.keyword.scss" |
| 751 | } |
| 752 | }, |
| 753 | "end": "\\s*(?=;)", |
| 754 | "name": "meta.at-rule.warn.scss", |
| 755 | "patterns": [ |
| 756 | { |
| 757 | "include": "#variable" |
| 758 | }, |
| 759 | { |
| 760 | "include": "#string_double" |
| 761 | }, |
| 762 | { |
| 763 | "include": "#string_single" |
| 764 | } |
| 765 | ] |
| 766 | }, |
| 767 | "at_rule_while": { |
| 768 | "begin": "\\s*((@)while\\b)\\s*", |
| 769 | "captures": { |
| 770 | "1": { |
| 771 | "name": "keyword.control.while.scss" |
| 772 | }, |
| 773 | "2": { |
| 774 | "name": "punctuation.definition.keyword.scss" |
| 775 | } |
| 776 | }, |
| 777 | "end": "\\s*(?=})", |
| 778 | "name": "meta.at-rule.while.scss", |
| 779 | "patterns": [ |
| 780 | { |
| 781 | "include": "#conditional_operators" |
| 782 | }, |
| 783 | { |
| 784 | "include": "#variable" |
| 785 | }, |
| 786 | { |
| 787 | "include": "#property_values" |
| 788 | }, |
| 789 | { |
| 790 | "include": "$self" |
| 791 | } |
| 792 | ] |
| 793 | }, |
| 794 | "comment_block": { |
| 795 | "begin": "/\\*", |
| 796 | "beginCaptures": { |
| 797 | "0": { |
| 798 | "name": "punctuation.definition.comment.scss" |
| 799 | } |
| 800 | }, |
| 801 | "end": "\\*/", |
| 802 | "endCaptures": { |
| 803 | "0": { |
| 804 | "name": "punctuation.definition.comment.scss" |
| 805 | } |
| 806 | }, |
| 807 | "name": "comment.block.scss" |
| 808 | }, |
| 809 | "comment_line": { |
| 810 | "begin": "//", |
| 811 | "beginCaptures": { |
| 812 | "0": { |
| 813 | "name": "punctuation.definition.comment.scss" |
| 814 | } |
| 815 | }, |
| 816 | "end": "\\n", |
| 817 | "name": "comment.line.scss" |
| 818 | }, |
| 819 | "constant_color": { |
| 820 | "comment": "http://www.w3.org/TR/css3-color/#svg-color", |
| 821 | "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", |
| 822 | "name": "support.constant.color.w3c-standard-color-name.scss" |
| 823 | }, |
| 824 | "constant_default": { |
| 825 | "match": "!default", |
| 826 | "name": "keyword.other.default.scss" |
| 827 | }, |
| 828 | "constant_deprecated_color": { |
| 829 | "comment": "These colours are deprecated from CSS color module level 3 http://www.w3.org/TR/css3-color/#css2-system", |
| 830 | "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", |
| 831 | "name": "invalid.deprecated.color.system.css.scss" |
| 832 | }, |
| 833 | "constant_font": { |
| 834 | "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)", |
| 835 | "name": "support.constant.font-name.scss" |
| 836 | }, |
| 837 | "constant_functions": { |
| 838 | "begin": "([\\w-]+)(\\()", |
| 839 | "beginCaptures": { |
| 840 | "1": { |
| 841 | "name": "support.function.misc.scss" |
| 842 | }, |
| 843 | "2": { |
| 844 | "name": "punctuation.section.function.scss" |
| 845 | } |
| 846 | }, |
| 847 | "end": "(\\))", |
| 848 | "endCaptures": { |
| 849 | "1": { |
| 850 | "name": "punctuation.section.function.scss" |
| 851 | } |
| 852 | }, |
| 853 | "patterns": [ |
| 854 | { |
| 855 | "include": "#parameters" |
| 856 | } |
| 857 | ] |
| 858 | }, |
| 859 | "constant_hex": { |
| 860 | "captures": { |
| 861 | "1": { |
| 862 | "name": "punctuation.definition.constant.scss" |
| 863 | } |
| 864 | }, |
| 865 | "match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b", |
| 866 | "name": "constant.numeric.color.hex-value.scss" |
| 867 | }, |
| 868 | "constant_important": { |
| 869 | "match": "!important", |
| 870 | "name": "keyword.other.important.scss" |
| 871 | }, |
| 872 | "constant_mathematical_symbols": { |
| 873 | "match": "\\b(\\+|-|\\*|/)\\b", |
| 874 | "name": "support.constant.mathematical-symbols.scss" |
| 875 | }, |
| 876 | "constant_number": { |
| 877 | "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))", |
| 878 | "name": "constant.numeric.scss" |
| 879 | }, |
| 880 | "constant_optional": { |
| 881 | "match": "!optional", |
| 882 | "name": "keyword.other.optional.scss" |
| 883 | }, |
| 884 | "constant_property_value": { |
| 885 | "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", |
| 886 | "name": "support.constant.property-value.scss" |
| 887 | }, |
| 888 | "constant_rgb": { |
| 889 | "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", |
| 890 | "captures": { |
| 891 | "1": { |
| 892 | "name": "constant.numeric.color.rgb-value.scss" |
| 893 | }, |
| 894 | "2": { |
| 895 | "name": "punctuation.separator.delimiter.scss" |
| 896 | }, |
| 897 | "3": { |
| 898 | "name": "constant.numeric.color.rgb-value.scss" |
| 899 | }, |
| 900 | "4": { |
| 901 | "name": "punctuation.separator.delimiter.scss" |
| 902 | }, |
| 903 | "5": { |
| 904 | "name": "constant.numeric.color.rgb-value.scss" |
| 905 | } |
| 906 | } |
| 907 | }, |
| 908 | "constant_rgb_percentage": { |
| 909 | "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*(%)", |
| 910 | "captures": { |
| 911 | "1": { |
| 912 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 913 | }, |
| 914 | "2": { |
| 915 | "name": "keyword.other.unit.scss" |
| 916 | }, |
| 917 | "3": { |
| 918 | "name": "punctuation.separator.delimiter.scss" |
| 919 | }, |
| 920 | "4": { |
| 921 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 922 | }, |
| 923 | "5": { |
| 924 | "name": "keyword.other.unit.scss" |
| 925 | }, |
| 926 | "6": { |
| 927 | "name": "punctuation.separator.delimiter.scss" |
| 928 | }, |
| 929 | "7": { |
| 930 | "name": "constant.numeric.color.rgb-percentage.scss" |
| 931 | }, |
| 932 | "8": { |
| 933 | "name": "keyword.other.unit.scss" |
| 934 | } |
| 935 | } |
| 936 | }, |
| 937 | "constant_sass_functions": { |
| 938 | "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))(\\()", |
| 939 | "beginCaptures": { |
| 940 | "1": { |
| 941 | "name": "support.function.misc.scss" |
| 942 | }, |
| 943 | "2": { |
| 944 | "name": "punctuation.section.function.scss" |
| 945 | } |
| 946 | }, |
| 947 | "end": "(\\))", |
| 948 | "endCaptures": { |
| 949 | "1": { |
| 950 | "name": "punctuation.section.function.scss" |
| 951 | } |
| 952 | }, |
| 953 | "patterns": [ |
| 954 | { |
| 955 | "include": "#parameters" |
| 956 | } |
| 957 | ] |
| 958 | }, |
| 959 | "constant_unit": { |
| 960 | "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|%", |
| 961 | "name": "keyword.other.unit.scss" |
| 962 | }, |
| 963 | "flow_control": { |
| 964 | "patterns": [ |
| 965 | { |
| 966 | "include": "#at_rule_if" |
| 967 | }, |
| 968 | { |
| 969 | "include": "#at_rule_else" |
| 970 | }, |
| 971 | { |
| 972 | "include": "#at_rule_warn" |
| 973 | }, |
| 974 | { |
| 975 | "include": "#at_rule_for" |
| 976 | }, |
| 977 | { |
| 978 | "include": "#at_rule_while" |
| 979 | }, |
| 980 | { |
| 981 | "include": "#at_rule_each" |
| 982 | }, |
| 983 | { |
| 984 | "include": "#at_rule_return" |
| 985 | } |
| 986 | ] |
| 987 | }, |
| 988 | "function_attributes": { |
| 989 | "patterns": [ |
| 990 | { |
| 991 | "match": ":", |
| 992 | "name": "punctuation.separator.key-value.scss" |
| 993 | }, |
| 994 | { |
| 995 | "include": "#general" |
| 996 | }, |
| 997 | { |
| 998 | "include": "#property_values" |
| 999 | }, |
| 1000 | { |
| 1001 | "comment": "We even have error highlighting <3", |
| 1002 | "match": "[={}\\?;@]", |
| 1003 | "name": "invalid.illegal.scss" |
| 1004 | } |
| 1005 | ] |
| 1006 | }, |
| 1007 | "functions": { |
| 1008 | "patterns": [ |
| 1009 | { |
| 1010 | "begin": "([\\w-]{1,})(\\()\\s*", |
| 1011 | "beginCaptures": { |
| 1012 | "1": { |
| 1013 | "name": "support.function.misc.scss" |
| 1014 | }, |
| 1015 | "2": { |
| 1016 | "name": "punctuation.section.function.scss" |
| 1017 | } |
| 1018 | }, |
| 1019 | "end": "(\\))", |
| 1020 | "endCaptures": { |
| 1021 | "1": { |
| 1022 | "name": "punctuation.section.function.scss" |
| 1023 | } |
| 1024 | }, |
| 1025 | "patterns": [ |
| 1026 | { |
| 1027 | "include": "#parameters" |
| 1028 | } |
| 1029 | ] |
| 1030 | }, |
| 1031 | { |
| 1032 | "match": "([\\w-]{1,})", |
| 1033 | "name": "support.function.misc.scss" |
| 1034 | } |
| 1035 | ] |
| 1036 | }, |
| 1037 | "general": { |
| 1038 | "comment": "Stuff that should be everywhere", |
| 1039 | "patterns": [ |
| 1040 | { |
| 1041 | "include": "#variable" |
| 1042 | }, |
| 1043 | { |
| 1044 | "include": "#comment_block" |
| 1045 | }, |
| 1046 | { |
| 1047 | "include": "#comment_line" |
| 1048 | } |
| 1049 | ] |
| 1050 | }, |
| 1051 | "interpolation": { |
| 1052 | "begin": "#{", |
| 1053 | "beginCaptures": { |
| 1054 | "0": { |
| 1055 | "name": "punctuation.definition.interpolation.begin.bracket.curly.scss" |
| 1056 | } |
| 1057 | }, |
| 1058 | "end": "}", |
| 1059 | "endCaptures": { |
| 1060 | "0": { |
| 1061 | "name": "punctuation.definition.interpolation.end.bracket.curly.scss" |
| 1062 | } |
| 1063 | }, |
| 1064 | "name": "variable.interpolation.scss", |
| 1065 | "patterns": [ |
| 1066 | { |
| 1067 | "include": "#property_values" |
| 1068 | }, |
| 1069 | { |
| 1070 | "include": "#variable" |
| 1071 | } |
| 1072 | ] |
| 1073 | }, |
| 1074 | "conditional_operators": { |
| 1075 | "patterns": [ |
| 1076 | { |
| 1077 | "include": "#comparison_operators" |
| 1078 | }, |
| 1079 | { |
| 1080 | "include": "#logical_operators" |
| 1081 | } |
| 1082 | ] |
| 1083 | }, |
| 1084 | "comparison_operators": { |
| 1085 | "match": "==|!=|<=|>=|<|>", |
| 1086 | "name": "keyword.operator.comparison.scss" |
| 1087 | }, |
| 1088 | "logical_operators": { |
| 1089 | "match": "\\b(not\\b|or\\b|and\\b)", |
| 1090 | "name": "keyword.operator.logical.scss" |
| 1091 | }, |
| 1092 | "map": { |
| 1093 | "begin": "\\(", |
| 1094 | "beginCaptures": { |
| 1095 | "0": { |
| 1096 | "name": "punctuation.definition.map.begin.bracket.round.scss" |
| 1097 | } |
| 1098 | }, |
| 1099 | "end": "\\)", |
| 1100 | "endCaptures": { |
| 1101 | "0": { |
| 1102 | "name": "punctuation.definition.map.end.bracket.round.scss" |
| 1103 | } |
| 1104 | }, |
| 1105 | "name": "meta.set.variable.map.scss", |
| 1106 | "patterns": [ |
| 1107 | { |
| 1108 | "include": "#comment_block" |
| 1109 | }, |
| 1110 | { |
| 1111 | "include": "#comment_line" |
| 1112 | }, |
| 1113 | { |
| 1114 | "match": "\\b([\\w-]+)\\s*(:)", |
| 1115 | "captures": { |
| 1116 | "1": { |
| 1117 | "name": "support.type.map.key.scss" |
| 1118 | }, |
| 1119 | "2": { |
| 1120 | "name": "punctuation.separator.key-value.scss" |
| 1121 | } |
| 1122 | } |
| 1123 | }, |
| 1124 | { |
| 1125 | "match": ",", |
| 1126 | "name": "punctuation.separator.delimiter.scss" |
| 1127 | }, |
| 1128 | { |
| 1129 | "include": "#property_values" |
| 1130 | }, |
| 1131 | { |
| 1132 | "include": "#variable" |
| 1133 | }, |
| 1134 | { |
| 1135 | "include": "#map" |
| 1136 | } |
| 1137 | ] |
| 1138 | }, |
| 1139 | "media_attributes": { |
| 1140 | "patterns": [ |
| 1141 | { |
| 1142 | "match": ":", |
| 1143 | "name": "punctuation.separator.key-value.scss" |
| 1144 | }, |
| 1145 | { |
| 1146 | "include": "#general" |
| 1147 | }, |
| 1148 | { |
| 1149 | "include": "#property_name" |
| 1150 | }, |
| 1151 | { |
| 1152 | "include": "#property_values" |
| 1153 | }, |
| 1154 | { |
| 1155 | "comment": "We even have error highlighting <3", |
| 1156 | "match": "[={}\\?@]", |
| 1157 | "name": "invalid.illegal.scss" |
| 1158 | } |
| 1159 | ] |
| 1160 | }, |
| 1161 | "media_features": { |
| 1162 | "patterns": [ |
| 1163 | { |
| 1164 | "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", |
| 1165 | "name": "support.type.property-name.media.css" |
| 1166 | } |
| 1167 | ] |
| 1168 | }, |
| 1169 | "media_types": { |
| 1170 | "patterns": [ |
| 1171 | { |
| 1172 | "match": "\\b(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)\\b", |
| 1173 | "name": "support.constant.media.css" |
| 1174 | } |
| 1175 | ] |
| 1176 | }, |
| 1177 | "operators": { |
| 1178 | "match": "[-+*/](?!\\s*[-+*/])", |
| 1179 | "name": "keyword.operator.css" |
| 1180 | }, |
| 1181 | "parameters": { |
| 1182 | "patterns": [ |
| 1183 | { |
| 1184 | "include": "#variable" |
| 1185 | }, |
| 1186 | { |
| 1187 | "include": "#property_values" |
| 1188 | }, |
| 1189 | { |
| 1190 | "include": "#comment_block" |
| 1191 | }, |
| 1192 | { |
| 1193 | "begin": "\\(", |
| 1194 | "beginCaptures": { |
| 1195 | "0": { |
| 1196 | "name": "punctuation.definition.begin.bracket.round.scss" |
| 1197 | } |
| 1198 | }, |
| 1199 | "end": "\\)", |
| 1200 | "endCaptures": { |
| 1201 | "0": { |
| 1202 | "name": "punctuation.definition.end.bracket.round.scss" |
| 1203 | } |
| 1204 | }, |
| 1205 | "patterns": [ |
| 1206 | { |
| 1207 | "include": "#function_attributes" |
| 1208 | } |
| 1209 | ] |
| 1210 | }, |
| 1211 | { |
| 1212 | "match": "[^'\",) \\t]+", |
| 1213 | "name": "variable.parameter.url.scss" |
| 1214 | }, |
| 1215 | { |
| 1216 | "match": ",", |
| 1217 | "name": "punctuation.separator.delimiter.scss" |
| 1218 | } |
| 1219 | ] |
| 1220 | }, |
| 1221 | "properties": { |
| 1222 | "patterns": [ |
| 1223 | { |
| 1224 | "begin": "(?<![-a-z])(?=[-a-z])", |
| 1225 | "end": "$|(?![-a-z])", |
| 1226 | "name": "meta.property-name.scss", |
| 1227 | "patterns": [ |
| 1228 | { |
| 1229 | "include": "#property_names" |
| 1230 | }, |
| 1231 | { |
| 1232 | "include": "#at_rule_include" |
| 1233 | } |
| 1234 | ] |
| 1235 | }, |
| 1236 | { |
| 1237 | "begin": "(:)\\s*(?!(\\s*{))", |
| 1238 | "beginCaptures": { |
| 1239 | "1": { |
| 1240 | "name": "punctuation.separator.key-value.scss" |
| 1241 | } |
| 1242 | }, |
| 1243 | "comment": "Kuroir: fixed nested elements for sass.", |
| 1244 | "end": "\\s*(;|(?=}|\\)))", |
| 1245 | "endCaptures": { |
| 1246 | "1": { |
| 1247 | "name": "punctuation.terminator.rule.scss" |
| 1248 | } |
| 1249 | }, |
| 1250 | "contentName": "meta.property-value.scss", |
| 1251 | "patterns": [ |
| 1252 | { |
| 1253 | "include": "#general" |
| 1254 | }, |
| 1255 | { |
| 1256 | "include": "#property_values" |
| 1257 | } |
| 1258 | ] |
| 1259 | } |
| 1260 | ] |
| 1261 | }, |
| 1262 | "property_list": { |
| 1263 | "begin": "{", |
| 1264 | "beginCaptures": { |
| 1265 | "0": { |
| 1266 | "name": "punctuation.section.property-list.begin.bracket.curly.scss" |
| 1267 | } |
| 1268 | }, |
| 1269 | "end": "}", |
| 1270 | "endCaptures": { |
| 1271 | "0": { |
| 1272 | "name": "punctuation.section.property-list.end.bracket.curly.scss" |
| 1273 | } |
| 1274 | }, |
| 1275 | "name": "meta.property-list.scss", |
| 1276 | "patterns": [ |
| 1277 | { |
| 1278 | "include": "#flow_control" |
| 1279 | }, |
| 1280 | { |
| 1281 | "include": "#rules" |
| 1282 | }, |
| 1283 | { |
| 1284 | "include": "#properties" |
| 1285 | }, |
| 1286 | { |
| 1287 | "include": "$self" |
| 1288 | } |
| 1289 | ] |
| 1290 | }, |
| 1291 | "property_name": { |
| 1292 | "comment": "Reversal order is important; KEEP IT. Also when adding new properties add them to the error checker below!", |
| 1293 | "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", |
| 1294 | "name": "support.type.property-name.scss" |
| 1295 | }, |
| 1296 | "property_name_error": { |
| 1297 | "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]+", |
| 1298 | "name": "invalid.illegal.scss" |
| 1299 | }, |
| 1300 | "property_names": { |
| 1301 | "patterns": [ |
| 1302 | { |
| 1303 | "include": "#property_name" |
| 1304 | }, |
| 1305 | { |
| 1306 | "include": "#property_name_error" |
| 1307 | } |
| 1308 | ] |
| 1309 | }, |
| 1310 | "property_values": { |
| 1311 | "comment": "Stuff that should only be available on values.", |
| 1312 | "patterns": [ |
| 1313 | { |
| 1314 | "include": "#string_single" |
| 1315 | }, |
| 1316 | { |
| 1317 | "include": "#string_double" |
| 1318 | }, |
| 1319 | { |
| 1320 | "include": "#constant_functions" |
| 1321 | }, |
| 1322 | { |
| 1323 | "include": "#constant_sass_functions" |
| 1324 | }, |
| 1325 | { |
| 1326 | "include": "#constant_hex" |
| 1327 | }, |
| 1328 | { |
| 1329 | "include": "#constant_rgb" |
| 1330 | }, |
| 1331 | { |
| 1332 | "include": "#constant_rgb_percentage" |
| 1333 | }, |
| 1334 | { |
| 1335 | "include": "#constant_important" |
| 1336 | }, |
| 1337 | { |
| 1338 | "include": "#constant_default" |
| 1339 | }, |
| 1340 | { |
| 1341 | "include": "#constant_optional" |
| 1342 | }, |
| 1343 | { |
| 1344 | "include": "#constant_unit" |
| 1345 | }, |
| 1346 | { |
| 1347 | "include": "#constant_property_value" |
| 1348 | }, |
| 1349 | { |
| 1350 | "include": "#constant_number" |
| 1351 | }, |
| 1352 | { |
| 1353 | "include": "#constant_font" |
| 1354 | }, |
| 1355 | { |
| 1356 | "include": "#constant_color" |
| 1357 | }, |
| 1358 | { |
| 1359 | "include": "#constant_deprecated_color" |
| 1360 | }, |
| 1361 | { |
| 1362 | "include": "#property_name" |
| 1363 | }, |
| 1364 | { |
| 1365 | "include": "#constant_mathematical_symbols" |
| 1366 | }, |
| 1367 | { |
| 1368 | "include": "#operators" |
| 1369 | } |
| 1370 | ] |
| 1371 | }, |
| 1372 | "rules": { |
| 1373 | "patterns": [ |
| 1374 | { |
| 1375 | "include": "#general" |
| 1376 | }, |
| 1377 | { |
| 1378 | "include": "#at_rule_extend" |
| 1379 | }, |
| 1380 | { |
| 1381 | "include": "#at_rule_content" |
| 1382 | }, |
| 1383 | { |
| 1384 | "include": "#at_rule_include" |
| 1385 | }, |
| 1386 | { |
| 1387 | "include": "#at_rule_media" |
| 1388 | }, |
| 1389 | { |
| 1390 | "include": "#selectors" |
| 1391 | } |
| 1392 | ] |
| 1393 | }, |
| 1394 | "selector_attribute": { |
| 1395 | "captures": { |
| 1396 | "1": { |
| 1397 | "name": "punctuation.definition.attribute-selector.begin.bracket.square.scss" |
| 1398 | }, |
| 1399 | "2": { |
| 1400 | "name": "entity.other.attribute-name.attribute.scss" |
| 1401 | }, |
| 1402 | "3": { |
| 1403 | "name": "punctuation.separator.operator.scss" |
| 1404 | }, |
| 1405 | "4": { |
| 1406 | "name": "string.unquoted.attribute-value.scss" |
| 1407 | }, |
| 1408 | "5": { |
| 1409 | "name": "string.quoted.double.attribute-value.scss" |
| 1410 | }, |
| 1411 | "6": { |
| 1412 | "name": "punctuation.definition.string.begin.scss" |
| 1413 | }, |
| 1414 | "7": { |
| 1415 | "name": "punctuation.definition.string.end.scss" |
| 1416 | }, |
| 1417 | "8": { |
| 1418 | "name": "punctuation.definition.attribute-selector.end.bracket.square.scss" |
| 1419 | } |
| 1420 | }, |
| 1421 | "match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][-_a-z0-9\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][-_a-z0-9\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(])", |
| 1422 | "name": "meta.attribute-selector.scss" |
| 1423 | }, |
| 1424 | "selector_class": { |
| 1425 | "begin": "(\\.)(?=[\\w-]|#{)", |
| 1426 | "beginCaptures": { |
| 1427 | "1": { |
| 1428 | "name": "punctuation.definition.entity.css" |
| 1429 | } |
| 1430 | }, |
| 1431 | "end": "(?![\\w-]|(#{))", |
| 1432 | "name": "entity.other.attribute-name.class.css", |
| 1433 | "patterns": [ |
| 1434 | { |
| 1435 | "include": "#interpolation" |
| 1436 | } |
| 1437 | ] |
| 1438 | }, |
| 1439 | "selector_entities": { |
| 1440 | "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", |
| 1441 | "name": "entity.name.tag.scss" |
| 1442 | }, |
| 1443 | "selector_custom": { |
| 1444 | "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]*\\))?)", |
| 1445 | "name": "entity.name.tag.custom.scss" |
| 1446 | }, |
| 1447 | "selector_id": { |
| 1448 | "captures": { |
| 1449 | "1": { |
| 1450 | "name": "punctuation.definition.entity.css" |
| 1451 | } |
| 1452 | }, |
| 1453 | "match": "(#)[a-zA-Z][a-zA-Z0-9_-]*", |
| 1454 | "name": "entity.other.attribute-name.id.css" |
| 1455 | }, |
| 1456 | "selector_placeholder": { |
| 1457 | "captures": { |
| 1458 | "1": { |
| 1459 | "name": "punctuation.definition.entity.scss" |
| 1460 | } |
| 1461 | }, |
| 1462 | "match": "(%)[a-zA-Z0-9_-]+", |
| 1463 | "name": "entity.other.attribute-name.placeholder.scss" |
| 1464 | }, |
| 1465 | "parent_selector_suffix": { |
| 1466 | "match": "(?<=&)[a-zA-Z0-9_-]+", |
| 1467 | "name": "entity.other.attribute-name.parent-selector-suffix.scss" |
| 1468 | }, |
| 1469 | "selector_pseudo_class": { |
| 1470 | "patterns": [ |
| 1471 | { |
| 1472 | "begin": "((:)\\bnth-(?:child|last-child|of-type|last-of-type))(\\()", |
| 1473 | "beginCaptures": { |
| 1474 | "1": { |
| 1475 | "name": "entity.other.attribute-name.pseudo-class.css" |
| 1476 | }, |
| 1477 | "2": { |
| 1478 | "name": "punctuation.definition.entity.css" |
| 1479 | }, |
| 1480 | "3": { |
| 1481 | "name": "punctuation.definition.pseudo-class.begin.bracket.round.css" |
| 1482 | } |
| 1483 | }, |
| 1484 | "end": "\\)", |
| 1485 | "endCaptures": { |
| 1486 | "0": { |
| 1487 | "name": "punctuation.definition.pseudo-class.end.bracket.round.css" |
| 1488 | } |
| 1489 | }, |
| 1490 | "patterns": [ |
| 1491 | { |
| 1492 | "match": "\\d+", |
| 1493 | "name": "constant.numeric.scss" |
| 1494 | }, |
| 1495 | { |
| 1496 | "match": "(?<=\\d)n\\b|\\b(n|even|odd)\\b", |
| 1497 | "name": "constant.other.scss" |
| 1498 | }, |
| 1499 | { |
| 1500 | "match": "\\w+", |
| 1501 | "name": "invalid.illegal.scss" |
| 1502 | } |
| 1503 | ] |
| 1504 | }, |
| 1505 | { |
| 1506 | "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", |
| 1507 | "captures": { |
| 1508 | "0": { |
| 1509 | "name": "entity.other.attribute-name.pseudo-class.css" |
| 1510 | }, |
| 1511 | "1": { |
| 1512 | "name": "punctuation.definition.entity.css" |
| 1513 | } |
| 1514 | } |
| 1515 | } |
| 1516 | ] |
| 1517 | }, |
| 1518 | "selector_pseudo_element": { |
| 1519 | "captures": { |
| 1520 | "1": { |
| 1521 | "name": "punctuation.definition.entity.css" |
| 1522 | } |
| 1523 | }, |
| 1524 | "match": "(:+)((-(moz|webkit|ms)-)?(after|before|first-letter|first-line|selection))\\b", |
| 1525 | "name": "entity.other.attribute-name.pseudo-element.css" |
| 1526 | }, |
| 1527 | "selectors": { |
| 1528 | "comment": "Stuff for Selectors.", |
| 1529 | "patterns": [ |
| 1530 | { |
| 1531 | "include": "#selector_entities" |
| 1532 | }, |
| 1533 | { |
| 1534 | "include": "#selector_custom" |
| 1535 | }, |
| 1536 | { |
| 1537 | "include": "#selector_class" |
| 1538 | }, |
| 1539 | { |
| 1540 | "include": "#selector_id" |
| 1541 | }, |
| 1542 | { |
| 1543 | "include": "#selector_pseudo_class" |
| 1544 | }, |
| 1545 | { |
| 1546 | "include": "#tag_wildcard" |
| 1547 | }, |
| 1548 | { |
| 1549 | "include": "#tag_parent_reference" |
| 1550 | }, |
| 1551 | { |
| 1552 | "include": "#selector_pseudo_element" |
| 1553 | }, |
| 1554 | { |
| 1555 | "include": "#selector_attribute" |
| 1556 | }, |
| 1557 | { |
| 1558 | "include": "#selector_placeholder" |
| 1559 | }, |
| 1560 | { |
| 1561 | "include": "#parent_selector_suffix" |
| 1562 | } |
| 1563 | ] |
| 1564 | }, |
| 1565 | "string_double": { |
| 1566 | "begin": "\"", |
| 1567 | "beginCaptures": { |
| 1568 | "0": { |
| 1569 | "name": "punctuation.definition.string.begin.scss" |
| 1570 | } |
| 1571 | }, |
| 1572 | "end": "\"", |
| 1573 | "endCaptures": { |
| 1574 | "0": { |
| 1575 | "name": "punctuation.definition.string.end.scss" |
| 1576 | } |
| 1577 | }, |
| 1578 | "name": "string.quoted.double.scss", |
| 1579 | "patterns": [ |
| 1580 | { |
| 1581 | "match": "\\\\(\\h{1,6}|.)", |
| 1582 | "name": "constant.character.escape.scss" |
| 1583 | }, |
| 1584 | { |
| 1585 | "include": "#interpolation" |
| 1586 | } |
| 1587 | ] |
| 1588 | }, |
| 1589 | "string_single": { |
| 1590 | "begin": "'", |
| 1591 | "beginCaptures": { |
| 1592 | "0": { |
| 1593 | "name": "punctuation.definition.string.begin.scss" |
| 1594 | } |
| 1595 | }, |
| 1596 | "end": "'", |
| 1597 | "endCaptures": { |
| 1598 | "0": { |
| 1599 | "name": "punctuation.definition.string.end.scss" |
| 1600 | } |
| 1601 | }, |
| 1602 | "name": "string.quoted.single.scss", |
| 1603 | "patterns": [ |
| 1604 | { |
| 1605 | "match": "\\\\(\\h{1,6}|.)", |
| 1606 | "name": "constant.character.escape.scss" |
| 1607 | }, |
| 1608 | { |
| 1609 | "include": "#interpolation" |
| 1610 | } |
| 1611 | ] |
| 1612 | }, |
| 1613 | "tag_parent_reference": { |
| 1614 | "match": "&", |
| 1615 | "name": "entity.name.tag.reference.scss" |
| 1616 | }, |
| 1617 | "tag_wildcard": { |
| 1618 | "match": "\\*", |
| 1619 | "name": "entity.name.tag.wildcard.scss" |
| 1620 | }, |
| 1621 | "variable": { |
| 1622 | "patterns": [ |
| 1623 | { |
| 1624 | "include": "#variables" |
| 1625 | }, |
| 1626 | { |
| 1627 | "include": "#interpolation" |
| 1628 | } |
| 1629 | ] |
| 1630 | }, |
| 1631 | "variable_setting": { |
| 1632 | "begin": "\\s*(\\$[A-Za-z0-9_-]+\\b)\\s*(:)\\s*", |
| 1633 | "captures": { |
| 1634 | "1": { |
| 1635 | "name": "variable.scss" |
| 1636 | }, |
| 1637 | "2": { |
| 1638 | "name": "punctuation.separator.key-value.scss" |
| 1639 | } |
| 1640 | }, |
| 1641 | "end": "\\s*(?=;)", |
| 1642 | "name": "meta.set.variable.scss", |
| 1643 | "patterns": [ |
| 1644 | { |
| 1645 | "include": "#comment_block" |
| 1646 | }, |
| 1647 | { |
| 1648 | "include": "#comment_line" |
| 1649 | }, |
| 1650 | { |
| 1651 | "include": "#map" |
| 1652 | }, |
| 1653 | { |
| 1654 | "include": "#property_values" |
| 1655 | }, |
| 1656 | { |
| 1657 | "include": "#variable" |
| 1658 | } |
| 1659 | ] |
| 1660 | }, |
| 1661 | "variables": { |
| 1662 | "match": "\\$[A-Za-z0-9_-]+\\b", |
| 1663 | "name": "variable.scss" |
| 1664 | } |
| 1665 | }, |
| 1666 | "version": "https://github.com/atom/language-sass/commit/b0417d1412a9169562f637133099fe2bb841a735" |
| 1667 | } |