Fix #383 escape problem

Este commit está contenido en:
Shougo Matsushita 2017-04-20 07:25:32 +09:00
padre 1a6653b69d
commit c91ac0b67f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -108,7 +108,7 @@ function! neosnippet#get_mirror_placeholder_marker_pattern() abort "{{{
return '<|\d\+|>'
endfunction"}}}
function! neosnippet#get_mirror_placeholder_marker_substitute_pattern() abort "{{{
return '\$\(\d\+\)'
return '\\\@<!\$\(\d\+\)'
endfunction"}}}
let &cpo = s:save_cpo

Ver fichero

@ -67,7 +67,7 @@ function! neosnippet#view#_insert(snippet, options, cur_text, col) abort "{{{
\ '<|\1|>', 'g')
" Substitute escaped characters.
let snip_word = substitute(snip_word, '\\\(\\\|`\)', '\1', 'g')
let snip_word = substitute(snip_word, '\\\(\\\|`\|\$\)', '\1', 'g')
" Insert snippets.
let next_line = getline('.')[a:col-1 :]