mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
parser: skip more comments...
This commit is contained in:
parent
d97e23db94
commit
ab1adb19a0
@ -6,6 +6,8 @@ use super::{Parser, ParseResult};
|
||||
|
||||
impl Parser {
|
||||
pub(crate) fn block(&mut self, until: &TokenKind) -> ParseResult<Block> {
|
||||
self.skip_comments();
|
||||
|
||||
let mut block = Block::new();
|
||||
|
||||
while ! self.is_eof() && &self.current.kind != until {
|
||||
|
Loading…
x
Reference in New Issue
Block a user