diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/css/highlights.scm | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/css/highlights.scm')
| -rw-r--r-- | queries/css/highlights.scm | 125 |
1 files changed, 66 insertions, 59 deletions
diff --git a/queries/css/highlights.scm b/queries/css/highlights.scm index 8beba125f..506f78251 100644 --- a/queries/css/highlights.scm +++ b/queries/css/highlights.scm @@ -1,92 +1,99 @@ [ - "@media" - "@charset" - "@namespace" - "@supports" - "@keyframes" - (at_keyword) - (to) - (from) - ] @keyword + "@media" + "@charset" + "@namespace" + "@supports" + "@keyframes" + (at_keyword) + (to) + (from) +] @keyword "@import" @keyword.import (comment) @comment @spell [ - (tag_name) - (nesting_selector) - (universal_selector) - ] @type + (tag_name) + (nesting_selector) + (universal_selector) +] @type (function_name) @function [ - "~" - ">" - "+" - "-" - "*" - "/" - "=" - "^=" - "|=" - "~=" - "$=" - "*=" - ] @operator + "~" + ">" + "+" + "-" + "*" + "/" + "=" + "^=" + "|=" + "~=" + "$=" + "*=" +] @operator [ - "and" - "or" - "not" - "only" - ] @keyword.operator + "and" + "or" + "not" + "only" +] @keyword.operator (important) @type.qualifier -(attribute_selector (plain_value) @string) -(pseudo_element_selector "::" (tag_name) @property) -(pseudo_class_selector (class_name) @property) +(attribute_selector + (plain_value) @string) + +(pseudo_element_selector + "::" + (tag_name) @property) + +(pseudo_class_selector + (class_name) @property) [ - (class_name) - (id_name) - (property_name) - (feature_name) - (attribute_name) - ] @property + (class_name) + (id_name) + (property_name) + (feature_name) + (attribute_name) +] @property (namespace_name) @module ((property_name) @type.definition (#lua-match? @type.definition "^[-][-]")) + ((plain_value) @type (#lua-match? @type "^[-][-]")) [ - (string_value) - (color_value) - (unit) - ] @string + (string_value) + (color_value) + (unit) +] @string [ - (integer_value) - (float_value) - ] @number + (integer_value) + (float_value) +] @number [ - "#" - "," - "." - ":" - "::" - ";" - ] @punctuation.delimiter + "#" + "," + "." + ":" + "::" + ";" +] @punctuation.delimiter [ - "{" - ")" - "(" - "}" - ] @punctuation.bracket + "{" + ")" + "(" + "}" +] @punctuation.bracket |
