dtolnay / syn

Parser for Rust source code
Apache License 2.0
2.88k stars 311 forks source link

Support '$' in custom_punctuation macro #1611

Closed dtolnay closed 7 months ago

dtolnay commented 7 months ago

Fixes #1609.

This didn't used to work prior to Rust 1.17 — see the contortions required for Token![$] in https://github.com/dtolnay/syn/commit/2ccec118ceb77479e3f7cbd5d79b75ba1b6e098c. But now there is no reason it shouldn't be supported.