mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -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
|
||||
|
|
|
|||
|
|
@ -248,18 +248,18 @@ cat <<< "string"
|
|||
# Special variables
|
||||
echo $0 $1 $@ $* $# $?
|
||||
#^^^ @function.call @function.builtin @number
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @constant
|
||||
# ^ @constant
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# ^^ @punctuation.special @none @variable.builtin
|
||||
# ^ @variable.builtin
|
||||
# NOTE: $$ is not captured by current query/grammar
|
||||
|
||||
# Conditional operators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue