mirror of
https://github.com/openharmony/third_party_rust_quote.git
synced 2026-07-19 22:03:30 -04:00
Fix potential skipped star after repetitions
This commit is contained in:
@@ -715,6 +715,10 @@ macro_rules! quote_token_with_context {
|
||||
}};
|
||||
($tokens:ident $span:ident $b3:tt $b2:tt # (( $($inner:tt)* )) $sep:tt * $a3:tt) => {};
|
||||
($tokens:ident $span:ident $b3:tt # ( $($inner:tt)* ) ($sep:tt) * $a2:tt $a3:tt) => {};
|
||||
($tokens:ident $span:ident # ( $($inner:tt)* ) * (*) $a1:tt $a2:tt $a3:tt) => {
|
||||
// https://github.com/dtolnay/quote/issues/130
|
||||
$crate::quote_token!($tokens $span *);
|
||||
};
|
||||
($tokens:ident $span:ident # ( $($inner:tt)* ) $sep:tt (*) $a1:tt $a2:tt $a3:tt) => {};
|
||||
|
||||
($tokens:ident $span:ident $b3:tt $b2:tt $b1:tt (#) $var:ident $a2:tt $a3:tt) => {
|
||||
|
||||
Reference in New Issue
Block a user