aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-20 03:09:58 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-20 03:09:58 -0700
commit77d37aaf0f1dcd37939c10e7cd68db414efa6e07 (patch)
tree78b7b9e7c7ecd9ce4b8e97d350a1005240f31040 /nomsu.moon
parent6e46f042fdc30507b1add6432124d80f20dc86f5 (diff)
Fixed numbers.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 77f9672..22a72df 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -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