generator.lua: add function to repair default values

This commit is contained in:
Victor Bombi
2020-09-24 12:32:36 +02:00
parent 6ee1d4c3fc
commit 59e6a69d88
2 changed files with 77 additions and 7 deletions

View File

@@ -113,6 +113,7 @@ local function strsplit(str, pat)
end
return t,t2
end
M.strsplit = strsplit
local function split_comment(line)
local comment = line:match("(%s*//.*)") --or ""
line = line:gsub("%s*//.*","")