diff options
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r-- | compiler/parser.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 175664a84..45eb6de9f 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -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) |