Recognize nested classes in K

Closes #176.
This commit is contained in:
Tim Pope 2014-09-05 13:10:21 -04:00
parent c1416c89ba
commit fccb149148

View File

@ -1393,7 +1393,7 @@ endfunction
function! s:K() abort
let word = expand('<cword>')
let java_candidate = matchstr(word, '^\%(\w\+\.\)*\u\l\w*\ze\%(\.\|\/\w\+\)\=$')
let java_candidate = matchstr(word, '^\%(\w\+\.\)*\u\l[[:alnum:]$]*\ze\%(\.\|\/\w\+\)\=$')
if java_candidate !=# ''
return 'Javadoc '.java_candidate
else