Plugin is causing Sublime Text 2 on Mac to crash when typing in an asterisk.

Issue #1 resolved
Travis Millward
created an issue

Sublime Text 2 on Mac OSX Mavericks 10.9.1

Open a txt file.

Set it's syntax to 'reStructureText Improved'.

Type in an asterisk * .

Sublime locks up and I have to force close it.

Comments (8)

  1. Kay-Uwe (Kiwi) Lorenz repo owner

    Hi Travis, thank you for bug report. My newest list highlighting had a bug in a regex, which caused an endless loop on ST2. Fixed it and tested on Linux.

    Please update the package.

    Kind regards, Kiwi

  2. Jie Zeng

    Hi Kiwi, this issue is not resolved on Mac.

    Any bullet point character *,-,+ (i.e. list-unnumbered) at the beginning of a line will trigger the bug.

    What can I do to tell you more details?

  3. Kay-Uwe (Kiwi) Lorenz repo owner

    Hi Zeng,

    I can reproduce it. The strange thing is that right after changing the pattern it first works, but later crashes. I have not exactly found out, what is causing this but ST2 seems to be picky about: if you use (?!\1\x{00000020}|$) or (?!(\1\x{00000020}|$)). But I cannot tell for sure. I have no time to fix this right now, but maybe I find some time tonight.

    For now I there is only highlighted the first line as a list, and there is no crash with ST2 anymore (restarted multiple times now).

    Regards, Kiwi

  4. Kay-Uwe (Kiwi) Lorenz repo owner

    Hi Vladislav,

    I have no OSX, I have tested this on Linux with v2014. (on Sublime Text 2.0.2 build 2221. And there I cannot reproduce the issue you describe.

    Kind regards, Kiwi

  5. Log in to comment