Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Converted markers.

  • Loading branch information...
commit 0cbcac05f20795ca0b50724addd2a56c54947854 1 parent d3b19f3
@Shougo authored
Showing with 296 additions and 296 deletions.
  1. +26 −26 autoload/neocomplcache.vim
  2. +13 −13 autoload/neocomplcache/async_cache.vim
  3. +15 −15 autoload/neocomplcache/cache.vim
  4. +4 −4 autoload/neocomplcache/sources/abbrev_complete.vim
  5. +25 −25 autoload/neocomplcache/sources/buffer_complete.vim
  6. +8 −8 autoload/neocomplcache/sources/dictionary_complete.vim
  7. +8 −8 autoload/neocomplcache/sources/filename_complete.vim
  8. +10 −10 autoload/neocomplcache/sources/filename_include.vim
  9. +23 −23 autoload/neocomplcache/sources/include_complete.vim
  10. +16 −16 autoload/neocomplcache/sources/member_complete.vim
  11. +12 −12 autoload/neocomplcache/sources/omni_complete.vim
  12. +12 −12 autoload/neocomplcache/sources/syntax_complete.vim
  13. +6 −6 autoload/neocomplcache/sources/tags_complete.vim
  14. +8 −8 autoload/neocomplcache/sources/vim_complete.vim
  15. +56 −56 autoload/neocomplcache/sources/vim_complete/helper.vim
  16. +22 −22 autoload/neocomplcache/util.vim
  17. +2 −2 autoload/unite/sources/file_include.vim
  18. +23 −23 autoload/vital/_9813ec6/prelude.vim
  19. +2 −2 plugin/neocomplcache.vim
  20. +1 −1  plugin/neocomplcache/buffer_complete.vim
  21. +1 −1  plugin/neocomplcache/dictionary_complete.vim
  22. +1 −1  plugin/neocomplcache/include_complete.vim
  23. +1 −1  plugin/neocomplcache/syntax_complete.vim
  24. +1 −1  plugin/neocomplcache/tags_complete.vim
View
52 autoload/neocomplcache.vim
@@ -65,7 +65,7 @@ function! neocomplcache#enable() "{{{
return
endif
- " Auto commands."{{{
+ " Auto commands. "{{{
augroup neocomplcache
autocmd!
autocmd InsertEnter * call s:on_insert_enter()
@@ -99,7 +99,7 @@ function! neocomplcache#enable() "{{{
call s:initialize_variables()
- " Initialize keyword patterns."{{{
+ " Initialize keyword patterns. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_keyword_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -324,7 +324,7 @@ function! neocomplcache#enable() "{{{
\'\h\w*')
"}}}
- " Initialize next keyword patterns."{{{
+ " Initialize next keyword patterns. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_next_keyword_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -347,7 +347,7 @@ function! neocomplcache#enable() "{{{
\'[[:alnum:]_:-]*>\|[^"]*"')
"}}}
- " Initialize same file type lists."{{{
+ " Initialize same file type lists. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_same_filetype_lists', {})
call neocomplcache#util#set_default_dictionary(
@@ -462,7 +462,7 @@ function! neocomplcache#enable() "{{{
\ 'int-php', 'php')
"}}}
- " Initialize context filetype lists."{{{
+ " Initialize context filetype lists. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_context_filetype_lists', {})
call neocomplcache#util#set_default_dictionary(
@@ -541,7 +541,7 @@ function! neocomplcache#enable() "{{{
\])
"}}}
- " Initialize delimiter patterns."{{{
+ " Initialize delimiter patterns. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_delimiter_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -575,7 +575,7 @@ function! neocomplcache#enable() "{{{
\ 'perl6', ['\.', '::'])
"}}}
- " Initialize ctags arguments."{{{
+ " Initialize ctags arguments. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_ctags_arguments_list', {})
call neocomplcache#util#set_default_dictionary(
@@ -607,7 +607,7 @@ function! neocomplcache#enable() "{{{
\ '__attribute_pure__,__attribute_warn_unused_result__,__attribute__+')
"}}}
- " Initialize text mode filetypes."{{{
+ " Initialize text mode filetypes. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_text_mode_filetypes', {})
call neocomplcache#util#set_default_dictionary(
@@ -615,7 +615,7 @@ function! neocomplcache#enable() "{{{
\ 'text,help,tex,gitcommit,vcs-commit', 1)
"}}}
- " Initialize tags filter patterns."{{{
+ " Initialize tags filter patterns. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_tags_filter_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -623,7 +623,7 @@ function! neocomplcache#enable() "{{{
\'v:val.word !~ ''^[~_]''')
"}}}
- " Initialize force omni completion pattern."{{{
+ " Initialize force omni completion pattern. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_force_omni_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -635,7 +635,7 @@ function! neocomplcache#enable() "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_ignore_composite_filetype_lists', {})
- " Add commands."{{{
+ " Add commands. "{{{
command! -nargs=? Neco call s:display_neco(<q-args>)
command! -nargs=1 NeoComplCacheAutoCompletionLength
\ call s:set_auto_completion_length(<args>)
@@ -650,7 +650,7 @@ function! neocomplcache#enable() "{{{
let g:neocomplcache_min_keyword_length = 1
endif
- " Initialize omni function list."{{{
+ " Initialize omni function list. "{{{
if !exists('g:neocomplcache_omni_functions')
let g:neocomplcache_omni_functions = {}
endif
@@ -946,7 +946,7 @@ function! s:check_in_do_auto_complete() "{{{
endif
endfunction"}}}
-" Source helper."{{{
+" Source helper. "{{{
function! neocomplcache#available_complfuncs() "{{{
return s:complfunc_sources
endfunction"}}}
@@ -1019,7 +1019,7 @@ function! neocomplcache#keyword_escape(cur_keyword_str) "{{{
\ pattern, 'g') . keyword_escape[13:]
endif
else
- " Underbar completion."{{{
+ " Underbar completion. "{{{
if g:neocomplcache_enable_underbar_completion
\ && keyword_escape =~ '[^_]_\|^_'
let keyword_escape = substitute(keyword_escape,
@@ -1031,7 +1031,7 @@ function! neocomplcache#keyword_escape(cur_keyword_str) "{{{
\ '[^-]\zs-', '[^-]*-', 'g')
endif
"}}}
- " Camel case completion."{{{
+ " Camel case completion. "{{{
if g:neocomplcache_enable_camel_case_completion
\ && keyword_escape =~ '\u\?\U*'
let keyword_escape =
@@ -1238,7 +1238,7 @@ function! neocomplcache#add_dictionaries(dictionaries) "{{{
return ret
endfunction"}}}
-" Rank order."{{{
+" Rank order. "{{{
function! neocomplcache#compare_rank(i1, i2)
let diff = get(a:i2, 'rank', 0) - get(a:i1, 'rank', 0)
if !diff
@@ -1246,15 +1246,15 @@ function! neocomplcache#compare_rank(i1, i2)
endif
return diff
endfunction"}}}
-" Word order."{{{
+" Word order. "{{{
function! neocomplcache#compare_word(i1, i2)
return (a:i1.word ># a:i2.word) ? 1 : -1
endfunction"}}}
-" Nothing order."{{{
+" Nothing order. "{{{
function! neocomplcache#compare_nothing(i1, i2)
return 0
endfunction"}}}
-" Human order."{{{
+" Human order. "{{{
function! neocomplcache#compare_human(i1, i2)
let words_1 = map(split(a:i1.word, '\D\zs\ze\d'),
\ "v:val =~ '^\\d' ? str2nr(v:val) : v:val")
@@ -1274,12 +1274,12 @@ function! neocomplcache#compare_human(i1, i2)
return words_1_len - words_2_len
endfunction"}}}
-" Source rank order."{{{
+" Source rank order. "{{{
function! s:compare_source_rank(i1, i2)
return neocomplcache#get_source_rank(a:i2[0]) -
\ neocomplcache#get_source_rank(a:i1[0])
endfunction"}}}
-" Pos order."{{{
+" Pos order. "{{{
function! s:compare_pos(i1, i2)
return a:i1[0] == a:i2[0] ? a:i1[1] - a:i2[1] : a:i1[0] - a:i2[0]
endfunction"}}}
@@ -1860,7 +1860,7 @@ function! s:set_complete_results_pos(cur_text, ...) "{{{
call filter(sources, '!neocomplcache#is_plugin_locked(v:key)')
endif
- " Try source completion."{{{
+ " Try source completion. "{{{
let complete_results = {}
for [source_name, source] in items(sources)
if source.kind ==# 'plugin'
@@ -1992,7 +1992,7 @@ function! neocomplcache#filetype_complete(arglead, cmdline, cursorpos) "{{{
endfunction"}}}
"}}}
-" Command functions."{{{
+" Command functions. "{{{
function! neocomplcache#toggle_lock() "{{{
if !neocomplcache#is_enabled()
call neocomplcache#enable()
@@ -2215,7 +2215,7 @@ function! s:set_auto_completion_length(len) "{{{
endfunction"}}}
"}}}
-" Key mapping functions."{{{
+" Key mapping functions. "{{{
function! neocomplcache#smart_close_popup() "{{{
return g:neocomplcache_enable_auto_select ?
\ neocomplcache#cancel_popup() : neocomplcache#close_popup()
@@ -2349,7 +2349,7 @@ function! neocomplcache#start_manual_complete_list(cur_keyword_pos, cur_keyword_
endfunction"}}}
"}}}
-" Event functions."{{{
+" Event functions. "{{{
function! s:on_moved_i() "{{{
" Get cursor word.
let cur_text = s:get_cur_text()
@@ -2465,7 +2465,7 @@ function! s:clear_result()
endfunction
"}}}
-" Internal helper functions."{{{
+" Internal helper functions. "{{{
function! s:get_cur_text() "{{{
let cur_text =
\ (mode() ==# 'i' ? (col('.')-1) : col('.')) >= len(getline('.')) ?
View
26 autoload/neocomplcache/async_cache.vim
@@ -27,7 +27,7 @@
let s:save_cpo = &cpo
set cpo&vim
-function! s:main(argv)"{{{
+function! s:main(argv) "{{{
" args: funcname, outputname filename pattern_file_name mark minlen maxfilename
let [funcname, outputname, filename, pattern_file_name, mark, minlen, maxfilename, fileencoding]
\ = a:argv
@@ -65,7 +65,7 @@ function! s:main(argv)"{{{
call writefile([string(keyword_list)], outputname)
endfunction"}}}
-function! s:load_from_file(filename, pattern_file_name, mark, minlen, maxfilename, fileencoding)"{{{
+function! s:load_from_file(filename, pattern_file_name, mark, minlen, maxfilename, fileencoding) "{{{
if !filereadable(a:filename)
" File not found.
return []
@@ -84,9 +84,9 @@ function! s:load_from_file(filename, pattern_file_name, mark, minlen, maxfilenam
let dup_check = {}
let keyword_pattern2 = '^\%('.pattern.'\m\)'
- for line in lines"{{{
+ for line in lines "{{{
let match = match(line, pattern)
- while match >= 0"{{{
+ while match >= 0 "{{{
let match_str = matchstr(line, keyword_pattern2, match)
if !has_key(dup_check, match_str) && len(match_str) >= a:minlen
@@ -103,7 +103,7 @@ function! s:load_from_file(filename, pattern_file_name, mark, minlen, maxfilenam
return keyword_list
endfunction"}}}
-function! s:load_from_tags(filename, pattern_file_name, mark, minlen, maxfilename, fileencoding)"{{{
+function! s:load_from_tags(filename, pattern_file_name, mark, minlen, maxfilename, fileencoding) "{{{
let menu = '[' . a:mark . '] ' . s:strwidthpart(
\ fnamemodify(a:filename, ':t'), a:maxfilename)
@@ -145,7 +145,7 @@ function! s:load_from_tags(filename, pattern_file_name, mark, minlen, maxfilenam
\ a:mark, a:minlen, a:maxfilename, a:fileencoding)
endif
- for line in tags_list"{{{
+ for line in tags_list "{{{
let tag = split(substitute(line, "\<CR>", '', 'g'), '\t', 1)
" Add keywords.
@@ -221,7 +221,7 @@ function! s:load_from_tags(filename, pattern_file_name, mark, minlen, maxfilenam
return keyword_lists
endfunction"}}}
-function! s:truncate(str, width)"{{{
+function! s:truncate(str, width) "{{{
" Original function is from mattn.
" http://github.com/mattn/googlereader-vim/tree/master
@@ -244,7 +244,7 @@ function! s:truncate(str, width)"{{{
return ret
endfunction"}}}
-function! s:strwidthpart(str, width)"{{{
+function! s:strwidthpart(str, width) "{{{
let ret = a:str
let width = s:wcswidth(a:str)
while width > a:width
@@ -266,14 +266,14 @@ endfunction
if v:version >= 703
" Use builtin function.
- function! s:wcswidth(str)"{{{
+ function! s:wcswidth(str) "{{{
return strdisplaywidth(a:str)
endfunction"}}}
- function! s:wcwidth(str)"{{{
+ function! s:wcwidth(str) "{{{
return strwidth(a:str)
endfunction"}}}
else
- function! s:wcswidth(str)"{{{
+ function! s:wcswidth(str) "{{{
if a:str =~# '^[\x00-\x7f]*$'
return strlen(a:str)
end
@@ -293,7 +293,7 @@ else
endfunction"}}}
" UTF-8 only.
- function! s:wcwidth(ucs)"{{{
+ function! s:wcwidth(ucs) "{{{
let ucs = a:ucs
if (ucs >= 0x1100
\ && (ucs <= 0x115f
@@ -326,7 +326,7 @@ if argc() == 8 &&
qall!
else
- function! neocomplcache#async_cache#main(argv)"{{{
+ function! neocomplcache#async_cache#main(argv) "{{{
call s:main(a:argv)
endfunction"}}}
endif
View
30 autoload/neocomplcache/cache.vim
@@ -61,7 +61,7 @@ function! neocomplcache#cache#check_cache(cache_dir, key, async_cache_dictionary
\ a:cache_dir, a:key, a:async_cache_dictionary,
\ a:keyword_list_dictionary[a:key])
endfunction"}}}
-function! neocomplcache#cache#load_from_cache(cache_dir, filename)"{{{
+function! neocomplcache#cache#load_from_cache(cache_dir, filename) "{{{
try
return eval(get(neocomplcache#cache#readfile(
\ a:cache_dir, a:filename), 0, '[]'))
@@ -75,7 +75,7 @@ function! neocomplcache#cache#load_from_cache(cache_dir, filename)"{{{
return []
endtry
endfunction"}}}
-function! neocomplcache#cache#load_from_cache_old(cache_dir, filename)"{{{
+function! neocomplcache#cache#load_from_cache_old(cache_dir, filename) "{{{
try
return map(map(neocomplcache#cache#readfile(a:cache_dir, a:filename),
\ 'split(v:val, "|||", 1)'), '{
@@ -88,7 +88,7 @@ function! neocomplcache#cache#load_from_cache_old(cache_dir, filename)"{{{
return []
endtry
endfunction"}}}
-function! neocomplcache#cache#index_load_from_cache(cache_dir, filename)"{{{
+function! neocomplcache#cache#index_load_from_cache(cache_dir, filename) "{{{
let keyword_lists = {}
let completion_length = 2
@@ -102,7 +102,7 @@ function! neocomplcache#cache#index_load_from_cache(cache_dir, filename)"{{{
return keyword_lists
endfunction"}}}
-function! neocomplcache#cache#list2index(list, dictionary)"{{{
+function! neocomplcache#cache#list2index(list, dictionary) "{{{
let completion_length = 2
for keyword in a:list
let key = tolower(keyword.word[: completion_length-1])
@@ -115,11 +115,11 @@ function! neocomplcache#cache#list2index(list, dictionary)"{{{
return a:dictionary
endfunction"}}}
-function! neocomplcache#cache#save_cache(cache_dir, filename, keyword_list)"{{{
+function! neocomplcache#cache#save_cache(cache_dir, filename, keyword_list) "{{{
call neocomplcache#cache#writefile(
\ a:cache_dir, a:filename, [string(a:keyword_list)])
endfunction"}}}
-function! neocomplcache#cache#save_cache_old(cache_dir, filename, keyword_list)"{{{
+function! neocomplcache#cache#save_cache_old(cache_dir, filename, keyword_list) "{{{
" Create dictionary key.
for keyword in a:keyword_list
if !has_key(keyword, 'abbr')
@@ -145,19 +145,19 @@ function! neocomplcache#cache#save_cache_old(cache_dir, filename, keyword_list)"
endfunction"}}}
" Cache helper.
-function! neocomplcache#cache#getfilename(cache_dir, filename)"{{{
+function! neocomplcache#cache#getfilename(cache_dir, filename) "{{{
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.getfilename(cache_dir, a:filename)
endfunction"}}}
-function! neocomplcache#cache#filereadable(cache_dir, filename)"{{{
+function! neocomplcache#cache#filereadable(cache_dir, filename) "{{{
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.filereadable(cache_dir, a:filename)
endfunction"}}}
-function! neocomplcache#cache#readfile(cache_dir, filename)"{{{
+function! neocomplcache#cache#readfile(cache_dir, filename) "{{{
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.readfile(cache_dir, a:filename)
endfunction"}}}
-function! neocomplcache#cache#writefile(cache_dir, filename, list)"{{{
+function! neocomplcache#cache#writefile(cache_dir, filename, list) "{{{
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.writefile(cache_dir, a:filename, a:list)
endfunction"}}}
@@ -166,7 +166,7 @@ function! neocomplcache#cache#encode_name(cache_dir, filename)
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.getfilename(cache_dir, a:filename)
endfunction
-function! neocomplcache#cache#check_old_cache(cache_dir, filename)"{{{
+function! neocomplcache#cache#check_old_cache(cache_dir, filename) "{{{
let cache_dir = neocomplcache#get_temporary_directory() . '/' . a:cache_dir
return s:Cache.check_old_cache(cache_dir, a:filename)
endfunction"}}}
@@ -175,7 +175,7 @@ let s:sdir = neocomplcache#util#substitute_path_separator(
\ fnamemodify(expand('<sfile>'), ':p:h'))
" Async test.
-function! neocomplcache#cache#test_async()"{{{
+function! neocomplcache#cache#test_async() "{{{
if !neocomplcache#cache#check_old_cache(a:cache_dir, a:filename)
return neocomplcache#cache#encode_name(a:cache_dir, a:filename)
endif
@@ -203,7 +203,7 @@ function! neocomplcache#cache#test_async()"{{{
return s:async_load(argv, 'test_cache', filename)
endfunction"}}}
-function! neocomplcache#cache#async_load_from_file(cache_dir, filename, pattern, mark)"{{{
+function! neocomplcache#cache#async_load_from_file(cache_dir, filename, pattern, mark) "{{{
if !neocomplcache#cache#check_old_cache(a:cache_dir, a:filename)
return neocomplcache#cache#encode_name(a:cache_dir, a:filename)
endif
@@ -228,7 +228,7 @@ function! neocomplcache#cache#async_load_from_file(cache_dir, filename, pattern,
\ ]
return s:async_load(argv, a:cache_dir, a:filename)
endfunction"}}}
-function! neocomplcache#cache#async_load_from_tags(cache_dir, filename, filetype, mark, is_create_tags)"{{{
+function! neocomplcache#cache#async_load_from_tags(cache_dir, filename, filetype, mark, is_create_tags) "{{{
if !neocomplcache#cache#check_old_cache(a:cache_dir, a:filename)
return neocomplcache#cache#encode_name(a:cache_dir, a:filename)
endif
@@ -287,7 +287,7 @@ function! neocomplcache#cache#async_load_from_tags(cache_dir, filename, filetype
\ ]
return s:async_load(argv, a:cache_dir, a:filename)
endfunction"}}}
-function! s:async_load(argv, cache_dir, filename)"{{{
+function! s:async_load(argv, cache_dir, filename) "{{{
" if 0
if neocomplcache#has_vimproc()
let paths = vimproc#get_command_name(v:progname, $PATH, -1)
View
8 autoload/neocomplcache/sources/abbrev_complete.vim
@@ -32,14 +32,14 @@ let s:source = {
\ 'kind' : 'plugin',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Initialize.
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
endfunction"}}}
-function! s:source.get_keyword_list(cur_keyword_str)"{{{
+function! s:source.get_keyword_list(cur_keyword_str) "{{{
" Get current abbrev list.
let abbrev_list = ''
redir => abbrev_list
@@ -62,7 +62,7 @@ function! s:source.get_keyword_list(cur_keyword_str)"{{{
return neocomplcache#keyword_filter(list, a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#abbrev_complete#define()"{{{
+function! neocomplcache#sources#abbrev_complete#define() "{{{
return s:source
endfunction"}}}
View
50 autoload/neocomplcache/sources/buffer_complete.vim
@@ -37,8 +37,8 @@ let s:source = {
\ 'kind' : 'complfunc',
\}
-function! s:source.initialize()"{{{
- augroup neocomplcache"{{{
+function! s:source.initialize() "{{{
+ augroup neocomplcache "{{{
" Caching events
autocmd CursorHold *
\ call s:check_cache()
@@ -59,7 +59,7 @@ function! s:source.initialize()"{{{
call mkdir(neocomplcache#get_temporary_directory() . '/buffer_cache', 'p')
endif
- " Initialize script variables."{{{
+ " Initialize script variables. "{{{
let s:buffer_sources = {}
let s:cache_line_count = 70
let s:rank_cache_count = 1
@@ -74,7 +74,7 @@ function! s:source.initialize()"{{{
endfunction
"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingBuffer
delcommand NeoComplCachePrintSource
delcommand NeoComplCacheOutputKeyword
@@ -84,13 +84,13 @@ function! s:source.finalize()"{{{
let s:buffer_sources = {}
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
let [cur_keyword_pos, _] = neocomplcache#match_word(a:cur_text)
return cur_keyword_pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
call s:check_source()
let keyword_list = []
@@ -108,15 +108,15 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
return keyword_list
endfunction"}}}
-function! neocomplcache#sources#buffer_complete#define()"{{{
+function! neocomplcache#sources#buffer_complete#define() "{{{
return s:source
endfunction"}}}
-function! neocomplcache#sources#buffer_complete#caching_current_line()"{{{
+function! neocomplcache#sources#buffer_complete#caching_current_line() "{{{
" Current line caching.
return s:caching_current_buffer(line('.') - 1, line('.') + 1)
endfunction"}}}
-function! s:caching_current_buffer(start, end)"{{{
+function! s:caching_current_buffer(start, end) "{{{
" Current line caching.
if !s:exists_current_source()
@@ -137,11 +137,11 @@ function! s:caching_current_buffer(start, end)"{{{
let completion_length = 2
let line = join(getline(a:start, a:end))
let match = match(line, keyword_pattern)
- while match >= 0"{{{
+ while match >= 0 "{{{
let match_str = matchstr(line, keyword_pattern2, match)
" Ignore too short keyword.
- if len(match_str) >= g:neocomplcache_min_keyword_length"{{{
+ if len(match_str) >= g:neocomplcache_min_keyword_length "{{{
" Check dup.
let key = tolower(match_str[: completion_length-1])
if !has_key(keywords, key)
@@ -159,7 +159,7 @@ function! s:caching_current_buffer(start, end)"{{{
endwhile"}}}
endfunction"}}}
-function! s:get_sources_list()"{{{
+function! s:get_sources_list() "{{{
let sources_list = []
let filetypes_dict = {}
@@ -180,7 +180,7 @@ function! s:get_sources_list()"{{{
return sources_list
endfunction"}}}
-function! s:initialize_source(srcname)"{{{
+function! s:initialize_source(srcname) "{{{
let path = fnamemodify(bufname(a:srcname), ':p')
let filename = fnamemodify(path, ':t')
if filename == ''
@@ -209,7 +209,7 @@ function! s:initialize_source(srcname)"{{{
\}
endfunction"}}}
-function! s:word_caching(srcname)"{{{
+function! s:word_caching(srcname) "{{{
" Initialize source.
call s:initialize_source(a:srcname)
@@ -237,7 +237,7 @@ function! s:word_caching(srcname)"{{{
\ }]
endfunction"}}}
-function! s:check_changed_buffer(bufnumber)"{{{
+function! s:check_changed_buffer(bufnumber) "{{{
let source = s:buffer_sources[a:bufnumber]
let ft = getbufvar(a:bufnumber, '&filetype')
@@ -254,7 +254,7 @@ function! s:check_changed_buffer(bufnumber)"{{{
\ || s:buffer_sources[a:bufnumber].filetype != ft
endfunction"}}}
-function! s:check_source()"{{{
+function! s:check_source() "{{{
let bufnumber = bufnr('%')
" Check new buffer.
@@ -279,7 +279,7 @@ function! s:check_source()"{{{
call neocomplcache#cache#check_cache_list('buffer_cache',
\ source.path, s:async_dictionary_list, source.keyword_cache)
endfunction"}}}
-function! s:check_cache()"{{{
+function! s:check_cache() "{{{
let release_accessd_time =
\ localtime() - g:neocomplcache_release_cache_time
@@ -293,7 +293,7 @@ function! s:check_cache()"{{{
endif
endfor
endfunction"}}}
-function! s:check_recache()"{{{
+function! s:check_recache() "{{{
if !s:exists_current_source()
return
endif
@@ -312,12 +312,12 @@ function! s:check_recache()"{{{
endif
endfunction"}}}
-function! s:exists_current_source()"{{{
+function! s:exists_current_source() "{{{
return has_key(s:buffer_sources, bufnr('%'))
endfunction"}}}
-" Command functions."{{{
-function! neocomplcache#sources#buffer_complete#caching_buffer(name)"{{{
+" Command functions. "{{{
+function! neocomplcache#sources#buffer_complete#caching_buffer(name) "{{{
if a:name == ''
let number = bufnr('%')
else
@@ -348,7 +348,7 @@ function! neocomplcache#sources#buffer_complete#caching_buffer(name)"{{{
call s:word_caching(number)
call s:caching_current_buffer(1, line('$'))
endfunction"}}}
-function! neocomplcache#sources#buffer_complete#print_source(name)"{{{
+function! neocomplcache#sources#buffer_complete#print_source(name) "{{{
if a:name == ''
let number = bufnr('%')
else
@@ -369,7 +369,7 @@ function! neocomplcache#sources#buffer_complete#print_source(name)"{{{
silent put =printf('%s => %s', key, string(s:buffer_sources[number][key]))
endfor
endfunction"}}}
-function! neocomplcache#sources#buffer_complete#output_keyword(name)"{{{
+function! neocomplcache#sources#buffer_complete#output_keyword(name) "{{{
if a:name == ''
let number = bufnr('%')
else
@@ -391,7 +391,7 @@ function! neocomplcache#sources#buffer_complete#output_keyword(name)"{{{
silent put=string(keyword)
endfor
endfunction "}}}
-function! neocomplcache#sources#buffer_complete#disable_caching(name)"{{{
+function! neocomplcache#sources#buffer_complete#disable_caching(name) "{{{
if a:name == ''
let number = bufnr('%')
else
@@ -410,7 +410,7 @@ function! neocomplcache#sources#buffer_complete#disable_caching(name)"{{{
call remove(s:buffer_sources, number)
endif
endfunction"}}}
-function! neocomplcache#sources#buffer_complete#enable_caching(name)"{{{
+function! neocomplcache#sources#buffer_complete#enable_caching(name) "{{{
if a:name == ''
let number = bufnr('%')
else
View
16 autoload/neocomplcache/sources/dictionary_complete.vim
@@ -33,7 +33,7 @@ if !exists('s:dictionary_list')
let s:async_dictionary_list = {}
endif
-function! neocomplcache#sources#dictionary_complete#define()"{{{
+function! neocomplcache#sources#dictionary_complete#define() "{{{
return s:source
endfunction"}}}
@@ -42,8 +42,8 @@ let s:source = {
\ 'kind' : 'plugin',
\}
-function! s:source.initialize()"{{{
- " Initialize dictionary."{{{
+function! s:source.initialize() "{{{
+ " Initialize dictionary. "{{{
if !exists('g:neocomplcache_dictionary_filetype_lists')
let g:neocomplcache_dictionary_filetype_lists = {}
endif
@@ -52,7 +52,7 @@ function! s:source.initialize()"{{{
endif
"}}}
- " Initialize dictionary completion pattern."{{{
+ " Initialize dictionary completion pattern. "{{{
if !exists('g:neocomplcache_dictionary_patterns')
let g:neocomplcache_dictionary_patterns = {}
endif
@@ -74,11 +74,11 @@ function! s:source.initialize()"{{{
call s:caching()
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingDictionary
endfunction"}}}
-function! s:source.get_keyword_list(cur_keyword_str)"{{{
+function! s:source.get_keyword_list(cur_keyword_str) "{{{
let list = []
let filetype = neocomplcache#is_text_mode() ?
@@ -100,7 +100,7 @@ function! s:source.get_keyword_list(cur_keyword_str)"{{{
return list
endfunction"}}}
-function! s:caching()"{{{
+function! s:caching() "{{{
if !bufloaded(bufnr('%'))
return
endif
@@ -129,7 +129,7 @@ function! s:caching_dictionary(filetype)
call neocomplcache#sources#dictionary_complete#recaching(filetype)
endfunction
-function! neocomplcache#sources#dictionary_complete#recaching(filetype)"{{{
+function! neocomplcache#sources#dictionary_complete#recaching(filetype) "{{{
let filetype = a:filetype
if filetype == ''
let filetype = neocomplcache#get_context_filetype(1)
View
16 autoload/neocomplcache/sources/filename_complete.vim
@@ -32,7 +32,7 @@ let s:source = {
\ 'kind' : 'complfunc',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Initialize.
call neocomplcache#set_completion_length(
\ 'filename_complete', g:neocomplcache_auto_completion_start_length)
@@ -42,10 +42,10 @@ function! s:source.initialize()"{{{
\ 'g:neocomplcache_source_rank',
\ 'filename_complete', 3)
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
let filetype = neocomplcache#get_context_filetype()
if filetype ==# 'vimshell' || filetype ==# 'unite'
return -1
@@ -69,13 +69,13 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return cur_keyword_pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
return s:get_glob_files(a:cur_keyword_str, '')
endfunction"}}}
let s:cached_files = {}
-function! s:get_glob_files(cur_keyword_str, path)"{{{
+function! s:get_glob_files(cur_keyword_str, path) "{{{
let path = ',,' . substitute(a:path, '\.\%(,\|$\)\|,,', '', 'g')
let cur_keyword_str = substitute(a:cur_keyword_str,
@@ -195,18 +195,18 @@ function! s:get_glob_files(cur_keyword_str, path)"{{{
return dir_list + file_list
endfunction"}}}
-function! s:caching_current_files()"{{{
+function! s:caching_current_files() "{{{
let s:cached_files[getcwd()] = neocomplcache#util#glob('*')
if !exists('vimproc#readdir')
let s:cached_files[getcwd()] += neocomplcache#util#glob('.*')
endif
endfunction"}}}
-function! neocomplcache#sources#filename_complete#define()"{{{
+function! neocomplcache#sources#filename_complete#define() "{{{
return s:source
endfunction"}}}
-function! neocomplcache#sources#filename_complete#get_complete_words(cur_keyword_str, path)"{{{
+function! neocomplcache#sources#filename_complete#get_complete_words(cur_keyword_str, path) "{{{
if !neocomplcache#is_enabled()
return []
endif
View
20 autoload/neocomplcache/sources/filename_include.vim
@@ -27,7 +27,7 @@
let s:save_cpo = &cpo
set cpo&vim
-" Global options definition."{{{
+" Global options definition. "{{{
if !exists('g:neocomplcache_include_patterns')
let g:neocomplcache_include_patterns = {}
endif
@@ -47,12 +47,12 @@ let s:source = {
\ 'kind' : 'complfunc',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Initialize.
call neocomplcache#set_completion_length(
\ s:source.name, g:neocomplcache_auto_completion_start_length)
- " Initialize filename include expr."{{{
+ " Initialize filename include expr. "{{{
let g:neocomplcache_filename_include_exprs =
\ get(g:, 'neocomplcache_filename_include_exprs', {})
call neocomplcache#util#set_default_dictionary(
@@ -65,7 +65,7 @@ function! s:source.initialize()"{{{
\ 'fnamemodify(substitute(v:fname, "/", ".", "g"), ":r")')
"}}}
- " Initialize filename include extensions."{{{
+ " Initialize filename include extensions. "{{{
let g:neocomplcache_filename_include_exts =
\ get(g:, 'neocomplcache_filename_include_exts', {})
call neocomplcache#util#set_default_dictionary(
@@ -87,10 +87,10 @@ function! s:source.initialize()"{{{
\ 'g:neocomplcache_source_rank',
\ s:source.name, 10)
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
let filetype = neocomplcache#get_context_filetype()
" Not Filename pattern.
@@ -134,11 +134,11 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return cur_keyword_pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
return s:get_include_files(a:cur_keyword_str)
endfunction"}}}
-function! s:get_include_files(cur_keyword_str)"{{{
+function! s:get_include_files(cur_keyword_str) "{{{
let filetype = neocomplcache#get_context_filetype()
let path = neocomplcache#util#substitute_path_separator(
@@ -221,7 +221,7 @@ function! s:get_include_files(cur_keyword_str)"{{{
\ + neocomplcache#keyword_filter(file_list, a:cur_keyword_str)
endfunction"}}}
-function! s:get_default_include_files(filetype)"{{{
+function! s:get_default_include_files(filetype) "{{{
let files = []
if a:filetype ==# 'python' || a:filetype ==# 'python3'
@@ -231,7 +231,7 @@ function! s:get_default_include_files(filetype)"{{{
return map(files, "{ 'word' : v:val, 'menu' : '[FI]' }")
endfunction"}}}
-function! neocomplcache#sources#filename_include#define()"{{{
+function! neocomplcache#sources#filename_include#define() "{{{
return s:source
endfunction"}}}
View
46 autoload/neocomplcache/sources/include_complete.vim
@@ -34,7 +34,7 @@ if !exists('s:include_info')
let s:async_include_cache = {}
let s:cached_pattern = {}
- " Initialize include pattern."{{{
+ " Initialize include pattern. "{{{
let g:neocomplcache_include_patterns =
\ get(g:, 'neocomplcache_include_patterns', {})
call neocomplcache#util#set_default_dictionary(
@@ -47,7 +47,7 @@ if !exists('s:include_info')
\ 'g:neocomplcache_include_patterns',
\ 'ruby', '^\s*\<\%(load\|require\|require_relative\)\>')
"}}}
- " Initialize expr pattern."{{{
+ " Initialize expr pattern. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_include_exprs', {})
call neocomplcache#util#set_default_dictionary(
@@ -55,18 +55,18 @@ if !exists('s:include_info')
\ 'haskell,cs',
\ "substitute(v:fname, '\\.', '/', 'g')")
"}}}
- " Initialize path pattern."{{{
+ " Initialize path pattern. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_include_paths', {})
"}}}
- " Initialize include suffixes."{{{
+ " Initialize include suffixes. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_include_suffixes', {})
call neocomplcache#util#set_default_dictionary(
\ 'g:neocomplcache_include_suffixes',
\ 'haskell', '.hs')
"}}}
- " Initialize include functions."{{{
+ " Initialize include functions. "{{{
call neocomplcache#util#set_default(
\ 'g:neocomplcache_include_functions', {})
" call neocomplcache#util#set_default_dictionary(
@@ -83,7 +83,7 @@ let s:source = {
\ 'kind' : 'plugin',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Set rank.
call neocomplcache#util#set_default_dictionary(
\ 'g:neocomplcache_source_rank', 'include_complete', 8)
@@ -109,7 +109,7 @@ function! s:source.initialize()"{{{
endif
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingInclude
if neocomplcache#exists_echodoc()
@@ -117,7 +117,7 @@ function! s:source.finalize()"{{{
endif
endfunction"}}}
-function! s:source.get_keyword_list(cur_keyword_str)"{{{
+function! s:source.get_keyword_list(cur_keyword_str) "{{{
if neocomplcache#within_comment()
return []
endif
@@ -144,11 +144,11 @@ function! s:source.get_keyword_list(cur_keyword_str)"{{{
\ neocomplcache#dup_filter(keyword_list), a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#include_complete#define()"{{{
+function! neocomplcache#sources#include_complete#define() "{{{
return s:source
endfunction"}}}
-function! neocomplcache#sources#include_complete#get_include_files(bufnumber)"{{{
+function! neocomplcache#sources#include_complete#get_include_files(bufnumber) "{{{
if has_key(s:include_info, a:bufnumber)
return copy(s:include_info[a:bufnumber].include_files)
else
@@ -156,7 +156,7 @@ function! neocomplcache#sources#include_complete#get_include_files(bufnumber)"{{
endif
endfunction"}}}
-function! neocomplcache#sources#include_complete#get_include_tags(bufnumber)"{{{
+function! neocomplcache#sources#include_complete#get_include_tags(bufnumber) "{{{
return filter(map(
\ neocomplcache#sources#include_complete#get_include_files(a:bufnumber),
\ "neocomplcache#cache#encode_name('tags_output', v:val)"),
@@ -164,17 +164,17 @@ function! neocomplcache#sources#include_complete#get_include_tags(bufnumber)"{{{
endfunction"}}}
" For Debug.
-function! neocomplcache#sources#include_complete#get_current_include_files()"{{{
+function! neocomplcache#sources#include_complete#get_current_include_files() "{{{
return s:get_buffer_include_files(bufnr('%'))
endfunction"}}}
-" For echodoc."{{{
+" For echodoc. "{{{
let s:doc_dict = {
\ 'name' : 'include_complete',
\ 'rank' : 5,
\ 'filetypes' : {},
\ }
-function! s:doc_dict.search(cur_text)"{{{
+function! s:doc_dict.search(cur_text) "{{{
if &filetype ==# 'vim' || !has_key(s:include_info, bufnr('%'))
return []
endif
@@ -221,7 +221,7 @@ function! s:doc_dict.search(cur_text)"{{{
endfunction"}}}
"}}}
-function! s:check_buffer(bufnumber, is_force)"{{{
+function! s:check_buffer(bufnumber, is_force) "{{{
if !neocomplcache#is_enabled_source('include_complete')
return
endif
@@ -292,7 +292,7 @@ function! s:check_buffer(bufnumber, is_force)"{{{
endif
endfor
endfunction"}}}
-function! s:get_buffer_include_files(bufnumber)"{{{
+function! s:get_buffer_include_files(bufnumber) "{{{
let filetype = getbufvar(a:bufnumber, '&filetype')
if filetype == ''
return []
@@ -359,9 +359,9 @@ function! s:get_buffer_include_files(bufnumber)"{{{
return include_files
endfunction"}}}
-function! s:get_include_files(nestlevel, lines, filetype, pattern, path, expr)"{{{
+function! s:get_include_files(nestlevel, lines, filetype, pattern, path, expr) "{{{
let include_files = []
- for line in a:lines"{{{
+ for line in a:lines "{{{
if line =~ a:pattern
let match_end = matchend(line, a:pattern)
if a:expr != ''
@@ -393,7 +393,7 @@ function! s:get_include_files(nestlevel, lines, filetype, pattern, path, expr)"{
return include_files
endfunction"}}}
-function! s:check_cache()"{{{
+function! s:check_cache() "{{{
if neocomplcache#is_disabled_source('include_complete')
return
endif
@@ -408,7 +408,7 @@ function! s:check_cache()"{{{
endfor
endfunction"}}}
-function! s:initialize_include(filename, filetype)"{{{
+function! s:initialize_include(filename, filetype) "{{{
" Initialize include list from tags.
return {
\ 'filename' : a:filename,
@@ -416,7 +416,7 @@ function! s:initialize_include(filename, filetype)"{{{
\ 'include_cache', a:filename, a:filetype, 'I', 1)
\ }
endfunction"}}}
-function! neocomplcache#sources#include_complete#caching_include(bufname)"{{{
+function! neocomplcache#sources#include_complete#caching_include(bufname) "{{{
let bufnumber = (a:bufname == '') ? bufnr('%') : bufnr(a:bufname)
if has_key(s:async_include_cache, bufnumber)
\ && filereadable(s:async_include_cache[bufnumber].cache_name)
@@ -433,7 +433,7 @@ function! neocomplcache#sources#include_complete#caching_include(bufname)"{{{
endfunction"}}}
" Analyze include files functions.
-function! neocomplcache#sources#include_complete#analyze_vim_include_files(lines, path)"{{{
+function! neocomplcache#sources#include_complete#analyze_vim_include_files(lines, path) "{{{
let include_files = []
let dup_check = {}
for line in a:lines
@@ -454,7 +454,7 @@ function! neocomplcache#sources#include_complete#analyze_vim_include_files(lines
return include_files
endfunction"}}}
-function! neocomplcache#sources#include_complete#analyze_ruby_include_files(lines, path)"{{{
+function! neocomplcache#sources#include_complete#analyze_ruby_include_files(lines, path) "{{{
let include_files = []
let dup_check = {}
for line in a:lines
View
32 autoload/neocomplcache/sources/member_complete.vim
@@ -37,8 +37,8 @@ let s:source = {
\ 'kind' : 'complfunc',
\}
-function! s:source.initialize()"{{{
- augroup neocomplcache"{{{
+function! s:source.initialize() "{{{
+ augroup neocomplcache "{{{
" Caching events
autocmd CursorHold * call s:caching_current_buffer(line('.')-10, line('.')+10)
autocmd InsertEnter,InsertLeave *
@@ -53,7 +53,7 @@ function! s:source.initialize()"{{{
" Set completion length.
call neocomplcache#set_completion_length('member_complete', 0)
- " Initialize member prefix patterns."{{{
+ " Initialize member prefix patterns. "{{{
if !exists('g:neocomplcache_member_prefix_patterns')
let g:neocomplcache_member_prefix_patterns = {}
endif
@@ -71,7 +71,7 @@ function! s:source.initialize()"{{{
\ 'lua', '\.\|:')
"}}}
- " Initialize member patterns."{{{
+ " Initialize member patterns. "{{{
if !exists('g:neocomplcache_member_patterns')
let g:neocomplcache_member_patterns = {}
endif
@@ -80,13 +80,13 @@ function! s:source.initialize()"{{{
\'default', '\h\w*\%(()\|\[\h\w*\]\)\?')
"}}}
- " Initialize script variables."{{{
+ " Initialize script variables. "{{{
let s:member_sources = {}
"}}}
endfunction
"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
" Check member prefix pattern.
let filetype = neocomplcache#get_context_filetype()
if !has_key(g:neocomplcache_member_prefix_patterns, filetype)
@@ -101,7 +101,7 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return cur_keyword_pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
" Check member prefix pattern.
let filetype = neocomplcache#get_context_filetype()
if !has_key(g:neocomplcache_member_prefix_patterns, filetype)
@@ -121,19 +121,19 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
\ copy(s:get_member_list(cur_text, var_name)), a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#member_complete#define()"{{{
+function! neocomplcache#sources#member_complete#define() "{{{
return s:source
endfunction"}}}
-function! neocomplcache#sources#member_complete#caching_current_line()"{{{
+function! neocomplcache#sources#member_complete#caching_current_line() "{{{
" Current line caching.
return s:caching_current_buffer(line('.')-1, line('.')+1)
endfunction"}}}
-function! neocomplcache#sources#member_complete#caching_current_buffer()"{{{
+function! neocomplcache#sources#member_complete#caching_current_buffer() "{{{
" Current line caching.
return s:caching_current_buffer(1, line('$'))
endfunction"}}}
-function! s:caching_current_buffer(start, end)"{{{
+function! s:caching_current_buffer(start, end) "{{{
" Current line caching.
if !has_key(s:member_sources, bufnr('%'))
@@ -160,7 +160,7 @@ function! s:caching_current_buffer(start, end)"{{{
for line in getline(a:start, a:end)
let match = match(line, keyword_pattern)
- while match >= 0"{{{
+ while match >= 0 "{{{
let match_str = matchstr(line, keyword_pattern2, match)
" Next match.
@@ -187,7 +187,7 @@ function! s:caching_current_buffer(start, end)"{{{
endfor
endfunction"}}}
-function! s:get_member_list(cur_text, var_name)"{{{
+function! s:get_member_list(cur_text, var_name) "{{{
let keyword_list = []
for [key, source] in filter(s:get_sources_list(),
\ 'has_key(v:val[1].member_cache, a:var_name)')
@@ -198,7 +198,7 @@ function! s:get_member_list(cur_text, var_name)"{{{
return keyword_list
endfunction"}}}
-function! s:get_sources_list()"{{{
+function! s:get_sources_list() "{{{
let sources_list = []
let filetypes_dict = {}
@@ -219,7 +219,7 @@ function! s:get_sources_list()"{{{
return sources_list
endfunction"}}}
-function! s:initialize_source(srcname)"{{{
+function! s:initialize_source(srcname) "{{{
let path = fnamemodify(bufname(a:srcname), ':p')
let filename = fnamemodify(path, ':t')
if filename == ''
@@ -242,7 +242,7 @@ function! s:initialize_source(srcname)"{{{
\}
endfunction"}}}
-function! s:get_member_pattern(filetype)"{{{
+function! s:get_member_pattern(filetype) "{{{
return has_key(g:neocomplcache_member_patterns, a:filetype) ?
\ g:neocomplcache_member_patterns[a:filetype] :
\ g:neocomplcache_member_patterns['default']
View
24 autoload/neocomplcache/sources/omni_complete.vim
@@ -35,8 +35,8 @@ let s:source = {
let s:List = vital#of('neocomplcache').import('Data.List')
-function! s:source.initialize()"{{{
- " Initialize omni completion pattern."{{{
+function! s:source.initialize() "{{{
+ " Initialize omni completion pattern. "{{{
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
@@ -104,10 +104,10 @@ function! s:source.initialize()"{{{
\ 'g:neocomplcache_source_rank',
\ 'omni_complete', 300)
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
let syn_name = neocomplcache#get_syn_name(1)
if syn_name ==# 'Comment' || syn_name ==# 'String'
" Skip omni_complete in string literal.
@@ -121,17 +121,17 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return s:get_cur_keyword_pos(s:complete_results)
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
return s:get_complete_words(
\ s:set_complete_results_words(s:complete_results),
\ a:cur_keyword_pos, a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#omni_complete#define()"{{{
+function! neocomplcache#sources#omni_complete#define() "{{{
return s:source
endfunction"}}}
-function! s:get_omni_funcs(filetype)"{{{
+function! s:get_omni_funcs(filetype) "{{{
let funcs = []
for ft in insert(split(a:filetype, '\.'), '_')
if has_key(g:neocomplcache_omni_functions, ft)
@@ -167,7 +167,7 @@ function! s:get_omni_funcs(filetype)"{{{
return s:List.uniq(funcs)
endfunction"}}}
-function! s:get_omni_list(list)"{{{
+function! s:get_omni_list(list) "{{{
let omni_list = []
" Convert string list.
@@ -188,8 +188,8 @@ function! s:get_omni_list(list)"{{{
return omni_list
endfunction"}}}
-function! s:set_complete_results_pos(funcs, cur_text)"{{{
- " Try omnifunc completion."{{{
+function! s:set_complete_results_pos(funcs, cur_text) "{{{
+ " Try omnifunc completion. "{{{
let complete_results = {}
for [omnifunc, pattern] in a:funcs
if neocomplcache#is_auto_complete()
@@ -231,7 +231,7 @@ function! s:set_complete_results_pos(funcs, cur_text)"{{{
return complete_results
endfunction"}}}
-function! s:set_complete_results_words(complete_results)"{{{
+function! s:set_complete_results_words(complete_results) "{{{
" Try source completion.
for [omnifunc, result] in items(a:complete_results)
if neocomplcache#complete_check()
@@ -272,7 +272,7 @@ function! s:set_complete_results_words(complete_results)"{{{
return a:complete_results
endfunction"}}}
-function! s:get_cur_keyword_pos(complete_results)"{{{
+function! s:get_cur_keyword_pos(complete_results) "{{{
if empty(a:complete_results)
return -1
endif
View
24 autoload/neocomplcache/sources/syntax_complete.vim
@@ -37,7 +37,7 @@ let s:source = {
\ 'kind' : 'plugin',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Set rank.
call neocomplcache#util#set_default_dictionary(
\ 'g:neocomplcache_source_rank', 'syntax_complete', 7)
@@ -54,11 +54,11 @@ function! s:source.initialize()"{{{
call s:caching()
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingSyntax
endfunction"}}}
-function! s:source.get_keyword_list(cur_keyword_str)"{{{
+function! s:source.get_keyword_list(cur_keyword_str) "{{{
if neocomplcache#within_comment()
return []
endif
@@ -82,11 +82,11 @@ function! s:source.get_keyword_list(cur_keyword_str)"{{{
return list
endfunction"}}}
-function! neocomplcache#sources#syntax_complete#define()"{{{
+function! neocomplcache#sources#syntax_complete#define() "{{{
return s:source
endfunction"}}}
-function! s:caching()"{{{
+function! s:caching() "{{{
if &filetype == '' || &filetype ==# 'vim'
return
endif
@@ -111,7 +111,7 @@ function! s:caching()"{{{
endfor
endfunction"}}}
-function! neocomplcache#sources#syntax_complete#recaching(filetype)"{{{
+function! neocomplcache#sources#syntax_complete#recaching(filetype) "{{{
if a:filetype == ''
let filetype = &filetype
else
@@ -122,7 +122,7 @@ function! neocomplcache#sources#syntax_complete#recaching(filetype)"{{{
let s:syntax_list[filetype] = s:caching_from_syn(filetype)
endfunction"}}}
-function! s:caching_from_syn(filetype)"{{{
+function! s:caching_from_syn(filetype) "{{{
call neocomplcache#print_caching(
\ 'Caching syntax "' . a:filetype . '"... please wait.')
@@ -207,12 +207,12 @@ function! s:caching_from_syn(filetype)"{{{
return keyword_lists
endfunction"}}}
-" LengthOrder."{{{
+" LengthOrder. "{{{
function! s:compare_length(i1, i2)
return a:i1.word < a:i2.word ? 1 : a:i1.word == a:i2.word ? 0 : -1
endfunction"}}}
-function! s:substitute_candidate(candidate)"{{{
+function! s:substitute_candidate(candidate) "{{{
let candidate = a:candidate
" Collection.
@@ -237,7 +237,7 @@ function! s:substitute_candidate(candidate)"{{{
return candidate
endfunction"}}}
-function! s:split_pattern(keyword_pattern)"{{{
+function! s:split_pattern(keyword_pattern) "{{{
let original_pattern = a:keyword_pattern
let result_patterns = []
let analyzing_patterns = [ '' ]
@@ -294,7 +294,7 @@ function! s:split_pattern(keyword_pattern)"{{{
return result_patterns
endfunction"}}}
-function! s:match_pair(string, start_pattern, end_pattern, start_cnt)"{{{
+function! s:match_pair(string, start_pattern, end_pattern, start_cnt) "{{{
let end = -1
let start_pattern = '\%(' . a:start_pattern . '\)'
let end_pattern = '\%(' . a:end_pattern . '\)'
@@ -329,7 +329,7 @@ function! s:match_pair(string, start_pattern, end_pattern, start_cnt)"{{{
endif
endfunction"}}}
-" Global options definition."{{{
+" Global options definition. "{{{
if !exists('g:neocomplcache_min_syntax_length')
let g:neocomplcache_min_syntax_length = 4
endif
View
12 autoload/neocomplcache/sources/tags_complete.vim
@@ -38,7 +38,7 @@ let s:source = {
\ 'kind' : 'plugin',
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
let g:neocomplcache_tags_caching_limit_file_size =
\ get(g:, 'neocomplcache_tags_caching_limit_file_size', 500000)
@@ -48,15 +48,15 @@ function! s:source.initialize()"{{{
endif
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingTags
endfunction"}}}
-function! neocomplcache#sources#tags_complete#define()"{{{
+function! neocomplcache#sources#tags_complete#define() "{{{
return s:source
endfunction"}}}
-function! s:source.get_keyword_list(cur_keyword_str)"{{{
+function! s:source.get_keyword_list(cur_keyword_str) "{{{
if !has_key(s:async_tags_list, bufnr('%'))
\ && !has_key(s:tags_list, bufnr('%'))
call neocomplcache#sources#tags_complete#caching_tags(0)
@@ -78,7 +78,7 @@ function! s:source.get_keyword_list(cur_keyword_str)"{{{
return neocomplcache#keyword_filter(keyword_list, a:cur_keyword_str)
endfunction"}}}
-function! s:initialize_tags(filename)"{{{
+function! s:initialize_tags(filename) "{{{
" Initialize tags list.
let ft = &filetype
if ft == ''
@@ -91,7 +91,7 @@ function! s:initialize_tags(filename)"{{{
\ 'tags_cache', a:filename, ft, 'T', 0)
\ }
endfunction"}}}
-function! neocomplcache#sources#tags_complete#caching_tags(force)"{{{
+function! neocomplcache#sources#tags_complete#caching_tags(force) "{{{
let bufnumber = bufnr('%')
let s:async_tags_list[bufnumber] = []
View
16 autoload/neocomplcache/sources/vim_complete.vim
@@ -33,10 +33,10 @@ let s:source = {
\ 'filetypes' : { 'vim' : 1, },
\}
-function! s:source.initialize()"{{{
+function! s:source.initialize() "{{{
" Initialize.
- " Initialize complete function list."{{{
+ " Initialize complete function list. "{{{
if !exists('g:neocomplcache_vim_completefuncs')
let g:neocomplcache_vim_completefuncs = {}
endif
@@ -59,7 +59,7 @@ function! s:source.initialize()"{{{
\ call neocomplcache#sources#vim_complete#helper#recaching(<q-args>)
endfunction"}}}
-function! s:source.finalize()"{{{
+function! s:source.finalize() "{{{
delcommand NeoComplCacheCachingVim
if neocomplcache#exists_echodoc()
@@ -67,7 +67,7 @@ function! s:source.finalize()"{{{
endif
endfunction"}}}
-function! s:source.get_keyword_pos(cur_text)"{{{
+function! s:source.get_keyword_pos(cur_text) "{{{
let cur_text = neocomplcache#sources#vim_complete#get_cur_text()
if cur_text =~ '^\s*"'
@@ -105,7 +105,7 @@ function! s:source.get_keyword_pos(cur_text)"{{{
return cur_keyword_pos
endfunction"}}}
-function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
+function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
let cur_text = neocomplcache#sources#vim_complete#get_cur_text()
if neocomplcache#is_auto_complete() && cur_text !~ '\h\w*\.\%(\h\w*\)\?$'
\ && len(a:cur_keyword_str) < g:neocomplcache_auto_completion_start_length
@@ -168,11 +168,11 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str)"{{{
return neocomplcache#keyword_filter(copy(list), a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#vim_complete#define()"{{{
+function! neocomplcache#sources#vim_complete#define() "{{{
return s:source
endfunction"}}}
-function! neocomplcache#sources#vim_complete#get_cur_text()"{{{
+function! neocomplcache#sources#vim_complete#get_cur_text() "{{{
let cur_text = neocomplcache#get_cur_text(1)
if &filetype == 'vimshell' && exists('*vimshell#get_secondary_prompt')
\ && empty(b:vimshell.continuation)
@@ -190,7 +190,7 @@ function! neocomplcache#sources#vim_complete#get_cur_text()"{{{
return split(cur_text, '\s\+|\s\+\|<bar>', 1)[-1]
endfunction"}}}
-function! neocomplcache#sources#vim_complete#get_command(cur_text)"{{{
+function! neocomplcache#sources#vim_complete#get_command(cur_text) "{{{
return matchstr(a:cur_text, '\<\%(\d\+\)\?\zs\h\w*\ze!\?\|'.
\ '\<\%([[:digit:],[:space:]$''<>]\+\)\?\zs\h\w*\ze/.*')
endfunction"}}}
View
112 autoload/neocomplcache/sources/vim_complete/helper.vim
@@ -34,7 +34,7 @@ if !exists('s:internal_candidates_list')
let s:local_candidates_list = {}
endif
-function! neocomplcache#sources#vim_complete#helper#on_filetype()"{{{
+function! neocomplcache#sources#vim_complete#helper#on_filetype() "{{{
" Caching script candidates.
let bufnumber = 1
@@ -53,7 +53,7 @@ function! neocomplcache#sources#vim_complete#helper#on_filetype()"{{{
endif
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#recaching(bufname)"{{{
+function! neocomplcache#sources#vim_complete#helper#recaching(bufname) "{{{
" Caching script candidates.
let bufnumber = a:bufname != '' ? bufnr(a:bufname) : bufnr('%')
@@ -63,13 +63,13 @@ function! neocomplcache#sources#vim_complete#helper#recaching(bufname)"{{{
let s:global_candidates_list = { 'dictionary_variables' : {} }
endfunction"}}}
-" For echodoc."{{{
+" For echodoc. "{{{
let s:doc_dict = {
\ 'name' : 'vim_complete',
\ 'rank' : 10,
\ 'filetypes' : { 'vim' : 1 },
\ }
-function! s:doc_dict.search(cur_text)"{{{
+function! s:doc_dict.search(cur_text) "{{{
let cur_text = a:cur_text
" Echo prototype.
@@ -120,7 +120,7 @@ function! s:doc_dict.search(cur_text)"{{{
endfunction"}}}
"}}}
-function! neocomplcache#sources#vim_complete#helper#get_command_completion(command_name, cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#get_command_completion(command_name, cur_text, cur_keyword_str) "{{{
let completion_name =
\ neocomplcache#sources#vim_complete#helper#get_completion_name(a:command_name)
if completion_name == ''
@@ -132,7 +132,7 @@ function! neocomplcache#sources#vim_complete#helper#get_command_completion(comma
\ [a:command_name, a:cur_text, a:cur_keyword_str] : [a:cur_text, a:cur_keyword_str]
return call('neocomplcache#sources#vim_complete#helper#'.completion_name, args)
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#get_completion_name(command_name)"{{{
+function! neocomplcache#sources#vim_complete#helper#get_completion_name(command_name) "{{{
if !has_key(s:internal_candidates_list, 'command_completions')
let s:internal_candidates_list.command_completions =
\ s:caching_completion_from_dict('command_completions')
@@ -155,7 +155,7 @@ function! neocomplcache#sources#vim_complete#helper#get_completion_name(command_
endif
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#autocmd_args(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#autocmd_args(cur_text, cur_keyword_str) "{{{
let args = s:split_args(a:cur_text, a:cur_keyword_str)
if len(args) < 2
return []
@@ -196,7 +196,7 @@ function! neocomplcache#sources#vim_complete#helper#autocmd_args(cur_text, cur_k
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#augroup(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#augroup(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:global_candidates_list, 'augroups')
let s:global_candidates_list.augroups = s:get_augrouplist()
@@ -204,14 +204,14 @@ function! neocomplcache#sources#vim_complete#helper#augroup(cur_text, cur_keywor
return s:global_candidates_list.augroups
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#buffer(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#buffer(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#colorscheme_args(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#colorscheme_args(cur_text, cur_keyword_str) "{{{
return s:make_completion_list(filter(map(split(globpath(&runtimepath, 'colors/*.vim'), '\n'),
\'fnamemodify(v:val, ":t:r")'), 'stridx(v:val, a:cur_keyword_str) == 0'), '[vim] colorscheme', '')
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#command(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#command(cur_text, cur_keyword_str) "{{{
if a:cur_text == '' ||
\ a:cur_text =~ '^[[:digit:],[:space:][:tab:]$''<>]*\h\w*$'
" Commands.
@@ -269,7 +269,7 @@ function! neocomplcache#sources#vim_complete#helper#command(cur_text, cur_keywor
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#command_args(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#command_args(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:internal_candidates_list, 'command_args')
let s:internal_candidates_list.command_args =
@@ -281,7 +281,7 @@ function! neocomplcache#sources#vim_complete#helper#command_args(cur_text, cur_k
return s:internal_candidates_list.command_args +
\ s:internal_candidates_list.command_replaces
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#custom(command_name, cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#custom(command_name, cur_text, cur_keyword_str) "{{{
if !has_key(g:neocomplcache_vim_completefuncs, a:command_name)
return []
endif
@@ -291,7 +291,7 @@ function! neocomplcache#sources#vim_complete#helper#custom(command_name, cur_tex
\ [a:cur_keyword_str, getline('.'), len(a:cur_text)]),
\ '\n'), '[vim] custom', '')
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#customlist(command_name, cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#customlist(command_name, cur_text, cur_keyword_str) "{{{
if !has_key(g:neocomplcache_vim_completefuncs, a:command_name)
return []
endif
@@ -301,7 +301,7 @@ function! neocomplcache#sources#vim_complete#helper#customlist(command_name, cur
\ [a:cur_keyword_str, getline('.'), len(a:cur_text)]),
\ '[vim] customlist', '')
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#dir(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#dir(cur_text, cur_keyword_str) "{{{
" Check dup.
let check = {}
for keyword in filter(split(substitute(globpath(&cdpath, a:cur_keyword_str . '*'), '\\', '/', 'g'), '\n'), 'isdirectory(v:val)')
@@ -327,7 +327,7 @@ function! neocomplcache#sources#vim_complete#helper#dir(cur_text, cur_keyword_st
return ret
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#environment(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#environment(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:global_candidates_list, 'environments')
let s:global_candidates_list.environments = s:get_envlist()
@@ -335,10 +335,10 @@ function! neocomplcache#sources#vim_complete#helper#environment(cur_text, cur_ke
return s:global_candidates_list.environments
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#event(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#event(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#execute(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#execute(cur_text, cur_keyword_str) "{{{
if a:cur_text =~ '["''][^"'']*$'
let command = matchstr(a:cur_text, '["'']\zs[^"'']*$')
return neocomplcache#sources#vim_complete#helper#command(command, a:cur_keyword_str)
@@ -346,20 +346,20 @@ function! neocomplcache#sources#vim_complete#helper#execute(cur_text, cur_keywor
return neocomplcache#sources#vim_complete#helper#expression(a:cur_text, a:cur_keyword_str)
endif
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#expression(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#expression(cur_text, cur_keyword_str) "{{{
return neocomplcache#sources#vim_complete#helper#function(a:cur_text, a:cur_keyword_str)
\+ neocomplcache#sources#vim_complete#helper#var(a:cur_text, a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#feature(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#feature(cur_text, cur_keyword_str) "{{{
if !has_key(s:internal_candidates_list, 'features')
let s:internal_candidates_list.features = s:caching_from_dict('features', '')
endif
return s:internal_candidates_list.features
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#file(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#file(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#filetype(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#filetype(cur_text, cur_keyword_str) "{{{
if !has_key(s:internal_candidates_list, 'filetypes')
let s:internal_candidates_list.filetypes =
\ neocomplcache#pack_dictionary(s:make_completion_list(map(
@@ -373,7 +373,7 @@ function! neocomplcache#sources#vim_complete#helper#filetype(cur_text, cur_keywo
return neocomplcache#dictionary_filter(
\ s:internal_candidates_list.filetypes, a:cur_keyword_str)
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#function(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#function(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:global_candidates_list, 'functions')
let s:global_candidates_list.functions =
@@ -414,13 +414,13 @@ function! neocomplcache#sources#vim_complete#helper#function(cur_text, cur_keywo
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#help(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#help(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#highlight(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#highlight(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#let(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#let(cur_text, cur_keyword_str) "{{{
if a:cur_text !~ '='
return neocomplcache#sources#vim_complete#helper#var(a:cur_text, a:cur_keyword_str)
elseif a:cur_text =~# '\<let\s\+&\%([lg]:\)\?filetype\s*=\s*'
@@ -430,7 +430,7 @@ function! neocomplcache#sources#vim_complete#helper#let(cur_text, cur_keyword_st
return neocomplcache#sources#vim_complete#helper#expression(a:cur_text, a:cur_keyword_str)
endif
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#mapping(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#mapping(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:global_candidates_list, 'mappings')
let s:global_candidates_list.mappings = s:get_mappinglist()
@@ -450,10 +450,10 @@ function! neocomplcache#sources#vim_complete#helper#mapping(cur_text, cur_keywor
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#menu(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#menu(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#option(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#option(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:internal_candidates_list, 'options')
let s:internal_candidates_list.options = s:caching_from_dict('options', 'o')
@@ -471,16 +471,16 @@ function! neocomplcache#sources#vim_complete#helper#option(cur_text, cur_keyword
return s:internal_candidates_list.options
endif
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#shellcmd(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#shellcmd(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#tag(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#tag(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#tag_listfiles(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#tag_listfiles(cur_text, cur_keyword_str) "{{{
return []
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#var_dictionary(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#var_dictionary(cur_text, cur_keyword_str) "{{{
let var_name = matchstr(a:cur_text,
\'\%(\a:\)\?\h\w*\ze\.\%(\h\w*\%(()\?\)\?\)\?$')
let list = []
@@ -494,7 +494,7 @@ function! neocomplcache#sources#vim_complete#helper#var_dictionary(cur_text, cur
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#var(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#var(cur_text, cur_keyword_str) "{{{
" Caching.
if !has_key(s:global_candidates_list, 'variables')
let s:global_candidates_list.variables =
@@ -517,13 +517,13 @@ function! neocomplcache#sources#vim_complete#helper#var(cur_text, cur_keyword_st
return list
endfunction"}}}
-function! neocomplcache#sources#vim_complete#helper#expand(cur_text, cur_keyword_str)"{{{
+function! neocomplcache#sources#vim_complete#helper#expand(cur_text, cur_keyword_str) "{{{
return s:make_completion_list(
\ ['<cfile>', '<afile>', '<abuf>', '<amatch>', '<sfile>', '<cword>', '<cWORD>', '<client>'],
\ '[vim] expand', '')
endfunction"}}}
-function! s:get_local_variables()"{{{
+function! s:get_local_variables() "{{{
" Get local variable list.
let keyword_dict = {}
@@ -566,12 +566,12 @@ function! s:get_local_variables()"{{{
return values(keyword_dict)
endfunction"}}}
-function! s:get_cached_script_candidates()"{{{
+function! s:get_cached_script_candidates() "{{{
return has_key(s:script_candidates_list, bufnr('%')) && v:version > 700 ?
\ s:script_candidates_list[bufnr('%')] : {
\ 'functions' : {}, 'variables' : {}, 'function_prototypes' : {}, 'dictionary_variables' : {} }
endfunction"}}}
-function! s:get_script_candidates(bufnumber)"{{{
+function! s:get_script_candidates(bufnumber) "{{{
" Get script candidate list.
let function_dict = {}
@@ -606,7 +606,7 @@ function! s:get_script_candidates(bufnumber)"{{{
\ 'dictionary_variables' : dictionary_variable_dict }
endfunction"}}}
-function! s:caching_from_dict(dict_name, kind)"{{{
+function! s:caching_from_dict(dict_name, kind) "{{{
let dict_files = split(globpath(&runtimepath,
\ 'autoload/neocomplcache/sources/vim_complete/'.a:dict_name.'.dict'), '\n')
if empty(dict_files)
@@ -628,7 +628,7 @@ function! s:caching_from_dict(dict_name, kind)"{{{
return keyword_list
endfunction"}}}
-function! s:caching_completion_from_dict(dict_name)"{{{
+function! s:caching_completion_from_dict(dict_name) "{{{
let dict_files = split(globpath(&runtimepath,
\ 'autoload/neocomplcache/sources/vim_complete/'.a:dict_name.'.dict'), '\n')
if empty(dict_files)
@@ -656,7 +656,7 @@ function! s:caching_completion_from_dict(dict_name)"{{{
return keyword_dict
endfunction"}}}
-function! s:caching_prototype_from_dict(dict_name)"{{{
+function! s:caching_prototype_from_dict(dict_name) "{{{
let dict_files = split(globpath(&runtimepath,
\ 'autoload/neocomplcache/sources/vim_complete/'.a:dict_name.'.dict'), '\n')
if empty(dict_files)
@@ -688,7 +688,7 @@ function! s:caching_prototype_from_dict(dict_name)"{{{
return keyword_dict
endfunction"}}}
-function! s:get_cmdlist()"{{{
+function! s:get_cmdlist() "{{{
" Get command list.
redir => redir
silent! command
@@ -752,14 +752,14 @@ function! s:get_cmdlist()"{{{
return keyword_list
endfunction"}}}
-function! s:get_variablelist(dict, prefix)"{{{
+function! s:get_variablelist(dict, prefix) "{{{
let kind_dict = ['0', '""', '()', '[]', '{}', '.']
return values(map(copy(a:dict), '{
\ "word" : a:prefix.v:key, "menu" : "[vim] variable",
\ "kind" : kind_dict[type(v:val)],
\}'))
endfunction"}}}
-function! s:get_functionlist()"{{{
+function! s:get_functionlist() "{{{
" Get function list.
redir => redir
silent! function
@@ -790,7 +790,7 @@ function! s:get_functionlist()"{{{
return values(keyword_dict)
endfunction"}}}
-function! s:get_augrouplist()"{{{
+function! s:get_augrouplist() "{{{
" Get augroup list.
redir => redir
silent! augroup
@@ -803,7 +803,7 @@ function! s:get_augrouplist()"{{{
endfor
return keyword_list
endfunction"}}}
-function! s:get_mappinglist()"{{{
+function! s:get_mappinglist() "{{{
" Get mapping list.
redir => redir
silent! map
@@ -820,7 +820,7 @@ function! s:get_mappinglist()"{{{
endfor
return keyword_list
endfunction"}}}
-function! s:get_envlist()"{{{
+function! s:get_envlist() "{{{
" Get environment variable list.
let keyword_list = []
@@ -831,7 +831,7 @@ function! s:get_envlist()"{{{
endfor
return keyword_list
endfunction"}}}
-function! s:get_endlist()"{{{
+function! s:get_endlist() "{{{
" Get end command list.
let keyword_dict = {}
@@ -895,7 +895,7 @@ function! s:get_endlist()"{{{
return (word == '')? [] : [{'word' : word, 'menu' : menu_pattern, 'kind' : 'c'}]
endfunction"}}}
-function! s:make_completion_list(list, menu_pattern, kind)"{{{
+function! s:make_completion_list(list, menu_pattern, kind) "{{{
let list = []
for item in a:list
call add(list, { 'word' : item, 'menu' : a:menu_pattern, 'kind' : a:kind })
@@ -903,7 +903,7 @@ function! s:make_completion_list(list, menu_pattern, kind)"{{{
return list
endfunction"}}}
-function! s:analyze_function_line(line, keyword_dict, prototype)"{{{
+function! s:analyze_function_line(line, keyword_dict, prototype) "{{{
let menu_pattern = '[vim] function'
" Get script function.
@@ -917,7 +917,7 @@ function! s:analyze_function_line(line, keyword_dict, prototype)"{{{
let a:prototype[word] = orig_line[len(word):]
endif
endfunction"}}}
-function! s:analyze_variable_line(line, keyword_dict)"{{{
+function! s:analyze_variable_line(line, keyword_dict) "{{{
let menu_pattern = '[vim] variable'
if a:line =~ '\<\%(let\|for\)\s\+\a[[:alnum:]_:]*'
@@ -979,7 +979,7 @@ function! s:analyze_variable_line(line, keyword_dict)"{{{
endif
endif
endfunction"}}}
-function! s:analyze_dictionary_variable_line(line, keyword_dict, var_name)"{{{
+function! s:analyze_dictionary_variable_line(line, keyword_dict, var_name) "{{{
let menu_pattern = '[vim] dictionary'