mirror of https://github.com/helix-editor/helix
fix zig highlight query use of #lua-match (#12708)
parent
98ddbf0086
commit
8d6efaf350
|
@ -203,6 +203,13 @@
|
||||||
(builtin_identifier) @keyword.control.import
|
(builtin_identifier) @keyword.control.import
|
||||||
(#any-of? @keyword.control.import "@import" "@cImport")))
|
(#any-of? @keyword.control.import "@import" "@cImport")))
|
||||||
|
|
||||||
|
(variable_declaration
|
||||||
|
(identifier) @variable ; TODO: module
|
||||||
|
(field_expression
|
||||||
|
object: (builtin_function
|
||||||
|
(builtin_identifier) @keyword.control.import
|
||||||
|
(#any-of? @keyword.control.import "@import" "@cImport"))))
|
||||||
|
|
||||||
; Functions
|
; Functions
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
|
@ -223,6 +230,10 @@
|
||||||
.
|
.
|
||||||
(identifier) @variable.other.member)
|
(identifier) @variable.other.member)
|
||||||
|
|
||||||
|
(field_expression
|
||||||
|
(_)
|
||||||
|
member: (identifier) @type (#match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
||||||
|
|
||||||
(field_expression
|
(field_expression
|
||||||
(_)
|
(_)
|
||||||
member: (identifier) @variable.other.member)
|
member: (identifier) @variable.other.member)
|
||||||
|
@ -266,7 +277,7 @@
|
||||||
type: (identifier) @type)
|
type: (identifier) @type)
|
||||||
|
|
||||||
((identifier) @type
|
((identifier) @type
|
||||||
(#lua-match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
(#match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
||||||
|
|
||||||
(variable_declaration
|
(variable_declaration
|
||||||
(identifier) @type
|
(identifier) @type
|
||||||
|
|
Loading…
Reference in New Issue