mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
only match unquoted arguments
This commit is contained in:
parent
cf718048ca
commit
a5a6590f15
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue