From 2fb56120026c29a9f47bc894d8420ff068eb9759 Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 31 Dec 2020 21:53:05 +0000 Subject: [PATCH] Fix grammar to accept more dictionaries --- scone/head/grammar/scoml.tx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scone/head/grammar/scoml.tx b/scone/head/grammar/scoml.tx index 9052865..eb9e6b8 100644 --- a/scone/head/grammar/scoml.tx +++ b/scone/head/grammar/scoml.tx @@ -133,7 +133,7 @@ QuotedString: ; UnquotedString: - value=/[^\s\n,"()0-9]([^\n,"()]*[^\s\n,"()])?/ + value=/[^]\s\n,"(){}[0-9=]([^]\n,"(){}[=]*[^]\s\n,"(){}[=])?/ ; DottedIdString: @@ -158,12 +158,12 @@ BracketList[ws=' \t\n']: ']' ; -BraceDict[ws=' \t']: +BraceDict[ws=' \t\n']: '{' pairs*=DictPair[','] '}' ; -DictPair: +DictPair[ws=' \t\n']: (key=KeyExpr) '=' (value=ValueExpr) ;