parser: skip comments inside of arrays

This commit is contained in:
Ryan Chandler 2022-08-08 23:44:11 +01:00
parent 1d5906bc08
commit 56310906a8
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -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)?;