diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 18:48:12 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 18:48:12 -0800 |
| commit | 48b27d4b1ac2c39cbbc19af6600ca1ac28ac8be3 (patch) | |
| tree | 0c39b4176c2255ea4825e7e84ae2f02201345867 | |
| parent | 425f4ed7a7be81389e591129523a8b1a08290ba7 (diff) | |
Fixed an error in the peg for dicts.
| -rw-r--r-- | nomsu.peg | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 :} |} |
