Skip to content

vim-patch:910bfd5: runtime(java): Consent to HTML tags folding in Javadoc comments #33718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

zeertzjq
Copy link
Member

@zeertzjq zeertzjq commented Apr 29, 2025

vim-patch:910bfd5: runtime(java): Consent to HTML tags folding in Javadoc comments

HTML tags in Javadoc comments can additionally be folded
after applying

let g:html_syntax_folding = 1
set foldmethod=syntax

and giving explicit consent with

let g:java_consent_to_html_syntax_folding = 1

Do not default to this kind of folding unless ALL start tags
and optional end tags are balanced in Javadoc comments;
otherwise, put up with creating runaway folds that break
syntax highlighting.

closes: vim/vim#17216

vim/vim@910bfd5

Co-authored-by: Aliaksei Budavei 0x000c70@gmail.com

…adoc comments

HTML tags in Javadoc comments can additionally be folded
after applying
------------------------------------------------------------
	let g:html_syntax_folding = 1
	set foldmethod=syntax
------------------------------------------------------------

and giving explicit consent with
------------------------------------------------------------
	let g:java_consent_to_html_syntax_folding = 1
------------------------------------------------------------

Do not default to this kind of folding unless ALL start tags
and optional end tags are balanced in Javadoc comments;
otherwise, put up with creating runaway folds that break
syntax highlighting.

resolves: zzzyxwvut/java-vim#8.
closes: vim/vim#17216

vim/vim@910bfd5

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
@zeertzjq zeertzjq changed the title vim-patch:910bfd5 vim-patch:910bfd5: runtime(java): Consent to HTML tags folding in Javadoc comments Apr 29, 2025
@github-actions github-actions bot added the vim-patch See https://neovim.io/doc/user/dev_vimpatch.html label Apr 29, 2025
@zeertzjq zeertzjq merged commit 0ab0cdb into neovim:master Apr 29, 2025
53 of 54 checks passed
@zeertzjq zeertzjq deleted the vim-910bfd5 branch April 29, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vim-patch See https://neovim.io/doc/user/dev_vimpatch.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant