From 8caba39b05d7bb08242a1afe8a585c367ed4ed4d Mon Sep 17 00:00:00 2001 From: gabydd Date: Mon, 15 Jul 2024 23:30:53 -0400 Subject: [PATCH] queries: update zig --- runtime/queries/zig/highlights.scm | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/runtime/queries/zig/highlights.scm b/runtime/queries/zig/highlights.scm index d6b1f95a2..56480e040 100644 --- a/runtime/queries/zig/highlights.scm +++ b/runtime/queries/zig/highlights.scm @@ -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