From 61d711652054e6b12e9cb3c8a85285fdfbee38eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?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. --- 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 1d9c41bcd78..dabef95463c 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -3321,7 +3321,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