neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5c2f2a0c65dfe7bbab0ae0a75293f3bcbd04f7ff
parent b0ddc1783ad7bce8788c08341a90640d8fb557cb
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sat, 12 Oct 2024 17:19:27 +0200

vim-patch:05d0893: runtime(java): Define javaBlockStart and javaBlockOtherStart hl groups

And do not link either to any group.

Resolves zzzyxwvut/java-vim#2.

https://github.com/vim/vim/commit/05d0893ed8d991ed3fa23da7c7d4efe6ffd58798

Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>

Diffstat:
Mruntime/syntax/java.vim | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 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 Oct 03 +" Last Change: 2024 Oct 10 " Please check ":help java.vim" for comments on some of the options " available. @@ -724,10 +724,15 @@ if exists("g:java_highlight_debug") hi def link DebugType Type endif +" Complement javaBlock and javaInParen for highlighting. +syn region javaBlockOther transparent matchgroup=javaBlockOtherStart start="{" end="}" + " Try not to fold top-level-type bodies under assumption that there is " but one such body. -exec 'syn region javaBlock transparent start="\%(^\|^\S[^:]\+\)\@' . s:ff.Peek('120', '') . '<!{" end="}" fold' +exec 'syn region javaBlock transparent matchgroup=javaBlockStart start="\%(^\|^\S[^:]\+\)\@' . s:ff.Peek('120', '') . '<!{" end="}" fold' +" See "D.2.1 Anonymous Classes" at +" https://web.archive.org/web/20010821025330/java.sun.com/docs/books/jls/first_edition/html/1.1Update.html#12959. if exists("g:java_mark_braces_in_parens_as_errors") syn match javaInParen contained "[{}]" hi def link javaInParen javaError