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
|
"function" @keyword.function
|
||||||
|
|
||||||
(special_variable_name) @constant
|
(special_variable_name) @variable.builtin
|
||||||
|
|
||||||
; trap -l
|
; trap -l
|
||||||
((word) @constant.builtin
|
((word) @constant.builtin
|
||||||
|
|
@ -209,6 +209,23 @@
|
||||||
|
|
||||||
"``" @punctuation.special
|
"``" @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) @variable
|
||||||
|
|
||||||
((variable_name) @constant
|
((variable_name) @constant
|
||||||
|
|
|
||||||
|
|
@ -248,18 +248,18 @@ cat <<< "string"
|
||||||
# Special variables
|
# Special variables
|
||||||
echo $0 $1 $@ $* $# $?
|
echo $0 $1 $@ $* $# $?
|
||||||
#^^^ @function.call @function.builtin @number
|
#^^^ @function.call @function.builtin @number
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# ^^ @punctuation.special @none @constant
|
# ^^ @punctuation.special @none @variable.builtin
|
||||||
# ^ @constant
|
# ^ @variable.builtin
|
||||||
# NOTE: $$ is not captured by current query/grammar
|
# NOTE: $$ is not captured by current query/grammar
|
||||||
|
|
||||||
# Conditional operators
|
# Conditional operators
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue