From e2a9fc8e5c15e1be1b9ce1210d2b2667707d1ae5 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Tue, 28 Feb 2023 02:11:09 +0100 Subject: [PATCH] use lua-match where possible --- queries/cmake/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index 8a471fd1c..055319978 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -1,7 +1,7 @@ (normal_command (identifier) (argument (unquoted_argument)) @constant - (#match? @constant "^[A-Z][A-Z_]+$") + (#lua-match? @constant "^%u[%u_]+$") ) [ @@ -186,4 +186,4 @@ (escape_sequence) @string.escape ((source_file . (line_comment) @preproc) - (#match? @preproc "^#!/")) + (#lua-match? @preproc "^#!/"))