mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
add OUTPUT_VARIABLE query for list TRANSFORM
This commit is contained in:
parent
322d723c89
commit
9508e2188f
1 changed files with 9 additions and 0 deletions
|
|
@ -180,6 +180,15 @@
|
|||
(#any-of? @_action "APPEND" "PREPEND" "TOUPPER" "TOLOWER" "STRIP" "GENEX_STRIP" "REPLACE")
|
||||
(#any-of? @_selector "AT" "FOR" "REGEX")
|
||||
)
|
||||
(normal_command
|
||||
(identifier) @_function
|
||||
(#match? @_function "\\c^(list)$")
|
||||
. (argument) @_transform @constant
|
||||
(argument) @constant .
|
||||
(argument) @variable
|
||||
(#match? @_transform "TRANSFORM")
|
||||
(#match? @constant "OUTPUT_VARIABLE")
|
||||
)
|
||||
|
||||
(normal_command
|
||||
(identifier) @_function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue