Commit d9d5f3b3 authored by Robert Griesemer's avatar Robert Griesemer

- fixed issue with parsing function literals in statement lists

SVN=127218
parent cbdaa10f
......@@ -826,9 +826,11 @@ func (P *Parser) TryStatement() bool {
switch P.tok {
case Scanner.CONST: fallthrough;
case Scanner.TYPE: fallthrough;
case Scanner.VAR: fallthrough;
case Scanner.FUNC:
case Scanner.VAR:
P.ParseDeclaration();
case Scanner.FUNC:
// for now we do not allow local function declarations
fallthrough;
case Scanner.GTR:
P.ParseSimpleStat(); // send
case Scanner.IDENT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment