hnix/Nix
Benno Fünfstück e8e129a759 factor out "inherit" keyword in binding parser
When parsing '{ inherit a; }' without this fix, the `scopedInherit`
parser would be tried first. Because this parser already consumes the
`inherit` keyword, it won't backtrack anymore and the non-scoped
`inherit` parser will never be tried, so we get a parse failure which is
of course not correct.

The solution is to first parse `inherit` (in both cases) and then decide
whether it is a scoped import or not by looking for a following '('.
2014-08-13 22:35:51 +02:00
..
Parser
Eval.hs
Internal.hs
Parser.hs factor out "inherit" keyword in binding parser 2014-08-13 22:35:51 +02:00
Pretty.hs
Types.hs