Fix paren parser

This commit is contained in:
Shougo Matsushita
2015-09-01 05:56:41 +09:00
parent d4a154ff6d
commit 1617094a8c
2 changed files with 39 additions and 1 deletions

12
test/functions.vim Normal file
View File

@@ -0,0 +1,12 @@
let s:suite = themis#suite('toml')
let s:assert = themis#helper('assert')
function! s:suite.get_in_paren()
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar)'),
\ 'foobar')
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar, baz)'),
\ 'foobar, baz')
call s:assert.equals(neosnippet#handlers#_get_in_paren('(foobar, (baz))'),
\ 'foobar, (baz)')
endfunction