utkarshkukreti / markup.rs

A blazing fast, type-safe template engine for Rust.
Apache License 2.0
363 stars 15 forks source link

Remember input spans to give better hints in case of errors #33

Closed Kijewski closed 11 months ago

Kijewski commented 1 year ago

Currently if you use a non-renderable item in a definition, the entire definition will flair up red. This PR make the parser remember the spans of the input token, so the generator can use them in the generated syntax tree.

utkarshkukreti commented 11 months ago

Thanks, improvements to error messages are always welcome! I'll make a minor version release shortly.

utkarshkukreti commented 11 months ago

0.14.0 has been published with this change.