mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
sh-script.el: Improve consistency in variable-use fontification.
sh-mode--treesit-settings: Ensure all variable use is treated the
same way.
Before this patch the following commands would all be treated differently:
echo "${var}"
echo "$var"
echo ${var}
echo $var
Now they are treated the same.
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings): Tweak
rules. (Bug#78167)
This commit is contained in:
parent
013ed9799e
commit
7265be09ce
1 changed files with 5 additions and 1 deletions
|
|
@ -3369,7 +3369,11 @@ See `sh-mode--treesit-other-keywords' and
|
|||
:language 'bash
|
||||
:override t
|
||||
'((command_substitution) @sh-quoted-exec
|
||||
(string (expansion (variable_name) @font-lock-variable-use-face)))
|
||||
(expansion (variable_name) @font-lock-variable-use-face)
|
||||
(expansion ["${" "}"] @font-lock-bracket-face)
|
||||
(simple_expansion
|
||||
"$" @font-lock-bracket-face
|
||||
(variable_name) @font-lock-variable-use-face))
|
||||
|
||||
:feature 'heredoc
|
||||
:language 'bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue