[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26070: 26.0.50; js-mode slash insertion bug
From: |
Richard Copley |
Subject: |
bug#26070: 26.0.50; js-mode slash insertion bug |
Date: |
Sun, 19 Mar 2017 11:22:32 +0000 |
On 14 March 2017 at 11:06, Tom Tromey <tom@tromey.com> wrote:
>>>>>> "Dmitry" == Dmitry Gutov <dgutov@yandex.ru> writes:
>
>>> I think once js-syntax-propertize is called, the regexp should always
>>> succeed, so this patch makes the trailing "/" optional.
>
> Dmitry> Does it solve the infloop in the case like:
> Dmitry> /x[
> Dmitry> as well?
>
> Yes, with the patch I don't get an infloop no matter which way I insert
> those characters.
>
> Tom
Caught one!
Insert the text below in a JS-mode buffer, go to the beginning of the
blank first line in function h() and type "/". There is an infloop.
The infloop doesn't happen if the "/" in function g() is changed to
a different operator.
You can replace the 0s with other stuff, but you need at least that
many characters (delete a 0 or a space and there is no infloop).
function f() {
function g()
{
1 / 2;
}
function h() {
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00000000000000000000000000000000000000000000000000;
00;
}
}
- bug#26070: 26.0.50; js-mode slash insertion bug, Richard Copley, 2017/03/12
- bug#26070: 26.0.50; js-mode slash insertion bug, Tom Tromey, 2017/03/13
- bug#26070: 26.0.50; js-mode slash insertion bug, Richard Copley, 2017/03/13
- bug#26070: 26.0.50; js-mode slash insertion bug, Dmitry Gutov, 2017/03/14
- bug#26070: 26.0.50; js-mode slash insertion bug, Tom Tromey, 2017/03/14
- bug#26070: 26.0.50; js-mode slash insertion bug,
Richard Copley <=
- bug#26070: 26.0.50; js-mode slash insertion bug, Tom Tromey, 2017/03/22
- bug#26070: 26.0.50; js-mode slash insertion bug, Richard Copley, 2017/03/23
- bug#26070: 26.0.50; js-mode slash insertion bug, Tom Tromey, 2017/03/23
- bug#26070: 26.0.50; js-mode slash insertion bug, Dmitry Gutov, 2017/03/31