Skip to content

Commit 0a66e01

Browse files
authored
Merge pull request #1666 from vim-jp/hh-update-syntax
Update syntax.{txt,jax}
2 parents 430be6b + 9e495b0 commit 0a66e01

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

doc/syntax.jax

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

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -2071,6 +2071,13 @@ Note これら 3 つの変数は HTML 構文ファイルで維持されること
20712071
数字と文字列は、以下で Javadoc 以外のコメントでも認識される >
20722072
:let g:java_comment_strings = 1
20732073
2074+
'foldmethod' が "syntax" に設定されている場合、コードブロックと複数行コメント
2075+
は折り畳まれる。複数行コメントの最初の行には通常テキストが書かれていないため、
2076+
デフォルトの 'foldtext' 値では、Javadoc コメントの折り畳まれた内容は情報が少な
2077+
くなる。この方法で書かれたコメントの場合は 2 行目の内容を表示し、それ以外の場
2078+
合は 1 行目の内容を表示するように以下で選択できる >
2079+
:let g:java_foldtext_show_first_or_second_line = 1
2080+
20742081
末尾の空白文字またはタブ文字の前の連続したスペース文字は、以下でエラーとして
20752082
マークされる >
20762083
:let g:java_space_errors = 1

en/syntax.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2135,6 +2135,14 @@ Note that these three variables are maintained in the HTML syntax file.
21352135
Numbers and strings can be recognized in non-Javadoc comments with >
21362136
:let g:java_comment_strings = 1
21372137
2138+
When 'foldmethod' is set to "syntax", blocks of code and multi-line comments
2139+
will be folded. No text is usually written in the first line of a multi-line
2140+
comment, making folded contents of Javadoc comments less informative with the
2141+
default 'foldtext' value; you may opt for showing the contents of a second
2142+
line for any comments written in this way, and showing the contents of a first
2143+
line otherwise, with >
2144+
:let g:java_foldtext_show_first_or_second_line = 1
2145+
21382146
Trailing whitespace characters or a run of space characters before a tab
21392147
character can be marked as an error with >
21402148
:let g:java_space_errors = 1

0 commit comments

Comments
 (0)