mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
parser: skip comments in more places for now
This commit is contained in:
parent
0faf161ed9
commit
6ac532becb
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user