[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10483: [PATCH] cperl-mode: Avoid endless loop
From: |
Harald Jörg |
Subject: |
bug#10483: [PATCH] cperl-mode: Avoid endless loop |
Date: |
Mon, 31 Aug 2020 20:08:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
On 8/31/20 7:24 PM, Eli Zaretskii wrote:
>> From: Harald Jörg <haj@posteo.de>
>> Date: Mon, 31 Aug 2020 19:06:08 +0200
>>
>> That bug has a few more manifestations. An endless loop
>> occurred whenever a statement ended in a closing paren, and
>> the statement was not terminated on the same line.
>
> Thanks, but could we please also have a test for this issue, so that
> the bug never happens again?
Sure... I can prepare another patch. The test also ought to verify
that terminating the while loop didn't damage cperl-mode's ability to
indent the compound statements it handles in this section of code.
I was hesitating in this particular case because _if_ this issue ever
happens again, then the test just hangs forever.
Is there a safeguard against this?
--
Cheers,
haj