From 09f5b4aa1c5ebea261ef14ae67397ae1c5fbb26d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jostein=20Kj=C3=B8nigsen?= Date: Mon, 5 May 2025 22:29:37 +0200 Subject: [PATCH] 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) --- lisp/progmodes/sh-script.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5