aboutsummaryrefslogtreecommitdiff
path: root/nomsu_tree.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-04-30 14:50:25 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-04-30 14:50:43 -0700
commit35a553918568cd72a0445251bc6b170ed4201557 (patch)
treecfdba2203c8de4edae41f3a7af98997672b42738 /nomsu_tree.lua
parentbf24824660497189da1a7d03b524e648271b4d03 (diff)
Fix for math expression parsing
Diffstat (limited to 'nomsu_tree.lua')
-rw-r--r--nomsu_tree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_tree.lua b/nomsu_tree.lua
index 93588c4..cba4fed 100644
--- a/nomsu_tree.lua
+++ b/nomsu_tree.lua
@@ -153,7 +153,7 @@ Tree("Block", {
return nomsu
end
})
-local math_expression = re.compile([[ "%" (" " [*/^+-] " %")+ ]])
+local math_expression = re.compile([[ "%" (" " [*/^+-] " %")+ !. ]])
Tree("Action", {
as_lua = function(self, nomsu)
local stub = self:get_stub()