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