From 1e99bbbe0a12b85800d316fcccd993591dde2431 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Mar 2019 20:53:30 -0700 Subject: Added fix for "_end" --- nomsu_compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu_compiler.lua') 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 -- cgit v1.2.3