Hey everyone.
When using the new bash-ts-mode to edit shell-scripts, simple shell-expansion expressions are fontified using (among other things) sh-quoted-exec face:
Examples below:
echo `test`
echo $(test)
Unfortunately, in both of these cases the enclosing brackets are also fontified using sh-quoted-exec. Not only makes this the shell-expansion expression harder to read, but it also makes the fontification of these brackets inconsistent with all other brackets in bash-ts-mode.
This seems to be due to an overly wide selector used in the tree-sitter rules, which can be easily narrowed without impacting the core function of the rule: highlighting shell-expansions.
Attached is a patch which implements this fix, and makes shell-expansion brackets highlighted consistently.
Cheers!