diff options
| author | Stefan Monnier | 2024-01-11 22:12:34 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2024-01-11 22:12:34 -0500 |
| commit | eac3f2a80778b3904c55ae7b65ff862a79eebf2a (patch) | |
| tree | be74433945c3d27e4ecfc09460b68b116cfd617e /test | |
| parent | bfb486d8026424ec0859036b3686df9cab1383df (diff) | |
| download | emacs-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-x | test/manual/indent/shell.sh | 7 |
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 | |||
| 193 | case $i { # Bug#55764 | ||
| 194 | *pattern) | ||
| 195 | (cd .; echo hi); | ||
| 196 | do1 ;; | ||
| 197 | *pattern2) do2 ;; | ||
| 198 | } | ||