next steps for object construction expressions
This commit is contained in:
parent
225d657019
commit
f1b8f83495
3 changed files with 49 additions and 29 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue