Merge pull request #4 from lethalman/fixdot
Fix dot operator associativity. a.b.c would not be parsed otherwise
This commit is contained in:
commit
806e497ce8
|
@ -27,7 +27,7 @@ nixExpr :: Bool -> Parser NExpr
|
|||
nixExpr = buildExpressionParser table . nixTerm
|
||||
where
|
||||
table =
|
||||
[ [ binary "." NAttr AssocNone ]
|
||||
[ [ binary "." NAttr AssocLeft ]
|
||||
, [ prefix "-" NNeg ]
|
||||
-- , [ prefix "~" NSubpath ] -- deprecated
|
||||
, [ binary "?" NHasAttr AssocNone ]
|
||||
|
|
Loading…
Reference in New Issue