aboutsummaryrefslogtreecommitdiff
path: root/nomsu.peg
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-11 18:48:12 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-11 18:48:12 -0800
commit48b27d4b1ac2c39cbbc19af6600ca1ac28ac8be3 (patch)
tree0c39b4176c2255ea4825e7e84ae2f02201345867 /nomsu.peg
parent425f4ed7a7be81389e591129523a8b1a08290ba7 (diff)
Fixed an error in the peg for dicts.
Diffstat (limited to 'nomsu.peg')
-rw-r--r--nomsu.peg6
1 files changed, 4 insertions, 2 deletions
diff --git a/nomsu.peg b/nomsu.peg
index c7a43c7..9920665 100644
--- a/nomsu.peg
+++ b/nomsu.peg
@@ -85,8 +85,10 @@ indented_dict (Dict):
|}
(dedent / (("" -> "Error while parsing dict") => error))
dict_line:
- (inline_dict_item (comma inline_dict_item)* (comma (functioncall / expression)?)?)
- / {| {:dict_key: inline_expression / word :} %ws* "=" %ws* {:dict_value: functioncall / expression :} |}
+ (inline_dict_item comma)* (
+ (inline_dict_item comma)
+ /{| {:dict_key: inline_expression / word :} %ws* "=" %ws* {:dict_value: functioncall / expression :} |}
+ )
inline_dict_item:
{| {:dict_key: inline_expression / word :} %ws* "=" %ws* {:dict_value: inline_functioncall / inline_expression :} |}