schemaparse: ignore line comments in dictionaries
This commit is contained in:
parent
ea6c8118e8
commit
921acb6b21
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue