schemaparse: parse them commas
This commit is contained in:
parent
c83b78aef7
commit
218ca7a669
|
@ -239,7 +239,7 @@ const parser = peg("Schema", p: ParseState):
|
||||||
var node = initRecord(toSymbol"tuplePrefix", toPreserve fields, tail)
|
var node = initRecord(toSymbol"tuplePrefix", toPreserve fields, tail)
|
||||||
pushStack node
|
pushStack node
|
||||||
|
|
||||||
DictionaryPattern <- '{' * S * *(>Value * S * ':' * S * NamedSimplePattern * S) * '}':
|
DictionaryPattern <- '{' * S * *(>Value * S * ':' * S * NamedSimplePattern * ?',' * S) * '}':
|
||||||
var dict = initDictionary(void)
|
var dict = initDictionary(void)
|
||||||
for i in countDown(pred capture.len, 1):
|
for i in countDown(pred capture.len, 1):
|
||||||
let key = toSymbol capture[i].s
|
let key = toSymbol capture[i].s
|
||||||
|
|
Loading…
Reference in New Issue