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