summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-26 16:22:34 +0100
committerAraq <rumpf_a@web.de>2014-03-26 16:22:34 +0100
commit9fdb1316868f71b99ab72de948a464456bcfe203 (patch)
treeba393b036825ece1270459fadc4a1328fd90227e /compiler
parent7874c0efcb2437c378c973a51de88f3ebc7e4d74 (diff)
downloadNim-9fdb1316868f71b99ab72de948a464456bcfe203.tar.gz
fixes #992
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index d59e013d7..07f5c9de9 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -525,6 +525,8 @@ proc parsePar(p: var TParser): PNode =
       asgn.sons[0] = a
       asgn.sons[1] = b
       result.add(asgn)
+      if p.tok.tokType == tkSemiColon:
+        semiStmtList(p, result)
     elif p.tok.tokType == tkSemiColon:
       # stmt context:
       result.add(a)