1- *syntax.txt* For Vim version 9.1. Last change: 2026 Jan 23
1+ *syntax.txt* For Vim version 9.1. Last change: 2026 Jan 27
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2712,10 +2712,10 @@ package, arrange for files to be recognized as groff input (see
27122712 GNU troff differs from older AT&T n/troff programs (that you may still find in
27132713Solaris or Plan 9) by extending the *roff language syntax. For example, in
27142714AT&T troff, you access the count of years since 1900 with the escape sequence
2715- \(yr. In groff you can do the same, which it recognizes for compatibility, or
2716- use groff's extended syntax, \[yr]. AT&T troff documented the yr register as
2717- storing the "last two digits of current year", but had a Y2K problem; in
2718- groff, you can access the Gregorian year correctly: \[year]. In groff, font,
2715+ \n (yr. In groff you can do the same, which it recognizes for compatibility,
2716+ or use groff's extended syntax, \n [yr]. AT&T troff documented the yr register
2717+ as storing the "last two digits of current year", but had a Y2K problem; in
2718+ groff, you can access the Gregorian year correctly: \n [year]. In groff, font,
27192719register, macro, string, and request names can exceed two characters; for
27202720example, with groff's mm package, the control lines ".VERBON" and ".VERBOFF"
27212721call macros of those names to bracket displays of "verbatim" content.
@@ -3223,7 +3223,7 @@ Pascal. Use this if you don't use assembly and Pascal: >
32233223
32243224 PYTHON *python.vim* *ft-python-syntax*
32253225
3226- There are six options to control Python syntax highlighting.
3226+ There are seven options to control Python syntax highlighting.
32273227
32283228For highlighted numbers: >
32293229 :let python_no_number_highlight = 1
@@ -3243,10 +3243,13 @@ The first option implies the second one.
32433243For highlighted trailing whitespace and mix of spaces and tabs: >
32443244 :let python_space_error_highlight = 1
32453245
3246+ For highlighted built-in constants distinguished from other keywords: >
3247+ :let python_constant_highlight = 1
3248+
32463249 If you want all possible Python highlighting: >
32473250 :let python_highlight_all = 1
3248- This has the same effect as setting python_space_error_highlight and
3249- unsetting all the other ones.
3251+ This has the same effect as setting python_space_error_highlight,
3252+ python_constant_highlight and unsetting all the other ones.
32503253
32513254If you use Python 2 or straddling code (Python 2 and 3 compatible),
32523255you can enforce the use of an older syntax file with support for
0 commit comments