From ac6f0c02cf31a5e6a426db0b4044c4a5d86f67a1 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 20 Jun 2024 09:08:10 +0200 Subject: vim-patch:94c5d8a: runtime(java): Remove the group exclusion list from @javaTop Instances of anonymous classes can be passed as method arguments and should be subject to line folding as well. closes: vim/vim#15048 https://github.com/vim/vim/commit/94c5d8a5e20e1dd8c9e8434ee14e368276644f61 Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com> --- runtime/syntax/java.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runtime/syntax/java.vim') diff --git a/runtime/syntax/java.vim b/runtime/syntax/java.vim index 6f64bdc4ed..c2cba1a5f9 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 Jun 15 +" Last Change: 2024 Jun 19 " Please check :help java.vim for comments on some of the options available. @@ -412,15 +412,15 @@ if exists("java_highlight_debug") hi def link DebugType Type endif +" 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', '') . '