diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-30 14:08:23 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-30 14:08:23 -0700 |
| commit | c1ec00d5fc4bab300280f64dc55de307f860aed4 (patch) | |
| tree | 7bd4b24b74cb6ff5f7e0cf95d6f4bd1745c02359 /nomsu.lua | |
| parent | 60a85bbd8ba7daa22e9bef48037e2480cc06dae1 (diff) | |
Changed it so variables can't contain wordbreakers anymore.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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? "]") |
