Avoid Token::{OpenDelim, CloseDelim}
.
This commit is contained in:
parent
8c4960bfde
commit
2471888033
2 changed files with 23 additions and 17 deletions
|
@ -2694,7 +2694,7 @@ impl<'a> Parser<'a> {
|
|||
// yet.
|
||||
match self.token {
|
||||
token::OpenDelim(delim) => {
|
||||
if self.quote_depth == 0 && self.tts.last().map(|&(_, i)| i == 1).unwrap_or(false) {
|
||||
if self.quote_depth == 0 {
|
||||
let tt = self.tts.pop().unwrap().0;
|
||||
self.bump();
|
||||
return Ok(tt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue