From aa6323e834a181c1035208d1c3c80f31f07e0162 Mon Sep 17 00:00:00 2001 From: michaelPotter Date: Sun, 24 Mar 2024 08:31:35 -0700 Subject: [PATCH] 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 --- queries/bash/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/queries/bash/highlights.scm b/queries/bash/highlights.scm index 32e40dbf8..6547bea7a 100644 --- a/queries/bash/highlights.scm +++ b/queries/bash/highlights.scm @@ -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 [