"============================================================================= " File : autoload/unite/sources/outline/defaults/python.vim " Author : h1mesuke " Updated : 2012-01-11 " " Licensed under the MIT license: " http://www.opensource.org/licenses/mit-license.php " "============================================================================= " Default outline info for Python " Version: 0.2.0 function! unite#sources#outline#defaults#python#outline_info() abort return s:outline_info endfunction let s:Util = unite#sources#outline#import('Util') "----------------------------------------------------------------------------- " Outline Info let s:outline_info = { \ 'heading' : '^\s*\%(class\|def\)\>', \ \ 'skip': { \ 'header': s:Util.shared_pattern('sh', 'header'), \ 'block' : ['r\="""', '\\\@' " Class let heading.type = 'class' let heading.word = matchstr(heading.word, '^\s*class\s\+\zs\h\w*') . ' : class' elseif heading.word =~ '^\s*def\>' " Function let heading.type = 'function' let heading.word = substitute(heading.word, '\