Improve error handling
Currently syn-rsx hardcodes error strings, which might not fit into what consumers expect. Also some errors lack context information to allow consumers to properly show errors. It'd probably be more elegant to instead have a custom Error with sensible context information (some sort of Enum) and an useful Span, maybe if possible with some default error strings as convenience fallback.
https://docs.rs/error-stack in combination with thiserror looks promising for this task.
If possible it'd be nice to attach the Node to the error-stack report.
syn always expects a syn::Error to be returned from a parser struct / closure. So currently I don't see a way to expose a custom error to consumers. Only workaround seems to be allowing to set custom error display strings via configuration.
Upstream issue: https://github.com/dtolnay/syn/issues/1239