Skip to content

Commit b8b5bc4

Browse files
authored
Merge pull request #2093 from h-east/update-syntax
Update syntax.{txt,jax}
2 parents 2b1ee49 + 8ed07d3 commit b8b5bc4

File tree

2 files changed

+59
-47
lines changed

2 files changed

+59
-47
lines changed

doc/syntax.jax

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Apr 28
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Jun 03
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2008,17 +2008,12 @@ Java 1.0.2では、丸括弧の内側に波括弧が入ることは絶対にな
20082008
ルに次の行を加えること: >
20092009
:let g:java_mark_braces_in_parens_as_errors = 1
20102010
2011-
`java.lang` で宣言されたすべての (エクスポートされた) パブリック型は常に自動的
2011+
`java.lang` で宣言されたすべての (エクスポートされた) public な型は常に自動的
20122012
にインポートされ、単純な名前として使用できる。これらをハイライトするには、以下
20132013
を使用する: >
20142014
:let g:java_highlight_java_lang_ids = 1
2015-
2016-
http://www.fleiner.com/vim/download.html で javaid.vim スクリプトをダウンロー
2017-
ドすると、ほとんどの標準 Java パッケージの型をハイライトすることもできる。特定
2018-
のパッケージ (例えば、`java.io`) の型のみをハイライトしたい場合は、以下のよう
2019-
にする: >
2020-
:let g:java_highlight_java_io = 1
2021-
対応している全パッケージのリストは、javaid.vim を参照。
2015+
他の public や protected な型の構文項目を生成し、それらの名前の一部を強調表示
2016+
することもできる。詳細については、|java-package-info-url| を参照。
20222017

20232018
インデントされた関数宣言のヘッダーは (ラムダ式やメソッド参照式の一部とともに)
20242019
ハイライトできるが、これは Java コードの記述方法によって異なる。認識される形式
@@ -2164,7 +2159,8 @@ Java プラットフォームへの重要な変更は、リリース用に実装
21642159

21652160
Note 特定のプレビュー機能が Java プラットフォームに統合されると、すぐにそのエ
21662161
ントリはテーブルから削除され、関連するオプション機能は廃止されることに注意。
2167-
2162+
*java-package-info-url*
2163+
https://github.com/zzzyxwvut/java-vim/blob/master/tools/javaid/src/javaid/package-info.java
21682164

21692165
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
21702166
*g:vim_json_warnings*
@@ -3017,11 +3013,11 @@ postscr_andornot_binaryを定義すると、どちらも2項演算子として
30173013

30183014
この構文ファイルはprintcapとtermcapデータベースに適用される。
30193015

3020-
*printcap*または*termcap*というパターンにマッチしないprintcap/termcapファイル
3021-
を認識させるためには、ファイル|myfiletypefile|において、あなたのシステムに合っ
3022-
たパターンを追加しなければならない。これらのパターンには、変数 "b:ptcap_type"
3023-
を "print" か "term" のどちらかにセットしなければならない。するとオプション
3024-
'filetype' の値がptcapになる
3016+
"*printcap*" または "*termcap*" というパターンにマッチしないprintcap/termcap
3017+
ファイルを認識させるためには、ファイル|myfiletypefile|において、あなたのシステ
3018+
ムに合ったパターンを追加しなければならない。これらのパターンには、変数
3019+
"b:ptcap_type" を "print" か "term" のどちらかにセットしなければならない。する
3020+
とオプション 'filetype' の値が ptcap になる
30253021

30263022
例えば、/etc/termcaps/以下の全てのファイルをtermcapファイルと識別させるように
30273023
するには次を書き加える: >
@@ -3448,6 +3444,10 @@ Vimは様々なファイル名がどのタイプであるかを指定するこ
34483444
< sh: Bourne shell >
34493445
let g:is_sh = 1
34503446
3447+
特定のシェル機能は、shebang 行 ("#! ...") から検出されたシェルに基づいて自動的
3448+
に有効になる。KornShell の場合、Vim は mksh、ksh88、ksh93、ksh93u、ksh93v、
3449+
ksh2020 ごとに異なるシェル機能を検出する。
3450+
34513451
"#! ..." という行がなく、かつユーザーが上の方法でデフォルトの sh.vim の構文を
34523452
設定していない場合、sh.vim は POSIX シェルの構文であると仮定する。エラーレポー
34533453
トで RFC や市場浸透統計を引用する必要はありません。ただただ、デフォルトでシス
@@ -3880,6 +3880,7 @@ Typst ファイルでは、|g:typst_embedded_languages| 変数を設定するこ
38803880
38813881
VIM *vim.vim* *ft-vim-syntax*
38823882
*g:vimsyn_minlines* *g:vimsyn_maxlines*
3883+
38833884
正確な構文ハイライトと画面更新速度はトレードオフの問題である。正確さを向上させ
38843885
るには、変数 g:vimsyn_minlines の値を大きくすればよい。g:vimsyn_maxlines も画
38853886
面更新頻度を高めるのに使える(これについては|:syn-sync|を参照)。 >
@@ -3901,10 +3902,9 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め
39013902
g:vimsyn_embed =~ 'r' : 埋め込み Ruby をサポート
39023903
g:vimsyn_embed =~ 't' : 埋め込み Tcl をサポート
39033904
<
3904-
デフォルトでは、g:vimsyn_embed には Vim がサポートしている言語が設定される。指
3905-
定された文字を連結して、複数のタイプの埋め込みインタープリタをサポートする (例
3906-
えば、g:vimsyn_embed = "mp" は、埋め込み mzscheme と埋め込み perl をサポートす
3907-
る)。
3905+
デフォルトでは、g:vimsyn_embed は設定されておらず、Lua および Python スクリプ
3906+
トインターフェイスがサポートされている。
3907+
39083908
*g:vimsyn_folding*
39093909
'foldmethod' が "syntax" に設定されている場合、一部の折り畳みがサポートされる
39103910
ようになった: >
@@ -3914,15 +3914,15 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め
39143914
g:vimsyn_folding =~ 'c' : Vim9 クラスを折り畳む
39153915
g:vimsyn_folding =~ 'e' : Vim9 列挙型を折り畳む
39163916
g:vimsyn_folding =~ 'f' : 関数を折り畳む
3917-
g:vimsyn_folding =~ 'h' : heredoc を折り畳む
3917+
g:vimsyn_folding =~ 'h' : let heredocs を折り畳む
39183918
g:vimsyn_folding =~ 'i' : Vim9 インターフェイスを折り畳む
39193919
g:vimsyn_folding =~ 'H' : Vim9 の旧来のヘッダーを折り畳む
3920-
g:vimsyn_folding =~ 'l' : Lua スクリプトを折り畳む
3921-
g:vimsyn_folding =~ 'm' : MzScheme スクリプトを折り畳む
3922-
g:vimsyn_folding =~ 'p' : Perl スクリプトを折り畳む
3923-
g:vimsyn_folding =~ 'P' : Python スクリプトを折り畳む
3924-
g:vimsyn_folding =~ 'r' : Ruby スクリプトを折り畳む
3925-
g:vimsyn_folding =~ 't' : Tcl スクリプトを折り畳む
3920+
g:vimsyn_folding =~ 'l' : Lua heredocs を折り畳む
3921+
g:vimsyn_folding =~ 'm' : MzScheme heredocs を折り畳む
3922+
g:vimsyn_folding =~ 'p' : Perl heredocs を折り畳む
3923+
g:vimsyn_folding =~ 'P' : Python heredocs を折り畳む
3924+
g:vimsyn_folding =~ 'r' : Ruby heredocs を折り畳む
3925+
g:vimsyn_folding =~ 't' : Tcl heredocs を折り畳む
39263926
<
39273927

39283928
デフォルトでは、g:vimsyn_folding は設定されていない。複数の構文構造の折りたた
@@ -5796,6 +5796,12 @@ TabLine タブページの行の、アクティブでないタブページの
57965796
TabLineFill タブページの行の、ラベルがない部分。
57975797
*hl-TabLineSel*
57985798
TabLineSel タブページの行の、アクティブなタブページのラベル。
5799+
*hl-TabPanel*
5800+
TabPanel タブパネルの、アクティブでないタブページのラベル。
5801+
*hl-TabPanelFill*
5802+
TabPanelFill タブパネルの、ラベルがない部分。
5803+
*hl-TabPanelSel*
5804+
TabPanelSel タブパネルの、アクティブなタブページのラベル。
57995805
*hl-Terminal*
58005806
Terminal |terminal| ウィンドウ (|terminal-size-color| を参照)。
58015807
*hl-Title*

en/syntax.txt

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Apr 28
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Jun 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2067,13 +2067,8 @@ old way, put the following line into your Vim startup file: >
20672067
All (exported) public types declared in `java.lang` are always automatically
20682068
imported and available as simple names. To highlight them, use: >
20692069
:let g:java_highlight_java_lang_ids = 1
2070-
2071-
You can also highlight types of most standard Java packages if you download
2072-
the javaid.vim script at http://www.fleiner.com/vim/download.html. If you
2073-
prefer to only highlight types of a certain package, say `java.io`, use the
2074-
following: >
2075-
:let g:java_highlight_java_io = 1
2076-
Check the javaid.vim file for a list of all the packages that are supported.
2070+
You can also generate syntax items for other public and protected types and
2071+
opt in to highlight some of their names; see |java-package-info-url|.
20772072

20782073
Headers of indented function declarations can be highlighted (along with parts
20792074
of lambda expressions and method reference expressions), but it depends on how
@@ -2226,7 +2221,8 @@ The supported JEP numbers are to be drawn from this table:
22262221
Note that as soon as the particular preview feature will have been integrated
22272222
into the Java platform, its entry will be removed from the table and related
22282223
optionality will be discontinued.
2229-
2224+
*java-package-info-url*
2225+
https://github.com/zzzyxwvut/java-vim/blob/master/tools/javaid/src/javaid/package-info.java
22302226

22312227
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
22322228
*g:vim_json_warnings*
@@ -3106,7 +3102,7 @@ PRINTCAP + TERMCAP *ft-ptcap-syntax* *ft-termcap-syntax*
31063102
This syntax file applies to the printcap and termcap databases.
31073103

31083104
In order for Vim to recognize printcap/termcap files that do not match
3109-
the patterns *printcap*, or *termcap*, you must put additional patterns
3105+
the patterns "*printcap*", or "*termcap*", you must put additional patterns
31103106
appropriate to your system in your |myfiletypefile| file. For these
31113107
patterns, you must set the variable "b:ptcap_type" to either "print" or
31123108
"term", and then the 'filetype' option to ptcap.
@@ -3553,6 +3549,10 @@ variables in your <.vimrc>:
35533549
< sh: Bourne shell >
35543550
let g:is_sh = 1
35553551
3552+
Specific shell features are automatically enabled based on the shell detected
3553+
from the shebang line ("#! ..."). For KornShell Vim detects different shell
3554+
features for mksh, ksh88, ksh93, ksh93u, ksh93v, and ksh2020.
3555+
35563556
If there's no "#! ..." line, and the user hasn't availed himself/herself of a
35573557
default sh.vim syntax setting as just shown, then syntax/sh.vim will assume
35583558
the POSIX shell syntax. No need to quote RFCs or market penetration
@@ -3996,6 +3996,7 @@ names whose syntax definitions will be included in Typst files. Example: >
39963996
39973997
VIM *vim.vim* *ft-vim-syntax*
39983998
*g:vimsyn_minlines* *g:vimsyn_maxlines*
3999+
39994000
There is a trade-off between more accurate syntax highlighting versus screen
40004001
updating speed. To improve accuracy, you may wish to increase the
40014002
g:vimsyn_minlines variable. The g:vimsyn_maxlines variable may be used to
@@ -4019,10 +4020,9 @@ embedded script highlighting they wish to have. >
40194020
g:vimsyn_embed =~ 'r' : support embedded Ruby
40204021
g:vimsyn_embed =~ 't' : support embedded Tcl
40214022
<
4022-
By default, g:vimsyn_embed is a string supporting interpreters that your vim
4023-
itself supports. Concatenate the indicated characters to support multiple
4024-
types of embedded interpreters (e.g., g:vimsyn_embed = "mp" supports embedded
4025-
mzscheme and embedded perl).
4023+
By default, g:vimsyn_embed is unset, and the Lua and Python script interfaces
4024+
are supported.
4025+
40264026
*g:vimsyn_folding*
40274027
Some folding is now supported with when 'foldmethod' is set to "syntax": >
40284028
@@ -4031,15 +4031,15 @@ Some folding is now supported with when 'foldmethod' is set to "syntax": >
40314031
g:vimsyn_folding =~ 'c' : fold Vim9 classes
40324032
g:vimsyn_folding =~ 'e' : fold Vim9 enums
40334033
g:vimsyn_folding =~ 'f' : fold functions
4034-
g:vimsyn_folding =~ 'h' : fold heredocs
4034+
g:vimsyn_folding =~ 'h' : fold let heredocs
40354035
g:vimsyn_folding =~ 'i' : fold Vim9 interfaces
40364036
g:vimsyn_folding =~ 'H' : fold Vim9 legacy headers
4037-
g:vimsyn_folding =~ 'l' : fold Lua script
4038-
g:vimsyn_folding =~ 'm' : fold MzScheme script
4039-
g:vimsyn_folding =~ 'p' : fold Perl script
4040-
g:vimsyn_folding =~ 'P' : fold Python script
4041-
g:vimsyn_folding =~ 'r' : fold Ruby script
4042-
g:vimsyn_folding =~ 't' : fold Tcl script
4037+
g:vimsyn_folding =~ 'l' : fold Lua heredocs
4038+
g:vimsyn_folding =~ 'm' : fold MzScheme heredocs
4039+
g:vimsyn_folding =~ 'p' : fold Perl heredocs
4040+
g:vimsyn_folding =~ 'P' : fold Python heredocs
4041+
g:vimsyn_folding =~ 'r' : fold Ruby heredocs
4042+
g:vimsyn_folding =~ 't' : fold Tcl heredocs
40434043
<
40444044

40454045
By default, g:vimsyn_folding is unset. Concatenate the indicated characters
@@ -5991,6 +5991,12 @@ TabLine Tab pages line, not active tab page label.
59915991
TabLineFill Tab pages line, where there are no labels.
59925992
*hl-TabLineSel*
59935993
TabLineSel Tab pages line, active tab page label.
5994+
*hl-TabPanel*
5995+
TabPanel TabPanel, not active tab page label.
5996+
*hl-TabPanelFill*
5997+
TabPanelFill TabPanel, where there are no labels.
5998+
*hl-TabPanelSel*
5999+
TabPanelSel TabPanel, active tab page label.
59946000
*hl-Terminal*
59956001
Terminal |terminal| window (see |terminal-size-color|).
59966002
*hl-Title*

0 commit comments

Comments
 (0)