[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53817: 28.0.91; sh-mode indent misses on 'if test; then' when 'then'
From: |
Lars Ingebrigtsen |
Subject: |
bug#53817: 28.0.91; sh-mode indent misses on 'if test; then' when 'then' is on 'if' line |
Date: |
Mon, 07 Feb 2022 09:16:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The sh syntax is fairly nasty to parse, especially backwards, so I can't
> give you any general comment here. I'd try something and then see if it
> breaks any tests (including looking at test/manual/indent/shell.sh).
>
> For sure, I'd recommend adding a regression test.
I've now tweaked the loop, and it fixes the issue and doesn't seem to
break anything in the manual test tile. (And I added some automatic
tests.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no