Skip to content

Commit df27829

Browse files
committedJul 26, 2021
fix #620
1 parent 0b5acbf commit df27829

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed
 

‎changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* `NEW` config supports prop
55
* `FIX` [#612](https://github.com/sumneko/lua-language-server/issues/612)
66
* `FIX` [#613](https://github.com/sumneko/lua-language-server/issues/613)
7+
* `FIX` [#620](https://github.com/sumneko/lua-language-server/issues/620)
78

89
## 2.3.2
910
`2021-7-21`

‎meta/template/basic.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function ipairs(t) end
7777
---| '"t"' # ---#DESTAIL 'loadmode.t'
7878
---|>'"bt"' # ---#DESTAIL 'loadmode.bt'
7979

80-
---#if VERSION <= 5.1 then
80+
---#if VERSION <= 5.1 and not JIT then
8181
---#DES 'load<5.1'
8282
---@param func function
8383
---@param chunkname? string
@@ -95,7 +95,7 @@ function load(func, chunkname) end
9595
function load(chunk, chunkname, mode, env) end
9696
---#end
9797

98-
---#if VERSION <= 5.1 then
98+
---#if VERSION <= 5.1 and not JIT then
9999
---#DES 'loadfile'
100100
---@param filename? string
101101
---@return function

‎meta/template/debug.lua

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ function debug.gethook(co) end
4747
---|+'"S"' # ---#DESTAIL 'infowhat.S'
4848
---|+'"l"' # ---#DESTAIL 'infowhat.l'
4949
---|+'"t"' # ---#DESTAIL 'infowhat.t'
50-
---#if VERSION <= 5.1 then
51-
---|+'"u<5.1"' # ---#DESTAIL 'infowhat.u<5.1'
50+
---#if VERSION <= 5.1 and not JIT then
51+
---|+'"u"' # ---#DESTAIL 'infowhat.u<5.1'
5252
---#else
53-
---|+'"u>5.2"' # ---#DESTAIL 'infowhat.u>5.2'
53+
---|+'"u"' # ---#DESTAIL 'infowhat.u>5.2'
5454
---#end
5555
---|+'"f"' # ---#DESTAIL 'infowhat.f'
5656
---#if VERSION >= 5.4 then
@@ -66,7 +66,7 @@ function debug.gethook(co) end
6666
---@return debuginfo
6767
function debug.getinfo(thread, f, what) end
6868

69-
---#if VERSION <= 5.1 then
69+
---#if VERSION <= 5.1 and not JIT then
7070
---#DES 'debug.getlocal<5.1'
7171
---@overload fun(level: integer, index: integer):string, any
7272
---@param thread thread
@@ -109,7 +109,7 @@ function debug.getupvalue(f, up) end
109109
---@return any
110110
---@return boolean
111111
function debug.getuservalue(u, n) end
112-
---#elseif VERSION >= 5.2 then
112+
---#elseif VERSION >= 5.2 or JIT then
113113
---#DES 'debug.getuservalue<5.3'
114114
---@param u userdata
115115
---@return any
@@ -173,7 +173,7 @@ function debug.setupvalue(f, up, value) end
173173
---@param n integer
174174
---@return userdata udata
175175
function debug.setuservalue(udata, value, n) end
176-
---#elseif VERSION >= 5.2 then
176+
---#elseif VERSION >= 5.2 or JIT then
177177
---#DES 'debug.setuservalue<5.3'
178178
---@param udata userdata
179179
---@param value any
@@ -188,14 +188,14 @@ function debug.setuservalue(udata, value) end
188188
---@return string message
189189
function debug.traceback(thread, message, level) end
190190

191-
---@version >5.2
191+
---@version >5.2, JIT
192192
---#DES 'debug.upvalueid'
193193
---@param f function
194194
---@param n integer
195195
---@return lightuserdata id
196196
function debug.upvalueid(f, n) end
197197

198-
---@version >5.2
198+
---@version >5.2, JIT
199199
---#DES 'debug.upvaluejoin'
200200
---@param f1 function
201201
---@param n1 integer

‎meta/template/math.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function math.frexp(x) end
9999
---@return number
100100
function math.ldexp(m, e) end
101101

102-
---#if VERSION <= 5.1 then
102+
---#if VERSION <= 5.1 and not JIT then
103103
---#DES 'math.log<5.1'
104104
---@param x number
105105
---@return number

‎meta/template/string.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function string.pack(fmt, v1, v2, ...) end
9696
---@return integer
9797
function string.packsize(fmt) end
9898

99-
---#if VERSION <= 5.1 then
99+
---#if VERSION <= 5.1 and not JIT then
100100
---#DES 'string.rep<5.1'
101101
---@param s string
102102
---@param n integer

‎meta/template/table.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function table.maxn(table) end
3535
---@return table a2
3636
function table.move(a1, f, e, t, a2) end
3737

38-
---@version >5.2
38+
---@version >5.2, JIT
3939
---#DES 'table.pack'
4040
---@return table
4141
function table.pack(...) end
@@ -51,7 +51,7 @@ function table.remove(list, pos) end
5151
---@param comp fun(a: any, b: any):boolean
5252
function table.sort(list, comp) end
5353

54-
---@version >5.2
54+
---@version >5.2, JIT
5555
---#DES 'table.unpack'
5656
---@param list table
5757
---@param i? integer

0 commit comments

Comments
 (0)
Please sign in to comment.