lua-users home
lua-l archive

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


If you leave out an 'end', the error message isn't very helpful:

$ lua -e "if x then"
lua: (command line):1: 'end' expected near <eof>

Some compilers I've used give you a more detailed message telling you what the 'end' would be closing, like: "'end' expected near <eof> to close 'if' at (command line):1"

This would be helpful for editing and for editors like Textadept, which highlight lines with syntax errors, so that they could highlight the line with the unclosed statement instead of just jumping to the end of the file.

--
Sent from my Game Boy.