made some tests green
This commit is contained in:
parent
3c27d1a179
commit
61e9bd0c48
5 changed files with 8 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue