Skip to content

Releases: hydro-project/rust-sitter

v0.2.0

03 Jan 20:27

Choose a tag to compare

This release features a wide range of new features, including new annotations to control parsing (rust_sitter::skip) and a new type to extract span information from parsed nodes Spanned<_>. In addition, the docs have been revamped to explain all of Rust Sitter's features in more detail, and the library itself has been refactored to improve robustness for complex grammars!

Highlights 🎉

  • Support enum with named field. by @pocket7878 in #2
  • Add support for enum with unnamed vector field. by @pocket7878 in #3
  • Add spanned trait to get index ranges of parsed nodes by @shadaj in #9
  • Support Vec<Option<_>> fields by @shadaj in #15
  • Add rust_sitter::skip attribute for extra fields by @shadaj in #18

Bug Fixes 🐛

  • Use tempfile instead of unmaintained tempdir by @MingweiSamuel in #7
  • Fix Tree Sitter tool crash due to empty vec contents non-terminal by @shadaj in #11

New Contributors

Full Changelog: https://github.com/hydro-project/rust-sitter/commits/rust-sitter-v0.2.0

v0.1.2

23 Aug 02:39

Choose a tag to compare

Bug Fixes 🐛

  • Fix bindings generation for enums with named fields PR #2
  • Avoid crashes when generating grammar rules and bindings for unnamed Vec fields PR #3