]> git.eshelyaron.com Git - emacs.git/commit
sh-script.el: Improve consistency in variable-use fontification.
authorJostein Kjønigsen <jostein@kjonigsen.net>
Wed, 30 Apr 2025 09:33:26 +0000 (11:33 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 14:04:58 +0000 (16:04 +0200)
commitd6c6853ba91bf3bde019642f1ac02b0d604596d4
tree208ce17441fdfe9f305a2d5b6f4f87a5e78e7cae
parent34cfe69af117066e9263fca6b15aa9014b66dab2
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)

(cherry picked from commit 7265be09cebc9ee752b688b7a85fb1ac18b45ef5)
lisp/progmodes/sh-script.el