e8e129a759
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 '('. |
||
---|---|---|
.. | ||
Parser | ||
Eval.hs | ||
Internal.hs | ||
Parser.hs | ||
Pretty.hs | ||
Types.hs |