Fix #383 escape problem
This commit is contained in:
parent
1a6653b69d
commit
c91ac0b67f
@ -108,7 +108,7 @@ function! neosnippet#get_mirror_placeholder_marker_pattern() abort "{{{
|
|||||||
return '<|\d\+|>'
|
return '<|\d\+|>'
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! neosnippet#get_mirror_placeholder_marker_substitute_pattern() abort "{{{
|
function! neosnippet#get_mirror_placeholder_marker_substitute_pattern() abort "{{{
|
||||||
return '\$\(\d\+\)'
|
return '\\\@<!\$\(\d\+\)'
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
|
@ -67,7 +67,7 @@ function! neosnippet#view#_insert(snippet, options, cur_text, col) abort "{{{
|
|||||||
\ '<|\1|>', 'g')
|
\ '<|\1|>', 'g')
|
||||||
|
|
||||||
" Substitute escaped characters.
|
" Substitute escaped characters.
|
||||||
let snip_word = substitute(snip_word, '\\\(\\\|`\)', '\1', 'g')
|
let snip_word = substitute(snip_word, '\\\(\\\|`\|\$\)', '\1', 'g')
|
||||||
|
|
||||||
" Insert snippets.
|
" Insert snippets.
|
||||||
let next_line = getline('.')[a:col-1 :]
|
let next_line = getline('.')[a:col-1 :]
|
||||||
|
Loading…
Reference in New Issue
Block a user