aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Monnier2024-01-11 22:12:34 -0500
committerStefan Monnier2024-01-11 22:12:34 -0500
commiteac3f2a80778b3904c55ae7b65ff862a79eebf2a (patch)
treebe74433945c3d27e4ecfc09460b68b116cfd617e /test
parentbfb486d8026424ec0859036b3686df9cab1383df (diff)
downloademacs-eac3f2a80778b3904c55ae7b65ff862a79eebf2a.tar.gz
emacs-eac3f2a80778b3904c55ae7b65ff862a79eebf2a.zip
sh-script.el: Add support for `case FOO {...}` (bug#55764)
* lisp/progmodes/sh-script.el (sh-font-lock-paren): Also recognize `FOO)` after `{`. (sh-smie-sh-rules): Make `for` rule apply to `case FOO { ...}` as well. * test/manual/indent/shell.sh: Add new test case.
Diffstat (limited to 'test')
-rwxr-xr-xtest/manual/indent/shell.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/manual/indent/shell.sh b/test/manual/indent/shell.sh
index 5b3fb0e66fb..42a981d312e 100755
--- a/test/manual/indent/shell.sh
+++ b/test/manual/indent/shell.sh
@@ -189,3 +189,10 @@ bar () {
189 189
190 fi 190 fi
191} 191}
192
193case $i { # Bug#55764
194 *pattern)
195 (cd .; echo hi);
196 do1 ;;
197 *pattern2) do2 ;;
198}