From: Jostein Kjønigsen Date: Mon, 5 May 2025 20:29:37 +0000 (+0200) Subject: Better command subst fontification in bash-ts-mode (bug#78567) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09f5b4aa1c5ebea261ef14ae67397ae1c5fbb26d;p=emacs.git Better command subst fontification in bash-ts-mode (bug#78567) * lisp/progmodes/sh-script.el (sh-mode--treesit-settings): fontify command-substition command only. Don't include enclosing brackets. (cherry picked from commit 61d711652054e6b12e9cb3c8a85285fdfbee38eb) --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index c99314f2801..6a4da659d45 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -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