diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 18:06:59 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-20 18:07:12 -0700 |
| commit | 9cfabfd4359dbc85b88219bcc2d5f2f91008de93 (patch) | |
| tree | 878e43b83f948f4eee48702e6cf2005e66dd396e | |
| parent | 24b8649c3391e35104a492d8546ce197cbdc5068 (diff) | |
Fix to prevent blocks from recursively capturing themselves.
| -rw-r--r-- | nomsu.2.peg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nomsu.2.peg b/nomsu.2.peg index f70cc3c..a16474d 100644 --- a/nomsu.2.peg +++ b/nomsu.2.peg @@ -22,7 +22,9 @@ eol_comment: section_division: ("~")^+3 eol -inline_block (Block): +inline_block: + "(" %ws* inline_block %ws* ")" / raw_inline_block +raw_inline_block (Block): "(" %ws* inline_block %ws* ")" / ":" %ws* ((inline_statement (%ws* ";" %ws* inline_statement)*) / !(eol nl_indent)) chunk (Block): |
