racket / scribble

Other
197 stars 91 forks source link

lp2 error on nearly empty file #249

Closed aymanosman closed 4 years ago

aymanosman commented 4 years ago

I'm not sure how to categorize this admittedly minor bug.

If a file consists of entirely this string "#lang scribble/lp2", with no whitespace at the end of the module path, then you get a confusing error. The second screenshot shows what I expected (after I added a space to the end of the file).

Seems like it would be really easy to fix. I'm happy to do it.

Screen Shot 2020-07-02 at 12 47 31 Screen Shot 2020-07-02 at 12 47 47

mflatt commented 4 years ago

Hi @aymanosman - thanks for the report! We'd welcome a PR to fix the problem.