Fix #400 Check eval snippet

This commit is contained in:
Shougo Matsushita 2017-09-18 21:18:20 +09:00
부모 0e829d51b1
커밋 5bf290f923
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -530,8 +530,10 @@ function! s:eval_snippet(snippet_text) abort "{{{
endif
let prev_match = matchend(a:snippet_text,
\ '\\\@<!`.\{-}\\\@<!`', match)
let snip_word .= eval(
\ a:snippet_text[match+1 : prev_match - 2])
let expr = a:snippet_text[match+1 : prev_match - 2]
if expr != ''
let snip_word .= eval(expr)
endif
let match = match(a:snippet_text, '\\\@<!`.\{-}\\\@<!`', prev_match)
endwhile