fix zig highlight query use of #lua-match (#12708)
This commit is contained in:
parent
98ddbf0086
commit
8d6efaf350
1 changed files with 12 additions and 1 deletions
|
@ -203,6 +203,13 @@
|
|||
(builtin_identifier) @keyword.control.import
|
||||
(#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
|
||||
|
||||
(call_expression
|
||||
|
@ -223,6 +230,10 @@
|
|||
.
|
||||
(identifier) @variable.other.member)
|
||||
|
||||
(field_expression
|
||||
(_)
|
||||
member: (identifier) @type (#match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
||||
|
||||
(field_expression
|
||||
(_)
|
||||
member: (identifier) @variable.other.member)
|
||||
|
@ -266,7 +277,7 @@
|
|||
type: (identifier) @type)
|
||||
|
||||
((identifier) @type
|
||||
(#lua-match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
||||
(#match? @type "^[A-Z_][a-zA-Z0-9_]*"))
|
||||
|
||||
(variable_declaration
|
||||
(identifier) @type
|
||||
|
|
Loading…
Add table
Reference in a new issue