handle Token::Rickroll
in parser
This commit is contained in:
parent
fa0d3968f5
commit
227fa8e35b
|
@ -78,6 +78,10 @@ impl<'source> Parser<'source> {
|
||||||
self.semi_terminated(StmtKind::Rlyeh)?,
|
self.semi_terminated(StmtKind::Rlyeh)?,
|
||||||
start..self.lexer.span().end,
|
start..self.lexer.span().end,
|
||||||
)),
|
)),
|
||||||
|
Token::Rickroll => Ok(Stmt::new(
|
||||||
|
self.semi_terminated(StmtKind::Rickroll)?,
|
||||||
|
start..self.lexer.span().end
|
||||||
|
)),
|
||||||
|
|
||||||
Token::Identifier(_)
|
Token::Identifier(_)
|
||||||
| Token::Char
|
| Token::Char
|
||||||
|
|
Loading…
Reference in a new issue