Fix dot operator associativity. a.b.c would not be parsed otherwise
This commit is contained in:
parent
bad6a0a6d5
commit
1e8ee3af67
|
@ -27,7 +27,7 @@ nixExpr :: Bool -> Parser NExpr
|
||||||
nixExpr = buildExpressionParser table . nixTerm
|
nixExpr = buildExpressionParser table . nixTerm
|
||||||
where
|
where
|
||||||
table =
|
table =
|
||||||
[ [ binary "." NAttr AssocNone ]
|
[ [ binary "." NAttr AssocLeft ]
|
||||||
, [ prefix "-" NNeg ]
|
, [ prefix "-" NNeg ]
|
||||||
-- , [ prefix "~" NSubpath ] -- deprecated
|
-- , [ prefix "~" NSubpath ] -- deprecated
|
||||||
, [ binary "?" NHasAttr AssocNone ]
|
, [ binary "?" NHasAttr AssocNone ]
|
||||||
|
|
Loading…
Reference in a new issue