Skip to content

Commit b89dcdd

Browse files
authored
Merge pull request #1671 from vim-jp/hh-update-syntax
Update syntax.{txt,jax}
2 parents c2a3164 + bb94ae8 commit b89dcdd

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

doc/syntax.jax

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 Aug 22
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 Aug 31
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -180,8 +180,7 @@ NOTE: 長い行があって表示が遅く、構文ハイライトをオフに
180180
1. 上同様、'runtimepath' に示されるユーザーディレクトリを作成する。
181181

182182
2. "after/syntax" というディレクトリを作成する。UNIXの例: >
183-
mkdir ~/.vim/after
184-
mkdir ~/.vim/after/syntax
183+
mkdir -p ~/.vim/after/syntax
185184
186185
3. 追加設定を行うコマンドを含む Vim script ファイルを作成する。例として、C言語
187186
のコメントの色を変更するには: >
@@ -2098,6 +2097,21 @@ Note これら 3 つの変数は HTML 構文ファイルで維持されること
20982097
10 である。大きな数値を使用すると、再描画が遅くなる可能性があるという欠点があ
20992098
る。
21002099

2100+
Java プラットフォームへの重要な変更は、リリース用に実装されたり、プレビュー機
2101+
能として提供される JDK Enhancement Proposals (JEPs) の形で徐々に導入される。こ
2102+
のような機能がプラットフォームに統合されるか、この取り組みから取り下げられるま
2103+
でには、複数の JEP とリリースサイクルが必要になる場合がある。アーリーアダプター
2104+
に対応するため Vim には実装されている構文関連のプレビュー機能に対するオプショ
2105+
ンのサポートがある。以下のようにプレビュー機能番号のリストを指定して、これをリ
2106+
クエストできる: >
2107+
:let g:java_syntax_previews = [430]
2108+
2109+
サポートされている JEP 番号は以下の表から取得される:
2110+
`430`: String Templates [JDK 21]
2111+
2112+
Note 特定のプレビュー機能が Java プラットフォームに統合されると、すぐにそのエ
2113+
ントリはテーブルから削除され、関連するオプション機能は廃止されることに注意。
2114+
21012115

21022116
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
21032117
*g:vim_json_warnings*

en/syntax.txt

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2024 Aug 22
1+
*syntax.txt* For Vim version 9.1. Last change: 2024 Aug 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -179,8 +179,7 @@ add a few items or change the highlighting, follow these steps:
179179
1. Create your user directory from 'runtimepath', see above.
180180

181181
2. Create a directory in there called "after/syntax". For Unix: >
182-
mkdir ~/.vim/after
183-
mkdir ~/.vim/after/syntax
182+
mkdir -p ~/.vim/after/syntax
184183
185184
3. Write a Vim script that contains the commands you want to use. For
186185
example, to change the colors for the C syntax: >
@@ -2164,6 +2163,22 @@ This will make the syntax synchronization start 50 lines before the first
21642163
displayed line. The default value is 10. The disadvantage of using a larger
21652164
number is that redrawing can become slow.
21662165

2166+
Significant changes to the Java platform are gradually introduced in the form
2167+
of JDK Enhancement Proposals (JEPs) that can be implemented for a release and
2168+
offered as its preview features. It may take several JEPs and a few release
2169+
cycles for such a feature to become either integrated into the platform or
2170+
withdrawn from this effort. To cater for early adopters, there is optional
2171+
support in Vim for syntax related preview features that are implemented. You
2172+
can request it by specifying a list of preview feature numbers as follows: >
2173+
:let g:java_syntax_previews = [430]
2174+
2175+
The supported JEP numbers are to be drawn from this table:
2176+
`430`: String Templates [JDK 21]
2177+
2178+
Note that as soon as the particular preview feature will have been integrated
2179+
into the Java platform, its entry will be removed from the table and related
2180+
optionality will be discontinued.
2181+
21672182

21682183
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
21692184
*g:vim_json_warnings*

0 commit comments

Comments
 (0)