diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 20:22:09 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 20:22:09 +0100 |
| commit | 5a8dbc6347b3541e84fe669b22c17ad3b715e258 (patch) | |
| tree | b148c450939688caaaeb4adac6f2faa1eaffe649 /queries/css.scm | |
| download | qwe-editor-5a8dbc6347b3541e84fe669b22c17ad3b715e258.tar.gz | |
Engage!
Diffstat (limited to 'queries/css.scm')
| -rw-r--r-- | queries/css.scm | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/queries/css.scm b/queries/css.scm new file mode 100644 index 0000000..96ab1c3 --- /dev/null +++ b/queries/css.scm | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | (comment) @comment | ||
| 2 | |||
| 3 | (tag_name) @tag | ||
| 4 | (nesting_selector) @tag | ||
| 5 | (universal_selector) @tag | ||
| 6 | |||
| 7 | "~" @operator | ||
| 8 | ">" @operator | ||
| 9 | "+" @operator | ||
| 10 | "-" @operator | ||
| 11 | "*" @operator | ||
| 12 | "/" @operator | ||
| 13 | "=" @operator | ||
| 14 | "^=" @operator | ||
| 15 | "|=" @operator | ||
| 16 | "~=" @operator | ||
| 17 | "$=" @operator | ||
| 18 | "*=" @operator | ||
| 19 | |||
| 20 | "and" @operator | ||
| 21 | "or" @operator | ||
| 22 | "not" @operator | ||
| 23 | "only" @operator | ||
| 24 | |||
| 25 | (attribute_selector (plain_value) @string) | ||
| 26 | |||
| 27 | ((property_name) @variable | ||
| 28 | (#match? @variable "^--")) | ||
| 29 | ((plain_value) @variable | ||
| 30 | (#match? @variable "^--")) | ||
| 31 | |||
| 32 | (class_name) @property | ||
| 33 | (id_name) @property | ||
| 34 | (namespace_name) @property | ||
| 35 | (property_name) @property | ||
| 36 | (feature_name) @property | ||
| 37 | |||
| 38 | (pseudo_element_selector (tag_name) @attribute) | ||
| 39 | (pseudo_class_selector (class_name) @attribute) | ||
| 40 | (attribute_name) @attribute | ||
| 41 | |||
| 42 | (function_name) @function | ||
| 43 | |||
| 44 | "@media" @keyword | ||
| 45 | "@import" @keyword | ||
| 46 | "@charset" @keyword | ||
| 47 | "@namespace" @keyword | ||
| 48 | "@supports" @keyword | ||
| 49 | "@keyframes" @keyword | ||
| 50 | (at_keyword) @keyword | ||
| 51 | (to) @keyword | ||
| 52 | (from) @keyword | ||
| 53 | (important) @keyword | ||
| 54 | |||
| 55 | (string_value) @string | ||
| 56 | (color_value) @string.special | ||
| 57 | |||
| 58 | (integer_value) @number | ||
| 59 | (float_value) @number | ||
| 60 | (unit) @type | ||
| 61 | |||
| 62 | [ | ||
| 63 | "#" | ||
| 64 | "," | ||
| 65 | "." | ||
| 66 | ":" | ||
| 67 | "::" | ||
| 68 | ";" | ||
| 69 | ] @punctuation.delimiter | ||
| 70 | |||
| 71 | [ | ||
| 72 | "{" | ||
| 73 | ")" | ||
| 74 | "(" | ||
| 75 | "}" | ||
| 76 | ] @punctuation.bracket \ No newline at end of file | ||
