summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-05-21 15:39:02 +0100
committerBram Moolenaar <Bram@vim.org>2022-05-21 15:39:02 +0100
commitf79d9dd43f6fe05711d7e2616ab4b8bde2ccb089 (patch)
treecf41b3c62e71e9fca5ddc61636465ab5e05283a9 /runtime
parent2d8ed0203aedd5f6c22efa99394a3677c17c7a7a (diff)
patch 8.2.4989: cannot specify a function name for :defcompilev8.2.4989
Problem: Cannot specify a function name for :defcompile. Solution: Implement a function name argument for :defcompile.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 5a0e5bf880..479edc57c5 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -1210,7 +1210,14 @@ prefix if they do not exist at the time of compiling.
*:defc* *:defcompile*
:defc[ompile] Compile functions defined in the current script that
were not compiled yet.
- This will report errors found during the compilation.
+ This will report any errors found during compilation.
+
+:defc[ompile] {func}
+:defc[ompile] debug {func}
+:defc[ompile] profile {func}
+ Compile function {func}, if needed. Use "debug" and
+ "profile" to specify the compilation mode.
+ This will report any errors found during compilation.
*:disa* *:disassemble*
:disa[ssemble] {func} Show the instructions generated for {func}.