parser: skip comments in more places for now

This commit is contained in:
Ryan Chandler 2022-08-09 21:01:29 +01:00
parent 0faf161ed9
commit 6ac532becb
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -133,6 +133,8 @@ impl Parser {
}
fn statement(&mut self) -> ParseResult<Statement> {
self.skip_comments();
Ok(match &self.current.kind {
TokenKind::InlineHtml(html) => {
let s = Statement::InlineHtml(html.to_string());