Fix Java Indentation regarding @
This commit is contained in:
parent
25277919de
commit
3e56220bc1
|
@ -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()
|
Loading…
Reference in New Issue