From ec8405c473022c0bab26e8c0e3d686832797c29f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 10 Oct 2025 06:50:34 +0800 Subject: [PATCH] vim-patch:partial:7dba04f: runtime(doc,vim): Update base syntax, match full :syntime command - Use the optional tail command-name spec at :help :syntime. - Match full :syntime command and highlight args. https://github.com/vim/vim/commit/7dba04f15cc43562c67c4cd0db82c2165c1cdb40 Documentation changes only. Co-authored-by: Doug Kearns --- runtime/doc/syntax.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 4a91a70690..8cf72ff134 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -5614,7 +5614,7 @@ To use it, execute this command: > Nvim uses 256-color and |true-color| terminal capabilities wherever possible. ============================================================================== -18. When syntax is slow *:syntime* +18. When syntax is slow *:synti* *:syntime* This is aimed at authors of a syntax file. @@ -5631,15 +5631,15 @@ this sequence: > This will display a list of syntax patterns that were used, sorted by the time it took to match them against the text. -:syntime on Start measuring syntax times. This will add some +:synti[me] on Start measuring syntax times. This will add some overhead to compute the time spent on syntax pattern matching. -:syntime off Stop measuring syntax times. +:synti[me] off Stop measuring syntax times. -:syntime clear Set all the counters to zero, restart measuring. +:synti[me] clear Set all the counters to zero, restart measuring. -:syntime report Show the syntax items used since ":syntime on" in the +:synti[me] report Show the syntax items used since ":syntime on" in the current window. Use a wider display to see more of the output.