Skip to content

Conversation

wetneb
Copy link

@wetneb wetneb commented Apr 1, 2025

This is another take on #244, which makes sure that outer attributes are properly attached to the elements they annotate.
It brings the grammar closer to rustc, removing 7 cases of inconsistencies noted in #229.

25,27d1
< coverage/attr/nested.rs
< coverage/coroutine.rs
< coverage/coverage_attr_closure.rs
29,31d2
< coverage/yield.rs
< debuginfo/coroutine-locals.rs
< debuginfo/coroutine-objects.rs
36d6
< debuginfo/issue-57822.rs

Closes #244. Closes #276.

@wetneb
Copy link
Author

wetneb commented Jun 4, 2025

If anyone else is interested in this, the improvement is available in the tree-sitter-rust-orchard fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: cannot parse more than one attribute item for function's parameter bug: Incorrect parsing of attributes

1 participant