tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
340 stars 97 forks source link

Support let-else statements #162

Closed kawaemon closed 1 year ago

kawaemon commented 1 year ago

let_else feature is going to be stabilized on Rust 1.65.0. This PR adds support for it.

maxbrunsfeld commented 1 year ago

Thanks for this PR! I pushed a small tweak to your branch, using an associativity to avoid needing runtime conflict-resolution, and reduce the size of the parser by a small amount.