From c1ec00d5fc4bab300280f64dc55de307f860aed4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 30 Oct 2017 14:08:23 -0700 Subject: Changed it so variables can't contain wordbreakers anymore. --- nomsu.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index ee7118e..b00560c 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -117,9 +117,9 @@ local nomsu = [=[ file <- ({{| shebang? number <- ({ (("-"? (([0-9]+ "." [0-9]+) / ("." [0-9]+) / ([0-9]+)))-> tonumber) }) -> Number - -- Variables can be nameless (i.e. just %) and can't contain apostrophes - -- which is a hack to allow %foo's to parse as "%foo" and "'s" separately - variable <- ({ ("%" { ((%wordbreaker+) / (%wordchar+))? }) }) -> Var + -- Variables can be nameless (i.e. just %) and can't contain wordbreakers like apostrophe + -- which is a hack to allow %'s to parse as "%" and "' s" separately + variable <- ({ ("%" { %wordchar* }) }) -> Var inline_list <- ({ {| ("[" %ws? ((inline_list_item comma)* inline_list_item comma?)? %ws? "]") -- cgit v1.2.3