diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 19:23:26 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-12-14 19:25:03 -0800 |
| commit | 83a40b7493b19e4b55167784e073e92733344b87 (patch) | |
| tree | 758bc8986c6985fad9aabfab5a713318ef180410 /nomsu.5.peg | |
| parent | a7adc8cbff9347606fc9c0e8d00d4af2b6b838f5 (diff) | |
Updating to support multiple method calls.
Diffstat (limited to 'nomsu.5.peg')
| -rw-r--r-- | nomsu.5.peg | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nomsu.5.peg b/nomsu.5.peg index 07c1973..e51f72d 100644 --- a/nomsu.5.peg +++ b/nomsu.5.peg @@ -122,7 +122,7 @@ inline_action (Action): inline_arg: inline_expression / inline_block inline_methodcall (MethodCall): (index_chain / noindex_inline_expression / "(" inline_block ")") - "|" inline_action + "|" inline_action (ws* ";" ws* inline_action)* action (Action): !section_division @@ -132,7 +132,11 @@ linesplit: (ws* "\")? eol nl_nodent ".." ws* arg: expression / inline_block / indented_block methodcall (MethodCall): (index_chain / noindex_inline_expression / indented_expression / "(" inline_block ")" / indented_block) - linesplit? "|" linesplit? action + linesplit? "|" + ((ws* inline_action ws* ";")* ws* action + / eol nl_indent + (action eol) (nl_nodent action eol)* + (%nl (ws* %nl)* nodent (comment / eol / unexpected_code))*) word: !number { operator_char+ / ident_char+ } |
