mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
feat(bash): align substitutions with expansions
The bash manual[1] considers command and process substitutions to be forms of expansions, so they should be highlighted the same as other expansions. This is traditionally how they have been highlighted in the past too. [1] https://www.gnu.org/software/bash/manual/html_node/Shell-Expansions.html
This commit is contained in:
parent
5e4f959d59
commit
aa6323e834
1 changed files with 7 additions and 2 deletions
|
|
@ -124,10 +124,15 @@
|
|||
(test_operator) @operator
|
||||
|
||||
(command_substitution
|
||||
"$(" @punctuation.bracket)
|
||||
"$(" @punctuation.special
|
||||
")" @punctuation.special)
|
||||
|
||||
(process_substitution
|
||||
"<(" @punctuation.bracket)
|
||||
[
|
||||
"<("
|
||||
">("
|
||||
] @punctuation.special
|
||||
")" @punctuation.special)
|
||||
|
||||
(arithmetic_expansion
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue