]> 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)
committerEshel Yaron <me@eshelyaron.com>
Fri, 12 Jan 2024 16:56:45 +0000 (17:56 +0100)
commit69dcd035ffcac7e2419c83d61a801264e8b76a9c
treeb5a64059a04f636feae3ebdb0c4e1ceabd459de0
parent0e7482a5cae904d29f3c74db921339ae51be47de
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.

(cherry picked from commit eac3f2a80778b3904c55ae7b65ff862a79eebf2a)
lisp/progmodes/sh-script.el
test/manual/indent/shell.sh