dtolnay / syn

Parser for Rust source code
Apache License 2.0
2.79k stars 306 forks source link

Use span from the correct Group token when parsing delimited content #1679

Closed dtolnay closed 1 month ago

dtolnay commented 1 month ago

Fixes #1678.

The original implementation using close_span_of_group is significantly older than #1393, but as of the conversion to DelimSpan, this case is easy to handle correctly.