diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-05-04 16:02:50 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-05-04 16:02:50 +0200 |
commit | 764cc0217735454c166cb7dd490db58f5fa6fe26 (patch) | |
tree | 63633b39ae24815e8b677ccbc9bac2cb01c39d3b /compiler/parser.nim | |
parent | afa80092d378a6dbc116c0aa3ed3964fd8c599d6 (diff) | |
parent | c1aa973758a60d7ef0e698c94861b74132612de5 (diff) | |
download | Nim-764cc0217735454c166cb7dd490db58f5fa6fe26.tar.gz |
Merge branch 'devel' into araq
Diffstat (limited to 'compiler/parser.nim')
-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) |