mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-27 09:50:41 +00:00
commit
16ef95e38a
@ -128,7 +128,7 @@ macro_rules! impl_parse_for_custom_keyword {
|
||||
// For peek.
|
||||
impl $crate::token::CustomToken for $ident {
|
||||
fn peek(cursor: $crate::buffer::Cursor) -> $crate::__private::bool {
|
||||
if let Some((ident, _rest)) = cursor.ident() {
|
||||
if let $crate::__private::Some((ident, _rest)) = cursor.ident() {
|
||||
ident == stringify!($ident)
|
||||
} else {
|
||||
false
|
||||
|
Loading…
Reference in New Issue
Block a user