add a fix to pcall docs in 5.1
This commit is contained in:
parent
c5f36ac813
commit
20b9381eda
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,6 @@
|
||||
/lua*.html
|
||||
/build
|
||||
/src/fennel-ls/docs/generated/love2d.fnl
|
||||
/doc/lints.md
|
||||
/docs/lints.md
|
||||
/scratch.fnl
|
||||
/scratch-macros.fnl
|
||||
|
||||
3
Makefile
3
Makefile
@ -66,8 +66,7 @@ deps:
|
||||
$(FENNEL) $(FENNELFLAGS) tools/get-deps.fnl
|
||||
|
||||
selflint:
|
||||
$(FENNEL) $(FENNELFLAGS) src/fennel-ls.fnl --lint $(SRC)
|
||||
$(FENNEL) $(FENNELFLAGS) src/fennel-ls.fnl --lint $(shell find test -name "*.fnl")
|
||||
$(FENNEL) $(FENNELFLAGS) src/fennel-ls.fnl --lint $(SRC) $(shell find test -name "*.fnl")
|
||||
|
||||
count:
|
||||
cloc $(shell find src -name "*.fnl" | grep -v "generated")
|
||||
|
||||
@ -1045,7 +1045,7 @@ See function `next` for the caveats of modifying
|
||||
the table during its traversal."}}
|
||||
:pcall {:binding "pcall"
|
||||
:metadata {:fls/itemKind "Function"
|
||||
:fnl/arglist ["f" "arg1" "..."]
|
||||
:fnl/arglist ["f" "?arg1" "..."]
|
||||
:fnl/docstring "Calls function `f` with
|
||||
the given arguments in *protected mode*.
|
||||
This means that any error inside `f` is not propagated;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
;; auto-generated by `make docs` from fennel-ls. Contents come from
|
||||
;; https://www.lua.org/manual/5.4/manual.html
|
||||
;; Lua Lua 5.4 Reference Manual last updated Thu Jun 13 22:15:52 UTC 2024
|
||||
;; Lua Lua 5.4 Reference Manual last updated Wed May 21 21:09:59 UTC 2025
|
||||
(local docs {:_G {:binding "_G"
|
||||
:metadata {:fls/itemKind "Variable"
|
||||
:fnl/docstring "A global variable (not a function) that
|
||||
|
||||
@ -128,6 +128,11 @@
|
||||
signature (if (signature:find "table%.insert")
|
||||
(signature:gsub "%[pos -%]" "")
|
||||
signature)
|
||||
signature (if (signature:find "pcall .* arg1")
|
||||
(do
|
||||
(table.insert optional-args "arg1")
|
||||
(signature:gsub "arg1" "?arg1"))
|
||||
signature)
|
||||
;; For some reason, they use an html middot, but we want to use periods.
|
||||
signature (signature:gsub "···" "...")
|
||||
;; fix parens
|
||||
|
||||
Loading…
Reference in New Issue
Block a user