only match unquoted arguments

This commit is contained in:
Uy Ha 2023-02-27 15:31:47 +00:00 committed by Stephan Seitz
parent cf718048ca
commit a5a6590f15

View file

@ -91,15 +91,15 @@
) )
(normal_command (normal_command
(identifier) @_function (identifier)
. (argument) @variable (argument (unquoted_argument)) @constant
(#match? @_function "\\c^set$") (#match? @constant "^[A-Z][A-Z_]+$")
) )
(normal_command (normal_command
(identifier) (identifier) @_function
(argument) @constant . (argument) @variable
(#match? @constant "^[A-Z][A-Z_]+$") (#match? @_function "\\c^set$")
) )
(escape_sequence) @string.escape (escape_sequence) @string.escape