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.

7dba04f15c

Documentation changes only.

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
zeertzjq
2025-10-10 06:50:34 +08:00
parent 8e740db70c
commit ec8405c473

View File

@@ -5614,7 +5614,7 @@ To use it, execute this command: >
Nvim uses 256-color and |true-color| terminal capabilities wherever possible. 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. 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 This will display a list of syntax patterns that were used, sorted by the time
it took to match them against the text. 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 overhead to compute the time spent on syntax pattern
matching. 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 current window. Use a wider display to see more of
the output. the output.