From: G. Branden Robinson Date: Sun, 25 Jan 2026 15:55:20 +0000 (+0000) Subject: runtime(doc): Fix erroneous *roff syntax examples X-Git-Tag: v9.1.2110~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e914ada32334af67604c9791aa4149a74ab0d1eb;p=thirdparty%2Fvim.git runtime(doc): Fix erroneous *roff syntax examples Problem dates back at least to commit 071d4279d6, Vim 7.0001 (2004). The examples shown were of special character interpolation syntax, not ("number") register interpolation syntax. Sources: * https://www.gnu.org/software/groff/manual/groff.html.node/Built_002din-Registers.html * https://github.com/mamccollum/troff-resources/blob/main/cstr-54.pdf closes: #19243 Signed-off-by: G. Branden Robinson Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 9b0f34c3eb..501dd94578 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2026 Jan 23 +*syntax.txt* For Vim version 9.1. Last change: 2026 Jan 25 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2712,10 +2712,10 @@ package, arrange for files to be recognized as groff input (see GNU troff differs from older AT&T n/troff programs (that you may still find in Solaris or Plan 9) by extending the *roff language syntax. For example, in AT&T troff, you access the count of years since 1900 with the escape sequence -\(yr. In groff you can do the same, which it recognizes for compatibility, or -use groff's extended syntax, \[yr]. AT&T troff documented the yr register as -storing the "last two digits of current year", but had a Y2K problem; in -groff, you can access the Gregorian year correctly: \[year]. In groff, font, +\n(yr. In groff you can do the same, which it recognizes for compatibility, +or use groff's extended syntax, \n[yr]. AT&T troff documented the yr register +as storing the "last two digits of current year", but had a Y2K problem; in +groff, you can access the Gregorian year correctly: \n[year]. In groff, font, register, macro, string, and request names can exceed two characters; for example, with groff's mm package, the control lines ".VERBON" and ".VERBOFF" call macros of those names to bracket displays of "verbatim" content.