Unnamed repository; edit this file 'description' to name the repository.
fix zig highlight query use of #lua-match (#12708)
| -rw-r--r-- | runtime/queries/zig/highlights.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/queries/zig/highlights.scm b/runtime/queries/zig/highlights.scm index 56c33825..0b683158 100644 --- a/runtime/queries/zig/highlights.scm +++ b/runtime/queries/zig/highlights.scm @@ -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 @@ -225,6 +232,10 @@ (field_expression (_) + member: (identifier) @type (#match? @type "^[A-Z_][a-zA-Z0-9_]*")) + +(field_expression + (_) member: (identifier) @variable.other.member) (container_field @@ -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 |