From 9cfabfd4359dbc85b88219bcc2d5f2f91008de93 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 20 Jul 2018 18:06:59 -0700 Subject: Fix to prevent blocks from recursively capturing themselves. --- nomsu.2.peg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nomsu.2.peg') 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): -- cgit v1.2.3