Skip to content

Commit 1b28032

Browse files
authored
Merge pull request #1731 from vim-jp/hh-update-syntax
Update syntax.{txt,jax}
2 parents 01ebda7 + d4516b0 commit 1b28032

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

doc/syntax.jax

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 Sep 19
1+
*syntax.txt* For Vim バージョン 9.1. Last change: 2024 Oct 06
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2044,7 +2044,8 @@ Java 1.1 では、関数 `System.out.println()` と `System.err.println()` は
20442044
Javadoc は、Java プログラムファイルから特別なコメントを取り出し、HTML ページを
20452045
作成するプログラムである。標準設定では、この HTML コードは HTML ファイルと同様
20462046
にハイライトされる (|html.vim| を参照)。このコード内に JavaScript と CSS を追
2047-
加することもできる (以下を参照)。HTML レンダリングは次のように分岐する。
2047+
加することもできる (以下を参照)。HTML および Markdown のレンダリングは次のよう
2048+
に分岐する:
20482049
1. 最初の文 (後ろに空白文字または行末文字が続く最初のピリオド `.` までのすべ
20492050
ての文字、または最初のブロックタグまでのすべての文字。例: `@param`
20502051
`@return`) は以下として色付けされる
@@ -2057,8 +2058,14 @@ Javadoc は、Java プログラムファイルから特別なコメントを取
20572058
*Special special symbols
20582059
そして、それらの引数の一部は以下として色付けされる
20592060
*Function function names.
2060-
この機能をオフにするには、スタートアップファイルに以下の行を追加する: >
2061+
HTML と Markdown の両方でこの機能をオフにするには、スタートアップファイルに以
2062+
下の行を追加する: >
20612063
:let g:java_ignore_javadoc = 1
2064+
あるいは、HTML コメントまたは Markdown コメントのみを抑制する: >
2065+
:let g:java_ignore_html = 1
2066+
:let g:java_ignore_markdown = 1
2067+
2068+
Markdown コメントの追加サポートについては |ft-java-plugin| を参照。
20622069

20632070
上で説明した特別な Javadoc コメントのハイライトを使用する場合、JavaScript、
20642071
Visual Basic スクリプト、埋め込み CSS (スタイルシート) の特別なハイライトもオ
@@ -2123,7 +2130,7 @@ Note 特定のプレビュー機能が Java プラットフォームに統合さ
21232130

21242131

21252132
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
2126-
*g:vim_json_warnings*
2133+
*g:vim_json_warnings*
21272134

21282135
json構文ファイルは、標準で conceal サポート付きのシンタックスハイライトを提供
21292136
する。conceal を無効にするには: >
@@ -3829,10 +3836,13 @@ g:vimsyn_embed オプションは、どの外部スクリプト言語の埋め
38293836
ようになった: >
38303837
38313838
g:vimsyn_folding == 0 または変数が存在しない: 構文ベースの折り畳みはしない
3832-
g:vimsyn_folding =~ 'a' : augroups
3839+
g:vimsyn_folding =~ 'a' : augroups を折り畳む
3840+
g:vimsyn_folding =~ 'c' : Vim9 クラスを折り畳む
3841+
g:vimsyn_folding =~ 'e' : Vim9 列挙型を折り畳む
38333842
g:vimsyn_folding =~ 'f' : 関数を折り畳む
38343843
g:vimsyn_folding =~ 'h' : heredoc を折り畳む
3835-
g:vimsyn_folding =~ 'H' : Vim9-script の旧来のヘッダーを折り畳む
3844+
g:vimsyn_folding =~ 'i' : Vim9 インターフェイスを折り畳む
3845+
g:vimsyn_folding =~ 'H' : Vim9 の旧来のヘッダーを折り畳む
38363846
g:vimsyn_folding =~ 'l' : Lua スクリプトを折り畳む
38373847
g:vimsyn_folding =~ 'm' : MzScheme スクリプトを折り畳む
38383848
g:vimsyn_folding =~ 'p' : Perl スクリプトを折り畳む

en/syntax.txt

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2024 Sep 19
1+
*syntax.txt* For Vim version 9.1. Last change: 2024 Oct 06
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2106,7 +2106,8 @@ respectively.
21062106
Javadoc is a program that takes special comments out of Java program files and
21072107
creates HTML pages. The standard configuration will highlight this HTML code
21082108
similarly to HTML files (see |html.vim|). You can even add JavaScript and CSS
2109-
inside this code (see below). The HTML rendering diverges as follows:
2109+
inside this code (see below). The HTML rendering and the Markdown rendering
2110+
diverge as follows:
21102111
1. The first sentence (all characters up to the first period `.`, which is
21112112
followed by a whitespace character or a line terminator, or up to the
21122113
first block tag, e.g. `@param`, `@return`) is colored as
@@ -2119,8 +2120,14 @@ inside this code (see below). The HTML rendering diverges as follows:
21192120
*Special special symbols
21202121
and some of their arguments are colored as
21212122
*Function function names.
2122-
To turn this feature off, add the following line to your startup file: >
2123+
To turn this feature off for both HTML and Markdown, add the following line to
2124+
your startup file: >
21232125
:let g:java_ignore_javadoc = 1
2126+
Alternatively, only suppress HTML comments or Markdown comments: >
2127+
:let g:java_ignore_html = 1
2128+
:let g:java_ignore_markdown = 1
2129+
2130+
See |ft-java-plugin| for additional support available for Markdown comments.
21242131

21252132
If you use the special Javadoc comment highlighting described above, you can
21262133
also turn on special highlighting for JavaScript, Visual Basic scripts, and
@@ -2189,7 +2196,7 @@ optionality will be discontinued.
21892196

21902197

21912198
JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
2192-
*g:vim_json_warnings*
2199+
*g:vim_json_warnings*
21932200

21942201
The json syntax file provides syntax highlighting with conceal support by
21952202
default. To disable concealment: >
@@ -3949,10 +3956,13 @@ mzscheme and embedded perl).
39493956
Some folding is now supported with when 'foldmethod' is set to "syntax": >
39503957
39513958
g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
3952-
g:vimsyn_folding =~ 'a' : augroups
3959+
g:vimsyn_folding =~ 'a' : fold augroups
3960+
g:vimsyn_folding =~ 'c' : fold Vim9 classes
3961+
g:vimsyn_folding =~ 'e' : fold Vim9 enums
39533962
g:vimsyn_folding =~ 'f' : fold functions
39543963
g:vimsyn_folding =~ 'h' : fold heredocs
3955-
g:vimsyn_folding =~ 'H' : fold Vim9-script legacy headers
3964+
g:vimsyn_folding =~ 'i' : fold Vim9 interfaces
3965+
g:vimsyn_folding =~ 'H' : fold Vim9 legacy headers
39563966
g:vimsyn_folding =~ 'l' : fold Lua script
39573967
g:vimsyn_folding =~ 'm' : fold MzScheme script
39583968
g:vimsyn_folding =~ 'p' : fold Perl script

0 commit comments

Comments
 (0)