diff options
author | Araq <rumpf_a@web.de> | 2013-04-22 21:18:48 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-04-22 21:18:48 +0200 |
commit | 61e9bd0c485b8e5890749f6abbe464f3228c6d4e (patch) | |
tree | 1505fb2de72e1f719bce359c7d09e9857303c1bb /compiler | |
parent | 3c27d1a1793278ffdb6c2e8d9e9d6dc5ccf7c95d (diff) | |
download | Nim-61e9bd0c485b8e5890749f6abbe464f3228c6d4e.tar.gz |
made some tests green
Diffstat (limited to 'compiler')
-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) |