aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/vimhelp.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-06-16 11:29:01 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-06-16 12:00:58 +0200
commit2f87d363c18291584028fe88053c92873527497f (patch)
tree1ec2bfe71f717f94a94d3b196736b45948ecbf70 /runtime/lua/vim/vimhelp.lua
parent191a70f9dd347926bc74a9928fce388be0000248 (diff)
downloadrneovim-2f87d363c18291584028fe88053c92873527497f.tar.gz
rneovim-2f87d363c18291584028fe88053c92873527497f.tar.bz2
rneovim-2f87d363c18291584028fe88053c92873527497f.zip
vim-patch:371bab0: runtime(java): Fold multi-line comments with the syntax kind of &fdm (vim/vim#15016)
Also: - Restore the capability to mark as an error braces nested in parens with g:javaInParen. - Try not to fold top-level-type bodies. (Defining multiple package-private top level types in a single source file is not recommended as it can impose order among compilation units; so it is assumed that only one such top level type is usually defined.) - Compose ‘method header’ highlighting and block braces folding. - Do not highlight block braces whenever ‘method header’ highlighting is requested. This bundling of ‘method headers’ and block braces for highlighting can be traced back to Vim v5.0; however, no comment or documentation entry conveys any justification. For example, it is hard to discover the connection between block braces for "while", "if", etc., statements and method body block braces. The former behaviour can be attained in, e.g. ~/.vim/after/syntax/java.vim: ------------------------------------------------------------ if exists("g:java_highlight_functions") syn clear javaBlock javaInParen syn match javaBlockOther "[{}]" syn region javaBlock transparent matchgroup=javaBlockStart \ start="\%(^\|^\S[^:]\+\)\@120<!{" end="}" fold hi def link javaBlockStart javaFuncDef hi def link javaBlockOther javaBlockStart if exists("g:java_mark_braces_in_parens_as_errors") syn match javaInParen contained "[{}]" endif endif ------------------------------------------------------------ Note: Read ‘a method header omitting a _throws_ clause’ for every ‘method header’ appellation used above. https://github.com/vim/vim/commit/371bab05947b32f26d1b32922e5dc38343a875bc Co-authored-by: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Diffstat (limited to 'runtime/lua/vim/vimhelp.lua')
0 files changed, 0 insertions, 0 deletions