mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
queries: update zig
This commit is contained in:
parent
b13999952f
commit
8caba39b05
@ -7,6 +7,18 @@
|
||||
(line_comment)
|
||||
] @comment.line
|
||||
|
||||
[
|
||||
variable: (IDENTIFIER)
|
||||
variable_type_function: (IDENTIFIER)
|
||||
] @variable
|
||||
|
||||
parameter: (IDENTIFIER) @variable.parameter
|
||||
|
||||
[
|
||||
field_member: (IDENTIFIER)
|
||||
field_access: (IDENTIFIER)
|
||||
] @variable.other.member
|
||||
|
||||
;; assume TitleCase is a type
|
||||
(
|
||||
[
|
||||
@ -36,6 +48,13 @@
|
||||
(#match? @constant "^[A-Z][A-Z_0-9]+$")
|
||||
)
|
||||
|
||||
[
|
||||
function_call: (IDENTIFIER)
|
||||
function: (IDENTIFIER)
|
||||
] @function
|
||||
|
||||
exception: "!" @keyword.control.exception
|
||||
|
||||
;; _
|
||||
(
|
||||
(IDENTIFIER) @variable.builtin
|
||||
@ -45,25 +64,6 @@
|
||||
;; C Pointers [*c]T
|
||||
(PtrTypeStart "c" @variable.builtin)
|
||||
|
||||
[
|
||||
variable: (IDENTIFIER)
|
||||
variable_type_function: (IDENTIFIER)
|
||||
] @variable
|
||||
|
||||
parameter: (IDENTIFIER) @variable.parameter
|
||||
|
||||
[
|
||||
field_member: (IDENTIFIER)
|
||||
field_access: (IDENTIFIER)
|
||||
] @variable.other.member
|
||||
|
||||
[
|
||||
function_call: (IDENTIFIER)
|
||||
function: (IDENTIFIER)
|
||||
] @function
|
||||
|
||||
exception: "!" @keyword.control.exception
|
||||
|
||||
field_constant: (IDENTIFIER) @constant
|
||||
|
||||
(BUILTINIDENTIFIER) @function.builtin
|
||||
|
Loading…
Reference in New Issue
Block a user