diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-13 20:53:30 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-13 20:53:40 -0700 |
| commit | 1e99bbbe0a12b85800d316fcccd993591dde2431 (patch) | |
| tree | 3155893af8fbdb5b08472d039dc30c922c4c1ec3 | |
| parent | f415033fac70ec08cddd79b4bcecc99f68126c85 (diff) | |
Added fix for "_end"
| -rw-r--r-- | nomsu_compiler.lua | 2 | ||||
| -rw-r--r-- | nomsu_compiler.moon | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 330378f..6fa9ffd 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -208,7 +208,7 @@ compile = (tree)=> if i > 1 then lua\add "\n" line_lua = @compile(line) lua\add line_lua - unless line_lua\last(1) == ";" or line_lua\last(4)\match("[^a-zA-Z0-9]end$") + unless line_lua\last(1) == ";" or line_lua\last(4)\match("[^_a-zA-Z0-9]end$") lua\add ";" return lua |
