In case there are fatal parse errors, using a token-based keyword highlighting mechanism could be useful, especially if a file was just opened and has no highlighting at all at that point.

Submitted by Lennart Kats on 24 April 2010 at 15:15

On 24 April 2010 at 15:17 Lennart Kats commented:

Alternatively, even a silly regex based highlighter can be a nice fallback, using the comment specification from the ESV and some default syntax for strings.


On 7 June 2010 at 16:59 Lennart Kats commented:

Better yet, we could collect all literals in productions in the parse table, and use those together with the default tokenization provided by the water recovery rules. Skipped regions would have to be tokenized separately.


On 8 June 2010 at 13:51 Lennart Kats commented:

Fixed in r20960. Currently doesn’t work for unrecoverable syntax errors (Spoofax/157).


On 8 June 2010 at 13:51 Lennart Kats closed this issue.

Log in to post comments