-
Notifications
You must be signed in to change notification settings - Fork 2
comment highlighting continues after HTML tag #8
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
Comments
I only see the expected, second image syntax highlighting Does the problem manifest itself when Vim is launched with cd runtime/syntax
make clean java test (In the java-vim/runtime/syntax/testdir/input/java_comments_html.java Lines 21 to 26 in b98331c
) Does copying the HTML contents from the comment into a new I would look at what echo synstack(line('.'), col('.'))
\ ->foreach('exec "syntax list " . synIDattr(v:val, "name")') |
It is due to let g:html_syntax_folding = 1
autocmd FileType html setlocal foldmethod=syntax |
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 for the rest of a file. Resolves #8.
The documentation entry for HTML syntax folding insists on To deny inadvertent misuse, two variables must be defined to See #9. |
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 for the rest of a file. Resolves zzzyxwvut/java-vim#8. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
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 for the rest of a file. Resolves zzzyxwvut/java-vim#8. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
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. Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
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 #8.
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: #17216 Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
…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>
…adoc comments (#33718) 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>
Hello, in a former issue #6 there was a typo making the issue irreproducible. This was about a comment header such as
highlighting the code following it as a comment. Expected would be that, similar to when the HTML tag, is missing, the text following is highlight as code. For example, in
expected would
public
to be highlighted by the IDjavaScopeDecl
instead ofJavaDocComment
similar to what happens inwhere
<p>
is missingThe text was updated successfully, but these errors were encountered: