mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
add highlight for list command
This commit is contained in:
parent
15ee2cb240
commit
380287745e
1 changed files with 39 additions and 0 deletions
|
|
@ -120,6 +120,45 @@
|
||||||
(#any-of? @storageclass "CACHE" "PARENT_SCOPE")
|
(#any-of? @storageclass "CACHE" "PARENT_SCOPE")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(normal_command
|
||||||
|
(identifier) @function.builtin
|
||||||
|
(#match? @function.builtin "\\c^(list)$")
|
||||||
|
. (argument) @constant
|
||||||
|
(#any-of? @constant "LENGTH" "GET" "JOIN" "SUBLIST" "FIND")
|
||||||
|
. (argument) @variable
|
||||||
|
(argument) @variable .
|
||||||
|
)
|
||||||
|
(normal_command
|
||||||
|
(identifier) @function.builtin
|
||||||
|
(#match? @function.builtin "\\c^(list)$")
|
||||||
|
. (argument) @constant
|
||||||
|
. (argument) @variable
|
||||||
|
(#any-of? @constant "APPEND" "FILTER" "INSERT"
|
||||||
|
"POP_BACK" "POP_FRONT" "PREPEND"
|
||||||
|
"REMOVE_ITEM" "REMOVE_AT" "REMOVE_DUPLICATES"
|
||||||
|
"REVERSE" "SORT")
|
||||||
|
)
|
||||||
|
(normal_command
|
||||||
|
(identifier) @function.builtin
|
||||||
|
(#match? @function.builtin "\\c^(list)$")
|
||||||
|
. (argument) @_transform @constant
|
||||||
|
. (argument) @variable
|
||||||
|
. (argument) @_action @constant
|
||||||
|
(#match? @_transform "TRANSFORM")
|
||||||
|
(#any-of? @_action "APPEND" "PREPEND" "TOUPPER" "TOLOWER" "STRIP" "GENEX_STRIP" "REPLACE")
|
||||||
|
)
|
||||||
|
(normal_command
|
||||||
|
(identifier) @function.builtin
|
||||||
|
(#match? @function.builtin "\\c^(list)$")
|
||||||
|
. (argument) @_transform @constant
|
||||||
|
. (argument) @variable
|
||||||
|
. (argument) @_action @constant
|
||||||
|
. (argument)? @_selector @constant
|
||||||
|
(#match? @_transform "TRANSFORM")
|
||||||
|
(#any-of? @_action "APPEND" "PREPEND" "TOUPPER" "TOLOWER" "STRIP" "GENEX_STRIP" "REPLACE")
|
||||||
|
(#any-of? @_selector "AT" "FOR" "REGEX")
|
||||||
|
)
|
||||||
|
|
||||||
((argument) @boolean
|
((argument) @boolean
|
||||||
(#match? @boolean "\\c^(1|on|yes|true|y|0|off|no|false|n|ignore|notfound|.*-notfound)$")
|
(#match? @boolean "\\c^(1|on|yes|true|y|0|off|no|false|n|ignore|notfound|.*-notfound)$")
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue