fix zig highlight query use of #lua-match ()

This commit is contained in:
Gabriel Dinner-David 2025-01-27 21:19:43 -08:00 committed by GitHub
parent 98ddbf0086
commit 8d6efaf350
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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