Skip to content

Commit b98f312

Browse files
committed
fix #1829
1 parent 75d4e9e commit b98f312

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# changelog
22

3+
## 3.6.7
4+
* `FIX` [#1829]
5+
6+
[#1829]: https://github.com/sumneko/lua-language-server/issues/1829
7+
38
## 3.6.6
49
`2023-1-17`
510
* `FIX` [#1825]

meta/3rd/love2d/library/love/event.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function love.event.push(n, a, b, c, d, e, f, ...) end
6666
---
6767
---[Open in Browser](https://love2d.org/wiki/love.event.quit)
6868
---
69-
---@overload fun('restart': string|'restart')
69+
---@overload fun(restart: string|'restart')
7070
---@param exitstatus? number # The program exit status to use when closing the application.
7171
function love.event.quit(exitstatus) end
7272

tools/love-api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ local function buildDocFunc(variant, overload)
137137
params[#params+1] = '...'
138138
else
139139
if param.name:find '^[\'"]' then
140-
params[#params+1] = ('%s%s: %s|%s'):format(param.name, getOptional(param), getTypeName(param.type), param.name)
140+
params[#params+1] = ('%s%s: %s|%s'):format(param.name:sub(2, -2), getOptional(param), getTypeName(param.type), param.name)
141141
else
142142
params[#params+1] = ('%s%s: %s'):format(param.name, getOptional(param), getTypeName(param.type))
143143
end

tools/lovr-api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ local function buildDocFunc(variant, overload)
132132
params[#params+1] = '...'
133133
else
134134
if param.name:find '^[\'"]' then
135-
params[#params+1] = ('%s%s: %s|%s'):format(param.name, getOptional(param), getTypeName(param.type), param.name)
135+
params[#params+1] = ('%s%s: %s|%s'):format(param.name:sub(2, -2), getOptional(param), getTypeName(param.type), param.name)
136136
else
137137
params[#params+1] = ('%s%s: %s'):format(param.name, getOptional(param), getTypeName(param.type))
138138
end

0 commit comments

Comments
 (0)