| 1 | [(comment) (single_line_comment)] @comment |
| 2 | |
| 3 | [ |
| 4 | "~" |
| 5 | ">" |
| 6 | "+" |
| 7 | "-" |
| 8 | "*" |
| 9 | "/" |
| 10 | "=" |
| 11 | "^=" |
| 12 | "|=" |
| 13 | "~=" |
| 14 | "$=" |
| 15 | "*=" |
| 16 | ] @operator |
| 17 | |
| 18 | [ |
| 19 | "in" |
| 20 | "and" |
| 21 | "or" |
| 22 | "not" |
| 23 | "only" |
| 24 | ] @operator.control |
| 25 | |
| 26 | [ |
| 27 | "@apply" |
| 28 | "@at-root" |
| 29 | "@charset" |
| 30 | "@debug" |
| 31 | "@error" |
| 32 | "@extend" |
| 33 | "@keyframes" |
| 34 | "@media" |
| 35 | "@mixin" |
| 36 | "@supports" |
| 37 | "@warn" |
| 38 | ] @constant.builtin |
| 39 | |
| 40 | [ |
| 41 | "@import" |
| 42 | "@include" |
| 43 | "@forward" |
| 44 | "@use" |
| 45 | ] @keyword.control.import |
| 46 | |
| 47 | [ |
| 48 | "@if" |
| 49 | "@else" |
| 50 | ] @keyword.control.conditional |
| 51 | |
| 52 | [ |
| 53 | "@each" |
| 54 | "@for" |
| 55 | "@while" |
| 56 | ] @keyword.control.repeat |
| 57 | |
| 58 | "@return" @keyword.control.return |
| 59 | |
| 60 | "@function" @function.method |
| 61 | "@namespace" @namespace |
| 62 | |
| 63 | (property_name) @variable.other.member |
| 64 | |
| 65 | ((property_name) @variable |
| 66 | (#match? @variable "^--")) |
| 67 | ((plain_value) @variable |
| 68 | (#match? @variable "^--")) |
| 69 | |
| 70 | (tag_name) @tag |
| 71 | (universal_selector) @tag |
| 72 | (attribute_selector (plain_value) @string) |
| 73 | (nesting_selector) @variable.other.member |
| 74 | (pseudo_element_selector) @attribute |
| 75 | (pseudo_class_selector) @attribute |
| 76 | |
| 77 | (identifier) @variable |
| 78 | (class_name) @label |
| 79 | (id_name) @label |
| 80 | (namespace_name) @namespace |
| 81 | |
| 82 | (feature_name) @variable.other.member |
| 83 | (variable) @variable |
| 84 | (variable_name) @variable.other.member |
| 85 | (variable_value) @variable.other.member |
| 86 | (argument_name) @variable.parameter |
| 87 | (selectors) @variable.other.member |
| 88 | |
| 89 | (attribute_name) @attribute |
| 90 | |
| 91 | (function_name) @function |
| 92 | |
| 93 | (to) @keyword |
| 94 | (from) @keyword |
| 95 | (important) @keyword |
| 96 | |
| 97 | (string_value) @string |
| 98 | (color_value) @string.special |
| 99 | |
| 100 | (integer_value) @constant.numeric.integer |
| 101 | (float_value) @constant.numeric.float |
| 102 | (unit) @type |
| 103 | |
| 104 | "#" @punctuation.delimiter |
| 105 | "," @punctuation.delimiter |