Fix Java Indentation regarding @

This commit is contained in:
ViViDboarder 2012-12-10 14:29:53 -05:00
parent 25277919de
commit 3e56220bc1
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
function! GetJavaIndent_improved()
let theIndent = GetJavaIndent()
let lnum = prevnonblank(v:lnum - 1)
let line = getline(lnum)
if line =~ '^\s*@.*$'
let theIndent = indent(lnum)
endif
return theIndent
endfunction
setlocal indentexpr=GetJavaIndent_improved()