vim-settings/vim/after/indent/java.vim

12 lines
293 B
VimL
Raw Permalink Normal View History

2012-12-10 19:29:53 +00:00
function! GetJavaIndent_improved()
let theIndent = GetJavaIndent()
let lnum = prevnonblank(v:lnum - 1)
let line = getline(lnum)
2019-10-24 20:27:01 +00:00
if line =~? '^\s*@.*$'
2012-12-10 19:29:53 +00:00
let theIndent = indent(lnum)
endif
return theIndent
endfunction
setlocal indentexpr=GetJavaIndent_improved()