mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
parser: skip comments inside of arrays
This commit is contained in:
parent
1d5906bc08
commit
56310906a8
@ -1082,6 +1082,8 @@ impl Parser {
|
||||
let mut items = Vec::new();
|
||||
self.next();
|
||||
|
||||
self.skip_comments();
|
||||
|
||||
while self.current.kind != TokenKind::RightBracket {
|
||||
let mut key = None;
|
||||
let mut value = self.expression(0)?;
|
||||
|
Loading…
Reference in New Issue
Block a user