]> git.eshelyaron.com Git - emacs.git/commit
sh-script.el: Add support for `case FOO {...}` (bug#55764)
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Jan 2024 03:12:34 +0000 (22:12 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 12 Jan 2024 03:12:34 +0000 (22:12 -0500)
commiteac3f2a80778b3904c55ae7b65ff862a79eebf2a
treebe74433945c3d27e4ecfc09460b68b116cfd617e
parentbfb486d8026424ec0859036b3686df9cab1383df
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.
lisp/progmodes/sh-script.el
test/manual/indent/shell.sh