Bump proc-macro2 in xtask

This commit is contained in:
Lukas Wirth 2025-02-05 08:22:20 +01:00
parent 6fb64beb80
commit 4dc936bfe2
3 changed files with 6 additions and 4 deletions

View file

@ -397,6 +397,9 @@ fn generate_syntax_kinds(grammar: KindsSrc) -> String {
if "{}[]()".contains(token) {
let c = token.chars().next().unwrap();
quote! { #c }
// underscore is an identifier in the proc-macro api
} else if *token == "_" {
quote! { _ }
} else {
let cs = token.chars().map(|c| Punct::new(c, Spacing::Joint));
quote! { #(#cs)* }