aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 2521ce1..dfbe3b1 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -406,7 +406,8 @@ compile = function(self, tree)
end
return lua
elseif "Number" == _exp_0 then
- return LuaCode:from(tree.source, tostring(tree[1]))
+ local number = tostring(tree[1]):gsub("_", "")
+ return LuaCode:from(tree.source, number)
elseif "Var" == _exp_0 then
return LuaCode:from(tree.source, tree:as_var():as_lua_id())
elseif "FileChunks" == _exp_0 then