"============================================================================= " File : autoload/unite/sources/outline/defaults/java.vim " Author : h1mesuke " Updated : 2012-01-11 " " Licensed under the MIT license: " http://www.opensource.org/licenses/mit-license.php " "============================================================================= " Default outline info for Java " Version: 0.1.6 function! unite#sources#outline#defaults#java#outline_info() abort return s:outline_info endfunction let s:Ctags = unite#sources#outline#import('Ctags') let s:Util = unite#sources#outline#import('Util') "----------------------------------------------------------------------------- " Outline Info let s:outline_info = { \ 'heading_groups': { \ 'package': ['package'], \ 'type' : ['interface', 'class', 'enum'], \ 'method' : ['method'], \ }, \ \ 'not_match_patterns': [ \ s:Util.shared_pattern('*', 'parameter_list'), \ ], \ \ 'highlight_rules': [ \ { 'name' : 'package', \ 'pattern': '/\S\+\ze : package/' }, \ { 'name' : 'type', \ 'pattern': '/\S\+\ze : \%(interface\|class\|enum\)/' }, \ { 'name' : 'method', \ 'pattern': '/\h\w*\ze\s*(/' }, \ { 'name' : 'parameter_list', \ 'pattern': '/(.*)/' }, \ ], \} function! s:outline_info.extract_headings(context) abort return s:Ctags.extract_headings(a:context) endfunction