aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 136b6ee..0c45258 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -118,9 +118,9 @@ nomsu = [=[
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? "]")