aboutsummaryrefslogtreecommitdiff
path: root/nomsu.peg
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.peg')
-rw-r--r--nomsu.peg2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.peg b/nomsu.peg
index e5f6c56..90becb7 100644
--- a/nomsu.peg
+++ b/nomsu.peg
@@ -88,7 +88,7 @@ number (Number): (("-"? (([0-9]+ "." [0-9]+) / ("." [0-9]+) / ([0-9]+)))-> tonum
-- Variables can be nameless (i.e. just %) and can't contain operators like apostrophe
-- which is a hack to allow %'s to parse as "%" and "' s" separately
-variable (Var): "%" { ((!"'" %operator) / plain_word)* }
+variable (Var): "%" { (plain_word ((!"'" %operator) / plain_word)*)? }
inline_list (List):
!('[..]')