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

Create issue
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. Vladislav Dmitrievich Turbanov

    The issue seems not to be resolved yet.

    So here goes the test. If you place ``-`` on the next line, the editor hangs.
  5. 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

  6. Kay-Uwe (Kiwi) Lorenz repo owner

    Hi Vladislav,

    I will look at this issue tomorrow at work. There I have a Windows 7 machine.

    Kind regards, Kiwi

  7. Kay-Uwe (Kiwi) Lorenz repo owner

    Hi Vladislav,

    please retest. I simplified list parsing now, which should not get ST into endless loops anymore. Sorry for inconveniences.

    Regards, Kiwi

  8. Log in to comment