chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -2,4 +2,4 @@
(rule_set)
(list_value)
(distance_calc)
] @fold
] @fold

View file

@ -1,15 +1,19 @@
(comment) @comment @spell
"@media" @keyword
"@import" @keyword.import
"@theme" @keyword.import
(string_value) @string
[
(integer_value)
(float_value)
"0"
] @number
] @number
(boolean_value) @boolean
[
@ -22,59 +26,114 @@
(orientation_value)
(cursor_value)
"inherit"
] @keyword
] @keyword
(url_image
"url" @function.builtin)
(url_image "url" @function.builtin)
(gradient_image "linear-gradient" @function.builtin)
(distance_calc "calc" @function.builtin)
(rgb_color ["rgb" "rgba"] @function.builtin)
(hsl_color ["hsl" "hsla"] @function.builtin)
(hwb_color ["hwb" "hwba"] @function.builtin)
(cmyk_color "cmyk" @function.builtin)
(gradient_image
"linear-gradient" @function.builtin)
(distance_calc
"calc" @function.builtin)
(rgb_color
[
"rgb"
"rgba"
] @function.builtin)
(hsl_color
[
"hsl"
"hsla"
] @function.builtin)
(hwb_color
[
"hwb"
"hwba"
] @function.builtin)
(cmyk_color
"cmyk" @function.builtin)
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
(distance_op) @operator
[
";"
","
":"
"."
] @punctuation.delimiter
";"
","
":"
"."
] @punctuation.delimiter
[
(angle_unit)
(integer_distance_unit)
(float_distance_unit)
] @type
(angle_unit)
(integer_distance_unit)
(float_distance_unit)
] @type
(percentage) @number
(percentage "%" @type)
(percentage
"%" @type)
[
(global_selector)
(id_selector)
] @module
] @module
(id_selector_view [ "normal" "selected" "alternate" ] @attribute)
(id_selector_state [ "normal" "urgent" "active" ] @type.qualifier)
(id_selector_view
[
"normal"
"selected"
"alternate"
] @attribute)
(id_selector_state
[
"normal"
"urgent"
"active"
] @type.qualifier)
(hex_color) @number
(hex_color "#" @punctuation.special)
(named_color (identifier) @string.special)
(named_color "/" @operator)
(reference_value "@" @punctuation.special (identifier) @variable)
(reference_value "var" @function.builtin (identifier) @variable)
(list_value (identifier) @variable)
(environ_value "$" @punctuation.special (identifier) @variable)
(environ_value "env" @function.builtin (identifier) @variable)
(hex_color
"#" @punctuation.special)
(named_color
(identifier) @string.special)
(named_color
"/" @operator)
(reference_value
"@" @punctuation.special
(identifier) @variable)
(reference_value
"var" @function.builtin
(identifier) @variable)
(list_value
(identifier) @variable)
(environ_value
"$" @punctuation.special
(identifier) @variable)
(environ_value
"env" @function.builtin
(identifier) @variable)
(property_name) @variable

View file

@ -1,5 +1,6 @@
(rule_set) @indent.begin
(block "}" @indent.branch)
(block
"}" @indent.branch)
(comment) @indent.ignore

View file

@ -1,5 +1,10 @@
(rule_set (selectors (id_selector))) @local.scope
(rule_set
(selectors
(id_selector))) @local.scope
(block (declaration (property_name) @local.definition.var))
(block
(declaration
(property_name) @local.definition.var))
(reference_value name:(identifier) @local.reference)
(reference_value
name: (identifier) @local.reference)