lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is it possible to use LPEG to create an incremental parser.

I'm trying to add syntax highlighting to an in-house lua editing suite. 
Currently I parse the entire file after every keystroke which is fine on small
files but really slows down with larger files.

I'd like to be able to just reparse the line that has changed or possibly the
next couple of lines, instead of the whole document.  Any suggestions?

- Greg