summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-04-25 19:36:05 +0200
committerAraq <rumpf_a@web.de>2017-04-25 19:36:05 +0200
commit05c20bc4ffc8d3c4d0514d2834830d057ecd194a (patch)
treed76f15bd9f71778ff46e9454ab4e3cf90c293d14 /compiler
parentc6a8bd264e77da69fc95de17a7febe5a32955a40 (diff)
downloadNim-05c20bc4ffc8d3c4d0514d2834830d057ecd194a.tar.gz
fixes a parser bug
Diffstat (limited to 'compiler')
-rw-r--r--compiler/parser.nim5
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)