redo fix for #4035

This commit is contained in:
Andrii Riabushenko
2019-04-11 18:16:12 +01:00
parent 6fb0410edb
commit b7de5c9a04

View File

@@ -807,7 +807,8 @@ proc parseOperators(p: var TParser, headNode: PNode,
var a = newNodeP(nkInfix, p)
var opNode = newIdentNodeP(p.tok.ident, p) # skip operator:
getTok(p)
optInd(p, a)
flexComment(p, a)
optPar(p)
# read sub-expression with higher priority:
var b = simpleExprAux(p, opPrec + leftAssoc, modeB)
addSon(a, opNode)