lua-users home
lua-l archive

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


On 12 January 2014 00:30, Rena <hyperhacker@gmail.com> wrote:
> 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>

When the missing token refers to something declared in the same line,
the parser does not report the matching token:

http://www.lua.org/source/5.2/lparser.c.html#check_match

-- Hisham