dtolnay / paste

Macros for all your token pasting needs
Apache License 2.0
983 stars 53 forks source link

Strip only surrounding quotes of a literal #76

Closed dtolnay closed 2 years ago

dtolnay commented 2 years ago

Previously [<x '"' y>] and [<x "'" y>] would both turn into xy, which is not correct. We were stripping out every ' and " character instead of just the ones surrounding the literal.