Skip to content

Commit 30deedc

Browse files
authored
Merge branch 'master' into fix/type_narrow
2 parents cd5ebb5 + 08dd0ca commit 30deedc

File tree

15 files changed

+847
-598
lines changed

15 files changed

+847
-598
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

711
## 3.10.5

locale/en-us/script.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,10 @@ CLI_DOC_INITING =
656656
'Loading documents ...'
657657
CLI_DOC_DONE =
658658
[[
659-
Document exporting completed!
660-
Raw data: {}
661-
Markdown(example): {}
659+
Documentation exported:
662660
]]
661+
CLI_DOC_WORKING =
662+
'Building docs...'
663663

664664
TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
665665
'Type `{child}` cannot match enumeration type of `{parent}`'

locale/pt-br/script.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,10 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
654654
'Starting {} worker tasks, progress output will be disabled. This may take a few minutes.'
655655
CLI_DOC_INITING = -- TODO: need translate!
656656
'Loading documents ...'
657-
CLI_DOC_DONE = -- TODO: need translate!
658-
[[
659-
Document exporting completed!
660-
Raw data: {}
661-
Markdown(example): {}
662-
]]
657+
CLI_DOC_DONE =
658+
'Documentos exportados:'
659+
CLI_DOC_WORKING =
660+
'Construindo docs...'
663661

664662
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
665663
'Type `{child}` cannot match enumeration type of `{parent}`'

locale/zh-cn/script.lua

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -654,12 +654,10 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
654654
'Starting {} worker tasks, progress output will be disabled. This may take a few minutes.'
655655
CLI_DOC_INITING =
656656
'加载文档 ...'
657-
CLI_DOC_DONE =
658-
[[
659-
文档导出完成!
660-
原始数据: {}
661-
Markdown(演示用): {}
662-
]]
657+
CLI_DOC_DONE = -- TODO: need translate!
658+
'文档导出完成!'
659+
CLI_DOC_WORKING =
660+
'正在生成文档...'
663661

664662
TYPE_ERROR_ENUM_GLOBAL_DISMATCH =
665663
'类型 `{child}` 无法匹配 `{parent}` 的枚举类型'

locale/zh-tw/script.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,9 @@ CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate!
655655
CLI_DOC_INITING = -- TODO: need translate!
656656
'Loading documents ...'
657657
CLI_DOC_DONE = -- TODO: need translate!
658-
[[
659-
Document exporting completed!
660-
Raw data: {}
661-
Markdown(example): {}
662-
]]
663-
658+
'Document exporting completed!'
659+
CLI_DOC_WORKING =
660+
'正在產生文件...'
664661
TYPE_ERROR_ENUM_GLOBAL_DISMATCH = -- TODO: need translate!
665662
'Type `{child}` cannot match enumeration type of `{parent}`'
666663
TYPE_ERROR_ENUM_GENERIC_UNSUPPORTED = -- TODO: need translate!

meta/template/basic.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function select(index, ...) end
210210

211211
---@version 5.1
212212
---#DES 'setfenv'
213-
---@param f async fun(...):...|integer
213+
---@param f (async fun(...):...)|integer
214214
---@param table table
215215
---@return function
216216
function setfenv(f, table) end

0 commit comments

Comments
 (0)