witheve / Eve

Better tools for thought

Home Page:http://witheve.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser exception on incomplete "search" keyword

btheado opened this issue · comments

Code block with typo on the search keyword:

searc

results in parser exception:

Cannot read property 'length' of undefined

I no longer get a parser exception for this. Maybe #848 fixed it?

Yep! Turns out the problem had the same underlying cause. For a class of errors that rendered the rest of the document unparsable, there was no token after to use for position information, which let NaN's into the system that generally wreaked havoc on error reporting. I added sanity checks in #848 to turn that case into "mark the whole block as the error".