Skip to content

v0.2.0

Compare
Choose a tag to compare
@shadaj shadaj released this 03 Jan 20:27
· 41 commits to main since this release

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