Fix completed snippet behavior
This commit is contained in:
@@ -78,11 +78,6 @@ function! s:suite.get_completed_snippet()
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }, ''), '${1:#:hoge}${2:#:, ...})${3}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo{', 'abbr' : 'foo{}',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }, ''), '}${1}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'foo{', 'abbr' : 'foo{',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
@@ -128,5 +123,10 @@ function! s:suite.get_completed_snippet()
|
||||
\ 'word' : 'forEach', 'abbr' : 'forEach(BiConsumer<Object, Object>)',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }, ''), '(${1:#:BiConsumer<>})${2}')
|
||||
|
||||
call s:assert.equals(neosnippet#parser#_get_completed_snippet({
|
||||
\ 'word' : 'for[', 'abbr' : '',
|
||||
\ 'menu' : '', 'info' : ''
|
||||
\ }, ''), '${1}]${2}')
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user