aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/java.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-07-31 22:57:22 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-01 10:14:10 +0200
commita70371ff0066c27a78e2f9df84e29b7d52d7cf84 (patch)
treed3c4a69263a2110110d6c36bec06b1426bed15fd /runtime/syntax/java.vim
parentb7dec93e68765ab7ec83e05f084d16354aa1a378 (diff)
downloadrneovim-a70371ff0066c27a78e2f9df84e29b7d52d7cf84.tar.gz
rneovim-a70371ff0066c27a78e2f9df84e29b7d52d7cf84.tar.bz2
rneovim-a70371ff0066c27a78e2f9df84e29b7d52d7cf84.zip
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>
Diffstat (limited to 'runtime/syntax/java.vim')
-rw-r--r--runtime/syntax/java.vim12
1 files changed, 7 insertions, 5 deletions
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 <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