From a70371ff0066c27a78e2f9df84e29b7d52d7cf84 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 31 Jul 2024 22:57:22 +0200 Subject: vim-patch:3749dff: runtime(java): Tidy up the documentation for "ft-java-syntax" - Reword a few sentences and reformat a few paragraphs. - Supply absent capitalisation and punctuation. - Make listed highlighting groups and code stand out. - Prefix all Java-related global variables with "g:". - Add spaces around each variable assignment operator. - Acknowledge that some Javadoc variables are maintained in the HTML syntax file. Also, move the overridable _default_ HTML group links before the HTML syntax file inclusion in order to implement the documented diverged settings. related: vim/vim#15399 https://github.com/vim/vim/commit/3749dff093d8c3ba0cd34cebf42bd4d3d93afe26 Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com> --- runtime/syntax/java.vim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'runtime/syntax') diff --git a/runtime/syntax/java.vim b/runtime/syntax/java.vim index 9c4964db71..a63ae0216a 100644 --- a/runtime/syntax/java.vim +++ b/runtime/syntax/java.vim @@ -3,7 +3,7 @@ " Maintainer: Aliaksei Budavei <0x000c70 AT gmail DOT com> " Former Maintainer: Claudio Fleiner " Repository: https://github.com/zzzyxwvut/java-vim.git -" Last Change: 2024 Jul 23 +" Last Change: 2024 Jul 30 " Please check :help java.vim for comments on some of the options available. @@ -309,6 +309,12 @@ hi def link javaCommentError javaError hi def link javaCommentStart javaComment if !exists("java_ignore_javadoc") && main_syntax != 'jsp' + " The overridable "html*" default links must be defined _before_ the + " inclusion of the same default links from "html.vim". + hi def link htmlComment Special + hi def link htmlCommentPart Special + hi def link htmlArg Type + hi def link htmlString String syntax case ignore " Include HTML syntax coloring for Javadoc comments. @@ -601,10 +607,6 @@ hi def link javaCommentStar javaComment hi def link javaType Type hi def link javaExternal Include -hi def link htmlComment Special -hi def link htmlCommentPart Special -hi def link htmlArg Type -hi def link htmlString String hi def link javaSpaceError Error if s:module_info_cur_buf -- cgit