Browse Source

Fix #383 escape problem

PR/fix-warning
Shougo Matsushita 7 years ago
parent
commit
c91ac0b67f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      autoload/neosnippet.vim
  2. +1
    -1
      autoload/neosnippet/view.vim

+ 1
- 1
autoload/neosnippet.vim View File

@@ -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


+ 1
- 1
autoload/neosnippet/view.vim View File

@@ -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 :]


Loading…
Cancel
Save