made some tests green

This commit is contained in:
Araq 2013-04-22 21:18:48 +02:00
commit 61e9bd0c48
5 changed files with 8 additions and 3 deletions

View file

@ -1687,6 +1687,10 @@ proc parseStmt(p: var TParser): PNode =
if p.tok.indent > p.currInd:
parMessage(p, errInvalidIndentation)
break
if p.tok.toktype in {tkCurlyRi, tkParRi, tkCurlyDotRi, tkBracketRi}:
# XXX this ensures tnamedparamanonproc still compiles;
# deprecate this syntax later
break
var a = complexOrSimpleStmt(p)
if a.kind != nkEmpty:
addSon(result, a)