Fix grammar to accept more dictionaries
This commit is contained in:
parent
3e8c8b703d
commit
2fb5612002
@ -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)
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user