diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-22 13:20:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-22 13:20:43 +0800 |
commit | ff59147f34b74cf47c474f370463c4ff7ffc0d0c (patch) | |
tree | 3d7090f9778100c5a8cad75407a0106984dbb988 /tools/love-api.lua | |
parent | bb4b4391dfdb7ee22bd464edd1321429d4906028 (diff) | |
download | lua-language-server-ff59147f34b74cf47c474f370463c4ff7ffc0d0c.zip |
resolve #614
Diffstat (limited to 'tools/love-api.lua')
-rw-r--r-- | tools/love-api.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/love-api.lua b/tools/love-api.lua index 67cebeca..bb7f6c8e 100644 --- a/tools/love-api.lua +++ b/tools/love-api.lua @@ -204,6 +204,11 @@ local function buildFile(class, defs) end end + if defs.version then + text[#text+1] = '' + text[#text+1] = ('return %s'):format(class) + end + text[#text+1] = '' fsu.saveFile(filePath, table.concat(text, '\n')) |