mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
queries: Update cue
This commit is contained in:
parent
29b4a2f042
commit
1231429028
@ -1,6 +1,6 @@
|
|||||||
(package_clause "package" @keyword.control.import)
|
(package_clause "package" @keyword.control.import)
|
||||||
|
|
||||||
(package_identifier) @variable
|
(package_identifier) @namespace
|
||||||
|
|
||||||
(import_declaration "import" @keyword.control.import)
|
(import_declaration "import" @keyword.control.import)
|
||||||
|
|
||||||
@ -25,7 +25,7 @@
|
|||||||
"/"
|
"/"
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
(unary_expression "*" @operator.default)
|
(unary_expression "*" @operator)
|
||||||
|
|
||||||
(unary_expression "=~" @operator.regexp)
|
(unary_expression "=~" @operator.regexp)
|
||||||
|
|
||||||
@ -95,16 +95,24 @@
|
|||||||
|
|
||||||
(interpolation "\\(" @punctuation.bracket (_) ")" @punctuation.bracket) @variable.other.member
|
(interpolation "\\(" @punctuation.bracket (_) ")" @punctuation.bracket) @variable.other.member
|
||||||
|
|
||||||
(field (label (identifier) @variable.other.member))
|
(identifier) @variable
|
||||||
|
|
||||||
|
; Types
|
||||||
|
(primitive_type) @type.builtin
|
||||||
|
|
||||||
(
|
(
|
||||||
(identifier) @keyword.storage.type
|
(identifier) @keyword.storage.type
|
||||||
(#match? @keyword.storage.type "^#")
|
(#match? @keyword.storage.type "^#")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
[
|
||||||
|
(slice_type)
|
||||||
|
(pointer_type)
|
||||||
|
] @type ; In attributes
|
||||||
|
|
||||||
|
|
||||||
|
(field (label (identifier) @variable.other.member))
|
||||||
|
|
||||||
(field (label alias: (identifier) @label))
|
(field (label alias: (identifier) @label))
|
||||||
|
|
||||||
(let_clause left: (identifier) @label)
|
(attribute (identifier) @attribute)
|
||||||
|
|
||||||
|
|
||||||
(attribute (identifier) @tag)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user