Fix grammar to accept more dictionaries

This commit is contained in:
Olivier 'reivilibre' 2020-12-31 21:53:05 +00:00
parent 3e8c8b703d
commit 2fb5612002

View File

@ -133,7 +133,7 @@ QuotedString:
; ;
UnquotedString: UnquotedString:
value=/[^\s\n,"()0-9]([^\n,"()]*[^\s\n,"()])?/ value=/[^]\s\n,"(){}[0-9=]([^]\n,"(){}[=]*[^]\s\n,"(){}[=])?/
; ;
DottedIdString: DottedIdString:
@ -158,12 +158,12 @@ BracketList[ws=' \t\n']:
']' ']'
; ;
BraceDict[ws=' \t']: BraceDict[ws=' \t\n']:
'{' '{'
pairs*=DictPair[','] pairs*=DictPair[',']
'}' '}'
; ;
DictPair: DictPair[ws=' \t\n']:
(key=KeyExpr) '=' (value=ValueExpr) (key=KeyExpr) '=' (value=ValueExpr)
; ;