diff --git a/autoload/vebugger/jdb.vim b/autoload/vebugger/jdb.vim index 612336c..2279c8b 100644 --- a/autoload/vebugger/jdb.vim +++ b/autoload/vebugger/jdb.vim @@ -114,7 +114,8 @@ endfunction function! s:getClassNameFromFile(filename) let l:className=fnamemodify(a:filename,':t:r') " Get only the name of the file, without path or extension for l:line in readfile(a:filename) - let l:matches=matchlist(l:line,'\vpackage\s+(%(\w|\.)+)\s*;') + " trailing ; is optional to make it work for groovy as well + let l:matches=matchlist(l:line,'\vpackage\s+(%(\w|\.)+)\s*;?') if 1