forked from AbleScript/ablescript
Removed todo when unknown token
This commit is contained in:
parent
3d7c89634e
commit
183c584e96
|
@ -396,7 +396,12 @@ impl<'source> Parser<'source> {
|
|||
len
|
||||
}
|
||||
Token::LeftCurly => None,
|
||||
_ => todo!(),
|
||||
token => {
|
||||
return Err(Error::new(
|
||||
ErrorKind::UnexpectedToken(token),
|
||||
self.lexer.span(),
|
||||
))
|
||||
}
|
||||
};
|
||||
|
||||
let mut code: Vec<u8> = vec![];
|
||||
|
|
Loading…
Reference in a new issue