diff options
author | Araq <rumpf_a@web.de> | 2014-03-26 16:22:34 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-03-26 16:22:34 +0100 |
commit | 9fdb1316868f71b99ab72de948a464456bcfe203 (patch) | |
tree | ba393b036825ece1270459fadc4a1328fd90227e /compiler | |
parent | 7874c0efcb2437c378c973a51de88f3ebc7e4d74 (diff) | |
download | Nim-9fdb1316868f71b99ab72de948a464456bcfe203.tar.gz |
fixes #992
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 2 |
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) |