Skip to content

Commit

Permalink
Merge branch 'master' into fix/type_narrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko authored Sep 5, 2024
2 parents cd5ebb5 + 08dd0ca commit 30deedc
Show file tree
Hide file tree
Showing 15 changed files with 847 additions and 598 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
* `NEW` Custom documentation exporter
* `NEW` Setting: `Lua.docScriptPath`: Path to a script that overrides `cli.doc.export`, allowing user-specified documentation exporting.
* `FIX` Fix `VM.OnCompileFunctionParam` function in plugins
* `FIX` Lua 5.1: fix incorrect warning when using setfenv with an int as first parameter
* `FIX` Improve type narrow by checking exact match on literal type params

## 3.10.5
Expand Down
6 changes: 3 additions & 3 deletions locale/en-us/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,10 @@ CLI_DOC_INITING =
'Loading documents ...'
CLI_DOC_DONE =
[[
Document exporting completed!
Raw data: {}
Markdown(example): {}
Documentation exported:
]]
CLI_DOC_WORKING =
'Building docs...'

TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
'Type `{child}` cannot match enumeration type of `{parent}`'
Expand Down
10 changes: 4 additions & 6 deletions locale/pt-br/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,10 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
'Starting {} worker tasks, progress output will be disabled. This may take a few minutes.'
CLI_DOC_INITING = -- TODO: need translate!
'Loading documents ...'
CLI_DOC_DONE = -- TODO: need translate!
[[
Document exporting completed!
Raw data: {}
Markdown(example): {}
]]
CLI_DOC_DONE =
'Documentos exportados:'
CLI_DOC_WORKING =
'Construindo docs...'

TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
'Type `{child}` cannot match enumeration type of `{parent}`'
Expand Down
10 changes: 4 additions & 6 deletions locale/zh-cn/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -654,12 +654,10 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
'Starting {} worker tasks, progress output will be disabled. This may take a few minutes.'
CLI_DOC_INITING =
'加载文档 ...'
CLI_DOC_DONE =
[[
文档导出完成!
原始数据: {}
Markdown(演示用): {}
]]
CLI_DOC_DONE = -- TODO: need translate!
'文档导出完成!'
CLI_DOC_WORKING =
'正在生成文档...'

TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
'类型 `{child}` 无法匹配 `{parent}` 的枚举类型'
Expand Down
9 changes: 3 additions & 6 deletions locale/zh-tw/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,9 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
CLI_DOC_INITING = -- TODO: need translate!
'Loading documents ...'
CLI_DOC_DONE = -- TODO: need translate!
[[
Document exporting completed!
Raw data: {}
Markdown(example): {}
]]

'Document exporting completed!'
CLI_DOC_WORKING =
'正在產生文件...'
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
'Type `{child}` cannot match enumeration type of `{parent}`'
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED = -- TODO: need translate!
Expand Down
2 changes: 1 addition & 1 deletion meta/template/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function select(index, ...) end

---@version 5.1
---#DES 'setfenv'
---@param f async fun(...):...|integer
---@param f (async fun(...):...)|integer
---@param table table
---@return function
function setfenv(f, table) end
Expand Down
Loading

0 comments on commit 30deedc

Please sign in to comment.