Open aaronjanse opened 2 years ago
Seems reasonable. Will be out of scope for 0.10. though, hope that's OK :)
In case someone wants to take over, feel free.... Otherwise I'll look into it as soon as we're working on 1.0.
Just to be clear, this is about improving the Display impl for ParseError? As in expanding on the strings
It would be great if rnix-parser has errors more descriptive than "unexpected X," perhaps prompting the user how to fix the code if we can guess what's missing (e.g. a semicolon for the last value in an attr set)?
Existing error messages at the time of writing:
https://github.com/nix-community/rnix-parser/blob/fa6dddecb848f813e7973be3d82ad8666e98eb8e/src/parser.rs#L22-L37