aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2019-08-17 19:57:15 -0700
committerGitHub <noreply@github.com>2019-08-17 19:57:15 -0700
commit53f65a5e5eadb8ac2cbae9fd09a31724352447e4 (patch)
tree979f549a32bf735b58482140d0c14bb799caf103 /src/lib.rs
parent40b985223063562beaad0c86a07052a004ed8fb6 (diff)
parentbce8f54e720a75f41814b03c792de37765dfecd7 (diff)
downloadquote-53f65a5e5eadb8ac2cbae9fd09a31724352447e4.tar.gz
Merge pull request #131 from dtolnay/star
Fix missing star after repetition
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e9749ec..7b8d646 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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) => {