Merge pull request #4 from lethalman/fixdot

Fix dot operator associativity. a.b.c would not be parsed otherwise
This commit is contained in:
John Wiegley 2014-07-07 09:31:20 -05:00
commit 806e497ce8
1 changed files with 1 additions and 1 deletions

View File

@ -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 ]