mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
Adjust code generator for brackets in Token definition
This commit is contained in:
parent
2d529603a2
commit
f9f55521a8
@ -416,7 +416,7 @@ mod parsing {
|
||||
tokens.insert("await".to_owned(), "Await".to_owned());
|
||||
} else {
|
||||
let pattern;
|
||||
parenthesized!(pattern in rules);
|
||||
bracketed!(pattern in rules);
|
||||
let token = pattern.parse::<TokenStream>()?.to_string();
|
||||
rules.parse::<Token![=>]>()?;
|
||||
let expansion;
|
||||
|
Loading…
Reference in New Issue
Block a user