Add abort flag

This commit is contained in:
Shougo Matsushita
2016-02-08 21:48:14 +09:00
parent 232d2e8def
commit 644b551aff
17 changed files with 148 additions and 148 deletions

View File

@@ -33,7 +33,7 @@ let s:source = {
\ g:neocomplcache_auto_completion_start_length,
\}
function! s:source.initialize() "{{{
function! s:source.initialize() abort "{{{
" Initialize.
call neocomplcache#set_dictionary_helper(
\ g:neocomplcache_source_rank, 'snippets_complete', 8)
@@ -41,7 +41,7 @@ function! s:source.initialize() "{{{
\ g:neocomplcache_auto_completion_start_length)
endfunction"}}}
function! s:source.get_keyword_pos(cur_text) "{{{
function! s:source.get_keyword_pos(cur_text) abort "{{{
let cur_word = matchstr(a:cur_text, '\w\+$')
let word_candidates = neocomplcache#keyword_filter(
\ filter(values(neosnippet#helpers#get_snippets()),
@@ -53,7 +53,7 @@ function! s:source.get_keyword_pos(cur_text) "{{{
return match(a:cur_text, '\S\+$')
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) abort "{{{
let list = s:keyword_filter(neosnippet#helpers#get_snippets(), a:cur_keyword_str)
for snippet in list
@@ -66,7 +66,7 @@ function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) "{{{
return list
endfunction"}}}
function! s:keyword_filter(snippets, cur_keyword_str) "{{{
function! s:keyword_filter(snippets, cur_keyword_str) abort "{{{
" Uniq by real_name.
let dict = {}
@@ -89,7 +89,7 @@ function! s:keyword_filter(snippets, cur_keyword_str) "{{{
return values(dict)
endfunction"}}}
function! neocomplcache#sources#snippets_complete#define() "{{{
function! neocomplcache#sources#snippets_complete#define() abort "{{{
return s:source
endfunction"}}}