]> git.eshelyaron.com Git - emacs.git/commitdiff
Better command subst fontification in bash-ts-mode (bug#78567)
authorJostein Kjønigsen <jostein@kjonigsen.net>
Mon, 5 May 2025 20:29:37 +0000 (22:29 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:34 +0000 (22:00 +0200)
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings):
fontify command-substition command only.  Don't include
enclosing brackets.

(cherry picked from commit 61d711652054e6b12e9cb3c8a85285fdfbee38eb)

lisp/progmodes/sh-script.el

index c99314f2801aecb17f12274c27bdc60c9276fdcb..6a4da659d459e88d7d4e5b1c1ed61824d8763e5b 100644 (file)
@@ -3338,7 +3338,7 @@ See `sh-mode--treesit-other-keywords' and
    :feature 'string-interpolation
    :language 'bash
    :override t
-   '((command_substitution) @sh-quoted-exec
+   '((command_substitution (command) @sh-quoted-exec)
      (expansion (variable_name) @font-lock-variable-use-face)
      (expansion ["${" "}"] @font-lock-bracket-face)
      (simple_expansion