From e8f4ac28e928108267a203d00ef07a2dc384311e Mon Sep 17 00:00:00 2001 From: Khang Nguyen Duy Date: Thu, 7 Nov 2024 22:27:46 +0700 Subject: [PATCH] Fix Zig neovim-specific queries Co-authored-by: Michael Davis --- runtime/queries/zig/highlights.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/runtime/queries/zig/highlights.scm b/runtime/queries/zig/highlights.scm index a0d780672..56c338252 100644 --- a/runtime/queries/zig/highlights.scm +++ b/runtime/queries/zig/highlights.scm @@ -1,7 +1,7 @@ ; Comments ((comment) @comment.block.documentation - (#lua-match? @comment.block.documentation "^//!")) + (#match? @comment.block.documentation "^//!")) (comment) @comment.line @@ -31,11 +31,10 @@ (character) @constant.character -([ +[ (string) (multiline_string) ] @string - (#set! "priority" 95)) (integer) @constant.numeric.integer @@ -246,7 +245,7 @@ ; Constants ((identifier) @constant - (#lua-match? @constant "^[A-Z][A-Z_0-9]+$")) + (#match? @constant "^[A-Z][A-Z_0-9]+$")) [ "null"