diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-20 03:09:58 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-20 03:09:58 -0700 |
| commit | 77d37aaf0f1dcd37939c10e7cd68db414efa6e07 (patch) | |
| tree | 78b7b9e7c7ecd9ce4b8e97d350a1005240f31040 /nomsu.moon | |
| parent | 6e46f042fdc30507b1add6432124d80f20dc86f5 (diff) | |
Fixed numbers.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -231,7 +231,7 @@ class NomsuCompiler longstring_error <- (({.+} ("" -> "Error while parsing Longstring")) => error) string_interpolation <- "\" %ws? (inline_functioncall / expression) %ws? "\" - number <- ({ {'-'? ([0-9]+ "." [0-9]+) / ("." [0-9]+) / ([0-9]+) } }) -> Number + number <- ({ {"-"? (([0-9]+ "." [0-9]+) / ("." [0-9]+) / ([0-9]+)) } }) -> Number -- Hack to allow %foo's to parse as "%foo" and "'s" separately variable <- ({ ("%" {%wordchar (!"'" %wordchar)*}) }) -> Var |
