From 3e89092833a6d407e711fe4ae5f44474ff34cf64 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Jan 2019 17:15:51 -0800 Subject: Some changes to the error API, a fix for statement block parsing, and replacing ((foo 1 baz)'s meaning) with $(foo 1 baz). --- nomsu.6.peg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nomsu.6.peg') diff --git a/nomsu.6.peg b/nomsu.6.peg index 344f679..9a9393f 100644 --- a/nomsu.6.peg +++ b/nomsu.6.peg @@ -99,14 +99,14 @@ indented_index_chain <- -- Actions need 1 argument and either another argument or a word. inline_action (Action) <- !section_division - ( word (ws* arg)* - / inline_expression ((ws* arg)+ / "(" ws* ")")) + ( word (ws* inline_arg)* + / inline_expression ((ws* inline_arg)+ / "(" ws* ")")) inline_arg <- inline_expression / word action (Action) <- !section_division ( word ((linesplit / ws*) arg)* - / arg (((linesplit / ws*) arg)+ / "(" ws* ")")) + / !statement_block arg (((linesplit / ws*) arg)+ / "(" ws* ")")) arg <- expression / indented_naked_expression / word linesplit <- eol nl_nodent ".." ws* -- cgit v1.2.3