mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
extend highlight groups
Pick up
(array_at)
(array_star)
(expansion_flags)
(expansion_modifiers)
(simple_variable_name)
(glob_pattern)
(expansion_style) - and therefore hash in ${#variable}
This commit is contained in:
parent
835a59f518
commit
2071318626
2 changed files with 30 additions and 13 deletions
|
|
@ -102,7 +102,7 @@
|
|||
|
||||
"function" @keyword.function
|
||||
|
||||
(special_variable_name) @constant
|
||||
(special_variable_name) @variable.builtin
|
||||
|
||||
; trap -l
|
||||
((word) @constant.builtin
|
||||
|
|
@ -209,6 +209,23 @@
|
|||
|
||||
"``" @punctuation.special
|
||||
|
||||
(array_star) @variable.builtin
|
||||
|
||||
(array_at) @variable.builtin
|
||||
|
||||
(expansion_flags) @attribute.builtin
|
||||
|
||||
(expansion_style) @attribute.builtin
|
||||
|
||||
(expansion_pattern
|
||||
pattern: ("#" @attribute.builtin))
|
||||
|
||||
(expansion_modifier) @attribute.builtin
|
||||
|
||||
(simple_variable_name) @variable
|
||||
|
||||
(glob_pattern) @string.regexp
|
||||
|
||||
(variable_name) @variable
|
||||
|
||||
((variable_name) @constant
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue