[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature request: more detailed syntax error reporting
- From: Hisham <h@...>
- Date: Sun, 12 Jan 2014 15:41:03 -0200
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