schemaparse: ignore line comments in dictionaries

This commit is contained in:
Emery Hemingway 2024-05-22 18:44:16 +03:00
parent ea6c8118e8
commit 921acb6b21
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ const parser = peg("Schema", p: ParseState):
var node = initRecord(toSymbol"tuplePrefix", toPreserves fields, tail)
pushStack node
DictionaryPattern <- '{' * *(S * >Value * S * ':' * S * NamedSimplePattern * ?',') * S * '}':
DictionaryPattern <- '{' * S * *(*LineComment * >Value * S * ':' * S * NamedSimplePattern * ?',' * S) * '}':
var dict = initDictionary()
for i in countDown(pred capture.len, 1):
let key = toSymbol capture[i].s