v0.2.0
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 unmaintainedtempdir
by @MingweiSamuel in #7 - Fix Tree Sitter tool crash due to empty vec contents non-terminal by @shadaj in #11
New Contributors
- @pocket7878 made their first contribution in #1
- @MingweiSamuel made their first contribution in #7
- @shadaj made their first contribution in #9
Full Changelog: https://github.com/hydro-project/rust-sitter/commits/rust-sitter-v0.2.0