From 49452ab703304a2c8e5b1e5ce369ac56fb9639df Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Mon, 22 Jul 2024 20:19:23 -0700 Subject: [PATCH] fix(zig): add some missing highlights --- queries/zig/highlights.scm | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/queries/zig/highlights.scm b/queries/zig/highlights.scm index b4d578a98..d0f6e5b79 100644 --- a/queries/zig/highlights.scm +++ b/queries/zig/highlights.scm @@ -52,13 +52,13 @@ exception: "!" @keyword.exception (PtrTypeStart "c" @variable.builtin) -((ContainerDeclType - [ - (ErrorUnionExpr) - "enum" - ]) +(ContainerDecl + (ContainerDeclType + "enum") (ContainerField - (IDENTIFIER) @constant)) + (ErrorUnionExpr + (SuffixExpr + (IDENTIFIER) @constant)))) field_constant: (IDENTIFIER) @constant @@ -190,6 +190,7 @@ field_constant: (IDENTIFIER) @constant (AssignOp) (MultiplyOp) (PrefixOp) + "=" "*" "**" "->" @@ -229,6 +230,9 @@ field_constant: (IDENTIFIER) @constant (PtrIndexPayload "|" @punctuation.bracket) +(PtrListPayload + "|" @punctuation.bracket) + (ParamType (ErrorUnionExpr (SuffixExpr