mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-10 11:10:16 +00:00
Bump proc-macro2 in xtask
This commit is contained in:
parent
6fb64beb80
commit
4dc936bfe2
3 changed files with 6 additions and 4 deletions
|
|
@ -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)* }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue