diff --git a/doc/syntax.jax b/doc/syntax.jax index cd37b93e0..6b6ed5e55 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1,4 +1,4 @@ -*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Apr 28 +*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Jun 03 VIMリファレンスマニュアル by Bram Moolenaar @@ -2008,17 +2008,12 @@ Java 1.0.2では、丸括弧の内側に波括弧が入ることは絶対にな ルに次の行を加えること: > :let g:java_mark_braces_in_parens_as_errors = 1 -`java.lang` で宣言されたすべての (エクスポートされた) パブリック型は常に自動的 +`java.lang` で宣言されたすべての (エクスポートされた) public な型は常に自動的 にインポートされ、単純な名前として使用できる。これらをハイライトするには、以下 を使用する: > :let g:java_highlight_java_lang_ids = 1 - -http://www.fleiner.com/vim/download.html で javaid.vim スクリプトをダウンロー -ドすると、ほとんどの標準 Java パッケージの型をハイライトすることもできる。特定 -のパッケージ (例えば、`java.io`) の型のみをハイライトしたい場合は、以下のよう -にする: > - :let g:java_highlight_java_io = 1 -対応している全パッケージのリストは、javaid.vim を参照。 +他の public や protected な型の構文項目を生成し、それらの名前の一部を強調表示 +することもできる。詳細については、|java-package-info-url| を参照。 インデントされた関数宣言のヘッダーは (ラムダ式やメソッド参照式の一部とともに) ハイライトできるが、これは Java コードの記述方法によって異なる。認識される形式 @@ -2164,7 +2159,8 @@ Java プラットフォームへの重要な変更は、リリース用に実装 Note 特定のプレビュー機能が Java プラットフォームに統合されると、すぐにそのエ ントリはテーブルから削除され、関連するオプション機能は廃止されることに注意。 - + *java-package-info-url* +https://github.com/zzzyxwvut/java-vim/blob/master/tools/javaid/src/javaid/package-info.java JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal* *g:vim_json_warnings* @@ -3017,11 +3013,11 @@ postscr_andornot_binaryを定義すると、どちらも2項演算子として この構文ファイルはprintcapとtermcapデータベースに適用される。 -*printcap*または*termcap*というパターンにマッチしないprintcap/termcapファイル -を認識させるためには、ファイル|myfiletypefile|において、あなたのシステムに合っ -たパターンを追加しなければならない。これらのパターンには、変数 "b:ptcap_type" -を "print" か "term" のどちらかにセットしなければならない。するとオプション -'filetype' の値がptcapになる。 +"*printcap*" または "*termcap*" というパターンにマッチしないprintcap/termcap +ファイルを認識させるためには、ファイル|myfiletypefile|において、あなたのシステ +ムに合ったパターンを追加しなければならない。これらのパターンには、変数 +"b:ptcap_type" を "print" か "term" のどちらかにセットしなければならない。する +とオプション 'filetype' の値が ptcap になる。 例えば、/etc/termcaps/以下の全てのファイルをtermcapファイルと識別させるように するには次を書き加える: > @@ -3448,6 +3444,10 @@ Vimは様々なファイル名がどのタイプであるかを指定するこ < sh: Bourne shell > let g:is_sh = 1 +特定のシェル機能は、shebang 行 ("#! ...") から検出されたシェルに基づいて自動的 +に有効になる。KornShell の場合、Vim は mksh、ksh88、ksh93、ksh93u、ksh93v、 +ksh2020 ごとに異なるシェル機能を検出する。 + "#! ..." という行がなく、かつユーザーが上の方法でデフォルトの sh.vim の構文を 設定していない場合、sh.vim は POSIX シェルの構文であると仮定する。エラーレポー トで RFC や市場浸透統計を引用する必要はありません。ただただ、デフォルトでシス @@ -3880,6 +3880,7 @@ Typst ファイルでは、|g:typst_embedded_languages| 変数を設定するこ VIM *vim.vim* *ft-vim-syntax* *g:vimsyn_minlines* *g:vimsyn_maxlines* + 正確な構文ハイライトと画面更新速度はトレードオフの問題である。正確さを向上させ るには、変数 g:vimsyn_minlines の値を大きくすればよい。g:vimsyn_maxlines も画 面更新頻度を高めるのに使える(これについては|:syn-sync|を参照)。 > @@ -3901,10 +3902,9 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め g:vimsyn_embed =~ 'r' : 埋め込み Ruby をサポート g:vimsyn_embed =~ 't' : 埋め込み Tcl をサポート < -デフォルトでは、g:vimsyn_embed には Vim がサポートしている言語が設定される。指 -定された文字を連結して、複数のタイプの埋め込みインタープリタをサポートする (例 -えば、g:vimsyn_embed = "mp" は、埋め込み mzscheme と埋め込み perl をサポートす -る)。 +デフォルトでは、g:vimsyn_embed は設定されておらず、Lua および Python スクリプ +トインターフェイスがサポートされている。 + *g:vimsyn_folding* 'foldmethod' が "syntax" に設定されている場合、一部の折り畳みがサポートされる ようになった: > @@ -3914,15 +3914,15 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め g:vimsyn_folding =~ 'c' : Vim9 クラスを折り畳む g:vimsyn_folding =~ 'e' : Vim9 列挙型を折り畳む g:vimsyn_folding =~ 'f' : 関数を折り畳む - g:vimsyn_folding =~ 'h' : heredoc を折り畳む + g:vimsyn_folding =~ 'h' : let heredocs を折り畳む g:vimsyn_folding =~ 'i' : Vim9 インターフェイスを折り畳む g:vimsyn_folding =~ 'H' : Vim9 の旧来のヘッダーを折り畳む - g:vimsyn_folding =~ 'l' : Lua スクリプトを折り畳む - g:vimsyn_folding =~ 'm' : MzScheme スクリプトを折り畳む - g:vimsyn_folding =~ 'p' : Perl スクリプトを折り畳む - g:vimsyn_folding =~ 'P' : Python スクリプトを折り畳む - g:vimsyn_folding =~ 'r' : Ruby スクリプトを折り畳む - g:vimsyn_folding =~ 't' : Tcl スクリプトを折り畳む + g:vimsyn_folding =~ 'l' : Lua heredocs を折り畳む + g:vimsyn_folding =~ 'm' : MzScheme heredocs を折り畳む + g:vimsyn_folding =~ 'p' : Perl heredocs を折り畳む + g:vimsyn_folding =~ 'P' : Python heredocs を折り畳む + g:vimsyn_folding =~ 'r' : Ruby heredocs を折り畳む + g:vimsyn_folding =~ 't' : Tcl heredocs を折り畳む < デフォルトでは、g:vimsyn_folding は設定されていない。複数の構文構造の折りたた @@ -5796,6 +5796,12 @@ TabLine タブページの行の、アクティブでないタブページの TabLineFill タブページの行の、ラベルがない部分。 *hl-TabLineSel* TabLineSel タブページの行の、アクティブなタブページのラベル。 + *hl-TabPanel* +TabPanel タブパネルの、アクティブでないタブページのラベル。 + *hl-TabPanelFill* +TabPanelFill タブパネルの、ラベルがない部分。 + *hl-TabPanelSel* +TabPanelSel タブパネルの、アクティブなタブページのラベル。 *hl-Terminal* Terminal |terminal| ウィンドウ (|terminal-size-color| を参照)。 *hl-Title* diff --git a/en/syntax.txt b/en/syntax.txt index ed7283012..44fed277f 100644 --- a/en/syntax.txt +++ b/en/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2025 Apr 28 +*syntax.txt* For Vim version 9.1. Last change: 2025 Jun 03 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2067,13 +2067,8 @@ old way, put the following line into your Vim startup file: > All (exported) public types declared in `java.lang` are always automatically imported and available as simple names. To highlight them, use: > :let g:java_highlight_java_lang_ids = 1 - -You can also highlight types of most standard Java packages if you download -the javaid.vim script at http://www.fleiner.com/vim/download.html. If you -prefer to only highlight types of a certain package, say `java.io`, use the -following: > - :let g:java_highlight_java_io = 1 -Check the javaid.vim file for a list of all the packages that are supported. +You can also generate syntax items for other public and protected types and +opt in to highlight some of their names; see |java-package-info-url|. Headers of indented function declarations can be highlighted (along with parts 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: Note that as soon as the particular preview feature will have been integrated into the Java platform, its entry will be removed from the table and related optionality will be discontinued. - + *java-package-info-url* +https://github.com/zzzyxwvut/java-vim/blob/master/tools/javaid/src/javaid/package-info.java JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal* *g:vim_json_warnings* @@ -3106,7 +3102,7 @@ PRINTCAP + TERMCAP *ft-ptcap-syntax* *ft-termcap-syntax* This syntax file applies to the printcap and termcap databases. In order for Vim to recognize printcap/termcap files that do not match -the patterns *printcap*, or *termcap*, you must put additional patterns +the patterns "*printcap*", or "*termcap*", you must put additional patterns appropriate to your system in your |myfiletypefile| file. For these patterns, you must set the variable "b:ptcap_type" to either "print" or "term", and then the 'filetype' option to ptcap. @@ -3553,6 +3549,10 @@ variables in your <.vimrc>: < sh: Bourne shell > let g:is_sh = 1 +Specific shell features are automatically enabled based on the shell detected +from the shebang line ("#! ..."). For KornShell Vim detects different shell +features for mksh, ksh88, ksh93, ksh93u, ksh93v, and ksh2020. + If there's no "#! ..." line, and the user hasn't availed himself/herself of a default sh.vim syntax setting as just shown, then syntax/sh.vim will assume 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: > VIM *vim.vim* *ft-vim-syntax* *g:vimsyn_minlines* *g:vimsyn_maxlines* + There is a trade-off between more accurate syntax highlighting versus screen updating speed. To improve accuracy, you may wish to increase the g:vimsyn_minlines variable. The g:vimsyn_maxlines variable may be used to @@ -4019,10 +4020,9 @@ embedded script highlighting they wish to have. > g:vimsyn_embed =~ 'r' : support embedded Ruby g:vimsyn_embed =~ 't' : support embedded Tcl < -By default, g:vimsyn_embed is a string supporting interpreters that your vim -itself supports. Concatenate the indicated characters to support multiple -types of embedded interpreters (e.g., g:vimsyn_embed = "mp" supports embedded -mzscheme and embedded perl). +By default, g:vimsyn_embed is unset, and the Lua and Python script interfaces +are supported. + *g:vimsyn_folding* Some folding is now supported with when 'foldmethod' is set to "syntax": > @@ -4031,15 +4031,15 @@ Some folding is now supported with when 'foldmethod' is set to "syntax": > g:vimsyn_folding =~ 'c' : fold Vim9 classes g:vimsyn_folding =~ 'e' : fold Vim9 enums g:vimsyn_folding =~ 'f' : fold functions - g:vimsyn_folding =~ 'h' : fold heredocs + g:vimsyn_folding =~ 'h' : fold let heredocs g:vimsyn_folding =~ 'i' : fold Vim9 interfaces g:vimsyn_folding =~ 'H' : fold Vim9 legacy headers - g:vimsyn_folding =~ 'l' : fold Lua script - g:vimsyn_folding =~ 'm' : fold MzScheme script - g:vimsyn_folding =~ 'p' : fold Perl script - g:vimsyn_folding =~ 'P' : fold Python script - g:vimsyn_folding =~ 'r' : fold Ruby script - g:vimsyn_folding =~ 't' : fold Tcl script + g:vimsyn_folding =~ 'l' : fold Lua heredocs + g:vimsyn_folding =~ 'm' : fold MzScheme heredocs + g:vimsyn_folding =~ 'p' : fold Perl heredocs + g:vimsyn_folding =~ 'P' : fold Python heredocs + g:vimsyn_folding =~ 'r' : fold Ruby heredocs + g:vimsyn_folding =~ 't' : fold Tcl heredocs < By default, g:vimsyn_folding is unset. Concatenate the indicated characters @@ -5991,6 +5991,12 @@ TabLine Tab pages line, not active tab page label. TabLineFill Tab pages line, where there are no labels. *hl-TabLineSel* TabLineSel Tab pages line, active tab page label. + *hl-TabPanel* +TabPanel TabPanel, not active tab page label. + *hl-TabPanelFill* +TabPanelFill TabPanel, where there are no labels. + *hl-TabPanelSel* +TabPanelSel TabPanel, active tab page label. *hl-Terminal* Terminal |terminal| window (see |terminal-size-color|). *hl-Title*