next steps for object construction expressions

This commit is contained in:
Araq 2013-03-07 08:43:44 +01:00
commit f1b8f83495
3 changed files with 49 additions and 29 deletions

View file

@ -501,7 +501,7 @@ proc primarySuffix(p: var TParser, r: PNode): PNode =
result = newNodeP(nkCall, p)
addSon(result, a)
exprColonEqExprListAux(p, tkParRi, result)
if result.len > 1 and result.sons[0].kind == nkExprColonExpr:
if result.len > 1 and result.sons[1].kind == nkExprColonExpr:
result.kind = nkObjConstr
else:
parseDoBlocks(p, result)