aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJostein Kjønigsen2025-05-05 22:29:37 +0200
committerYuan Fu2025-06-04 00:11:01 -0700
commit61d711652054e6b12e9cb3c8a85285fdfbee38eb (patch)
tree99e101e756e523188e9c845661715388241b023a
parent47837adf8c874356d598fb0a5224a137083d5be7 (diff)
downloademacs-61d711652054e6b12e9cb3c8a85285fdfbee38eb.tar.gz
emacs-61d711652054e6b12e9cb3c8a85285fdfbee38eb.zip
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.
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 1 insertions, 1 deletions
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
3321 :feature 'string-interpolation 3321 :feature 'string-interpolation
3322 :language 'bash 3322 :language 'bash
3323 :override t 3323 :override t
3324 '((command_substitution) @sh-quoted-exec 3324 '((command_substitution (command) @sh-quoted-exec)
3325 (expansion (variable_name) @font-lock-variable-use-face) 3325 (expansion (variable_name) @font-lock-variable-use-face)
3326 (expansion ["${" "}"] @font-lock-bracket-face) 3326 (expansion ["${" "}"] @font-lock-bracket-face)
3327 (simple_expansion 3327 (simple_expansion