aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-09-15 19:57:03 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-09-16 08:16:32 +0200
commita9031cc4a649f6ad5ef3db29a9bf52468332bcde (patch)
treed4fe83f34f929b1eff307d783015eeeaa0e9214b
parent5e7933693bd87fc5e39e9680cac2a5e17775bfb9 (diff)
downloadrneovim-a9031cc4a649f6ad5ef3db29a9bf52468332bcde.tar.gz
rneovim-a9031cc4a649f6ad5ef3db29a9bf52468332bcde.tar.bz2
rneovim-a9031cc4a649f6ad5ef3db29a9bf52468332bcde.zip
vim-patch:5e95c8f: runtime(java): Highlight javaConceptKind modifiers with StorageClass
Stop assigning by default the NonText highlighting group for javaConceptKind modifiers since its colour is hardly distinguishable from a background colour for a range of colour schemes. fixes vim/vim#15237 related vim/vim#15238 closes: vim/vim#15664 https://github.com/vim/vim/commit/5e95c8f637ac8de625270fc2d371f4ebe304fac8 Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com> Co-authored-by: Dexter Gaon-Shatford <dexter@gaonshatford.ca>
-rw-r--r--runtime/doc/syntax.txt6
-rw-r--r--runtime/syntax/java.vim4
2 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 33df9c7103..e7960a5cc8 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1683,6 +1683,12 @@ In order to highlight nested parens with different colors, define colors for
or >
:hi javaParen ctermfg=blue guifg=#0000ff
+Certain modifiers are incompatible with each other, e.g. `abstract` and
+`final`: >
+ :syn list javaConceptKind
+and can be differently highlighted as a group than other modifiers with >
+ :hi link javaConceptKind NonText
+
If you notice highlighting errors while scrolling backwards, which are fixed
when redrawing with CTRL-L, try setting the "g:java_minlines" variable to
a larger number: >
diff --git a/runtime/syntax/java.vim b/runtime/syntax/java.vim
index 293d63c0a2..d3b59c186d 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 Sep 10
+" Last Change: 2024 Sep 11
" Please check :help java.vim for comments on some of the options available.
@@ -663,7 +663,7 @@ hi def link javaStorageClass StorageClass
hi def link javaMethodDecl javaStorageClass
hi def link javaClassDecl javaStorageClass
hi def link javaScopeDecl javaStorageClass
-hi def link javaConceptKind NonText
+hi def link javaConceptKind javaStorageClass
hi def link javaBoolean Boolean
hi def link javaSpecial Special