- Converted markers.

This commit is contained in:
Shougo Matsushita
2012-12-13 17:34:20 +09:00
parent 0fa62bcea1
commit c98182d10d
8 changed files with 118 additions and 118 deletions

View File

@@ -82,13 +82,13 @@ function! s:source.gather_candidates(args, context) "{{{
return list
endfunction "}}}
" Actions"{{{
" Actions "{{{
let s:action_table = {}
let s:action_table.expand = {
\ 'description' : 'expand snippet',
\ }
function! s:action_table.expand.func(candidate)"{{{
function! s:action_table.expand.func(candidate) "{{{
let cur_text = neosnippet#util#get_cur_text()
let cur_keyword_str = matchstr(cur_text, '\S\+$')
let context = unite#get_context()
@@ -102,7 +102,7 @@ let s:action_table.preview = {
\ 'is_selectable' : 1,
\ 'is_quit' : 0,
\ }
function! s:action_table.preview.func(candidates)"{{{
function! s:action_table.preview.func(candidates) "{{{
for snip in a:candidates
echohl String
echo snip.action__complete_word
@@ -118,7 +118,7 @@ let s:action_table.unite__new_candidate = {
\ 'description' : 'add new snippet',
\ 'is_quit' : 1,
\ }
function! s:action_table.unite__new_candidate.func(candidate)"{{{
function! s:action_table.unite__new_candidate.func(candidate) "{{{
let trigger = unite#util#input('Please input snippet trigger: ')
if trigger == ''
echo 'Canceled.'
@@ -171,7 +171,7 @@ function! unite#sources#snippet#start_complete() "{{{
\ { 'input': neosnippet#util#get_cur_text(), 'buffer_name' : '' })
endfunction "}}}
function! s:get_keyword_pos(cur_text)"{{{
function! s:get_keyword_pos(cur_text) "{{{
let cur_keyword_pos = match(a:cur_text, '\S\+$')
if cur_keyword_pos < 0
" Empty string.

View File

@@ -70,11 +70,11 @@ function! s:source.gather_candidates(args, context) "{{{
return list
endfunction "}}}
" Actions"{{{
" Actions "{{{
let s:source.action_table.select = {
\ 'description' : 'select targetted snippet',
\ }
function! s:source.action_table.select.func(candidate)"{{{
function! s:source.action_table.select.func(candidate) "{{{
let context = a:candidate.source__context
if bufnr('%') != context.source__bufnr ||
\ line('.') != context.source__linenr
@@ -105,7 +105,7 @@ function! unite#sources#snippet_target#start() "{{{
\ { 'buffer_name' : 'snippet/target' })
endfunction "}}}
function! s:get_keyword_pos(cur_text)"{{{
function! s:get_keyword_pos(cur_text) "{{{
let cur_keyword_pos = match(a:cur_text, '\S\+$')
if cur_keyword_pos < 0
" Empty string.