mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
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
3749dff093
Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Aliaksei Budavei <0x000c70 AT gmail DOT com>
|
||||
" Former Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" 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
|
||||
|
Reference in New Issue
Block a user