Skip to content

Commit 6983695

Browse files
authored
Merge pull request #2482 from h-east/update-syntax
Update syntax.{txt,jax}
2 parents e317b2a + 3eee2eb commit 6983695

2 files changed

Lines changed: 28 additions & 20 deletions

File tree

doc/syntax.jax

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2026 Jan 23
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2026 Jan 27
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -2640,14 +2640,15 @@ nroff 構文ファイルは、AT&T n/troff でそのまま使用できる。Linu
26402640
26412641
GNU troff は、*roff 言語構文を拡張することで、古い AT&T n/troff プログラム
26422642
(Solaris や Plan 9 にまだ残っているかもしれない) とは異なる。例えば、AT&T
2643-
troff では、1900 年からの年数にはエスケープシーケンス \(yr でアクセスする。
2644-
groff でも同様にエスケープシーケンス \(yr を使用してアクセスでき、互換性のため
2645-
に認識される。あるいは、groff の拡張構文 \[yr] を使用できる。AT&T troff では、
2646-
yr レジスタは "現在の年の下 2 桁" を格納すると説明されていたが、Y2K 問題があっ
2647-
た。groff では、\[year] でグレゴリオ暦の年を正しくアクセスできる。groff では、
2648-
フォント名、レジスタ名、マクロ名、文字列名、リクエスト名は 2 文字を超えること
2649-
ができる。例えば、groff の mm パッケージでは、制御行 ".VERBON" と".VERBOFF"
2650-
は、これらの名前のマクロを呼び出して、"verbatim" な内容の表示を囲む。
2643+
troff では、1900 年からの年数にはエスケープシーケンス \n(yr でアクセスする。
2644+
groff でも同様にエスケープシーケンス \n(yr を使用してアクセスでき、互換性のた
2645+
めに認識される。あるいは、groff の拡張構文 \n[yr] を使用できる。AT&T troff で
2646+
は、yr レジスタは "現在の年の下 2 桁" を格納すると説明されていたが、Y2K 問題が
2647+
あった。groff では、\n[year] でグレゴリオ暦の年を正しくアクセスできる。groff
2648+
では、フォント名、レジスタ名、マクロ名、文字列名、リクエスト名は 2 文字を超え
2649+
ることができる。例えば、groff の mm パッケージでは、制御行 ".VERBON" と
2650+
".VERBOFF" は、これらの名前のマクロを呼び出して、"verbatim" な内容の表示を囲
2651+
む。
26512652

26522653
g/troffによって得られる最良の整形された出力を得るには、スペースと句読点に関す
26532654
るいくつかの単純なルールに従うべきである。
@@ -3139,7 +3140,7 @@ PROGRESS *progress.vim* *ft-progress-syntax*
31393140
31403141
PYTHON *python.vim* *ft-python-syntax*
31413142

3142-
Python構文ハイライトをコントロールするオプションは 6 つある。
3143+
Python構文ハイライトをコントロールするオプションは 7 つある。
31433144

31443145
数字のハイライト: >
31453146
:let python_no_number_highlight = 1
@@ -3156,13 +3157,17 @@ doctest とその中のコードのハイライト: >
31563157
:let python_no_doctest_code_highlight = 1
31573158
最初のオプションは 2 番目のオプションも含む。
31583159

3160+
31593161
行末の空白と、スペースとタブの混在のハイライト: >
31603162
:let python_space_error_highlight = 1
31613163
3164+
他のキーワードとは区別される組み込み定数のハイライト: >
3165+
:let python_constant_highlight = 1
3166+
31623167
全てのハイライトを有効化させるには: >
31633168
:let python_highlight_all = 1
3164-
これは python_space_error_highlight を設定し、他のすべての設定を解除するのと同
3165-
じ効果がある
3169+
これはpython_space_error_highlight、python_constant_highlight を設定し、その
3170+
他すべてを設定解除するのと同じ効果がある
31663171

31673172
Python 2 や straddling code (Python 2 と 3 の互換性) を使っている場合、Python 2
31683173
と Python 3.5 までをサポートした古い構文ファイルの使用を強制することができる >

en/syntax.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
27132713
Solaris or Plan 9) by extending the *roff language syntax. For example, in
27142714
AT&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,
27192719
register, macro, string, and request names can exceed two characters; for
27202720
example, with groff's mm package, the control lines ".VERBON" and ".VERBOFF"
27212721
call 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

32283228
For highlighted numbers: >
32293229
:let python_no_number_highlight = 1
@@ -3243,10 +3243,13 @@ The first option implies the second one.
32433243
For 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

32513254
If you use Python 2 or straddling code (Python 2 and 3 compatible),
32523255
you can enforce the use of an older syntax file with support for

0 commit comments

Comments
 (0)