diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-08-22 21:25:51 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-08-22 23:45:48 +0200 |
commit | 3b32869ced32821fb58f0a7c08094105be7bdaf0 (patch) | |
tree | 85ef5a9dd6fca64f480abc0afd3b3cc8698a44f8 /runtime/doc | |
parent | 8db8793503511c13c8da9e6fd9c9d0468e42f67b (diff) | |
download | rneovim-3b32869ced32821fb58f0a7c08094105be7bdaf0.tar.gz rneovim-3b32869ced32821fb58f0a7c08094105be7bdaf0.tar.bz2 rneovim-3b32869ced32821fb58f0a7c08094105be7bdaf0.zip |
vim-patch:2750b83: runtime(java): Make the bundled &foldtext function optional
- Obtain and pass through translated messages with this
function.
- If "g:java_foldtext_show_first_or_second_line" is defined,
assign this function to &foldtext.
closes: vim/vim#15549
https://github.com/vim/vim/commit/2750b83fa1a917c13d0cae3e791493720dcaadaa
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/syntax.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 806cecedbe..7f4b4495be 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1663,6 +1663,14 @@ Note that these three variables are maintained in the HTML syntax file. Numbers and strings can be recognized in non-Javadoc comments with > :let g:java_comment_strings = 1 +When 'foldmethod' is set to "syntax", blocks of code and multi-line comments +will be folded. No text is usually written in the first line of a multi-line +comment, making folded contents of Javadoc comments less informative with the +default 'foldtext' value; you may opt for showing the contents of a second +line for any comments written in this way, and showing the contents of a first +line otherwise, with > + :let g:java_foldtext_show_first_or_second_line = 1 + Trailing whitespace characters or a run of space characters before a tab character can be marked as an error with > :let g:java_space_errors = 1 |