aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-13 20:53:30 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-13 20:53:40 -0700
commit1e99bbbe0a12b85800d316fcccd993591dde2431 (patch)
tree3155893af8fbdb5b08472d039dc30c922c4c1ec3 /nomsu_compiler.lua
parentf415033fac70ec08cddd79b4bcecc99f68126c85 (diff)
Added fix for "_end"
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index b5619d2..af0636b 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -255,7 +255,7 @@ compile = function(self, tree)
end
local line_lua = self:compile(line)
lua:add(line_lua)
- if not (line_lua:last(1) == ";" or line_lua:last(4):match("[^a-zA-Z0-9]end$")) then
+ if not (line_lua:last(1) == ";" or line_lua:last(4):match("[^_a-zA-Z0-9]end$")) then
lua:add(";")
end
end