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