diff options
author | Araq <rumpf_a@web.de> | 2017-04-25 19:36:05 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-04-25 19:36:05 +0200 |
commit | 05c20bc4ffc8d3c4d0514d2834830d057ecd194a (patch) | |
tree | d76f15bd9f71778ff46e9454ab4e3cf90c293d14 /compiler | |
parent | c6a8bd264e77da69fc95de17a7febe5a32955a40 (diff) | |
download | Nim-05c20bc4ffc8d3c4d0514d2834830d057ecd194a.tar.gz |
fixes a parser bug
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index e9dff25ac..fabe4bcc8 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -1238,10 +1238,7 @@ proc parseExprStmt(p: var TParser): PNode = addSon(result, e) if p.tok.tokType != tkComma: break elif p.tok.indent < 0 and isExprStart(p): - if a.kind == nkCommand: - result = a - else: - result = newNode(nkCommand, a.info, @[a]) + result = newNode(nkCommand, a.info, @[a]) while true: var e = parseExpr(p) addSon(result, e) |