From a5a6590f157608f2c90c3bb674c2fe019931a020 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Mon, 27 Feb 2023 15:31:47 +0000 Subject: [PATCH] only match unquoted arguments --- queries/cmake/highlights.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index b96323420..576e19cd8 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -91,15 +91,15 @@ ) (normal_command - (identifier) @_function - . (argument) @variable - (#match? @_function "\\c^set$") + (identifier) + (argument (unquoted_argument)) @constant + (#match? @constant "^[A-Z][A-Z_]+$") ) (normal_command - (identifier) - (argument) @constant - (#match? @constant "^[A-Z][A-Z_]+$") + (identifier) @_function + . (argument) @variable + (#match? @_function "\\c^set$") ) (escape_sequence) @string.escape