SWP-Ubau-SoSe2014-Haskell / SWPSoSe14

Rail compiler written in Haskell
MIT License
3 stars 1 forks source link

Endless loops #179

Closed Krisselchen closed 10 years ago

Krisselchen commented 10 years ago

If Rail-Programm becomes an endless loop syntax highlighting is starting an endless loop too.->Editor crash @mynery is also looking at this

cpockrandt commented 10 years ago

I typed this rail program:

$
 \
  \---------\
            |
      \-----/

Then I added a character:

$
 \
  \---------\
      |     |
      \-----/

... and another one:

$
 \
  \---/-----\
      |     |
      \-----/

Now move with the cursor using the arrow keys: response time is awful and syntax highlighting can't decide which characters to highlight red and which ones black.

mynery commented 10 years ago

Yes it is horribly slow because I added the easy fix. The more performant version needs way more insight in the highlighter than I have. Basically you have to mark which fields you highlighted from what direction.

cpockrandt commented 10 years ago

If this is a known problem and there is not enough time to fix it, you can close the ticket again

mynery commented 10 years ago

I think it is not enough time for me, I'm unsure about Christoph, though.

cpockrandt commented 10 years ago

Fixed by @MrM0nkey .

mynery commented 10 years ago

This so called fix suffers the same problem my first approach had: If you create a simple junction (*+x) or elsewhere go through already highlighted code it will stop highlighting the code on the other side.