summary refs log tree commit diff stats
path: root/compiler/parser.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-02 00:55:29 +0100
committerAraq <rumpf_a@web.de>2011-11-02 00:55:29 +0100
commit351e89e705c05bd9968010ab1af1674e7eda0d59 (patch)
treeebdbb14eba617b56c0a65df891889ca165c0576f /compiler/parser.nim
parent47f523cfb8b5d430d1105c608440200950183bb1 (diff)
downloadNim-351e89e705c05bd9968010ab1af1674e7eda0d59.tar.gz
better code generation for constant aggregates
Diffstat (limited to 'compiler/parser.nim')
-rwxr-xr-xcompiler/parser.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index d1798efa4..2a136b631 100755
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -474,7 +474,8 @@ proc lowestExprAux(p: var TParser, limit: int): PNode =
     var a = newNodeP(nkInfix, p)
     var opNode = newIdentNodeP(p.tok.ident, p) # skip operator:
     getTok(p)
-    optInd(p, opNode)         # read sub-expression with higher priority
+    optInd(p, opNode)         
+    # read sub-expression with higher priority:
     var b = lowestExprAux(p, opPrec + leftAssoc)
     addSon(a, opNode)
     addSon(a, result)