mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-22 05:47:59 +01:00
added fix for more special characters (., ^, and $) in snippet triggers
This commit is contained in:
@@ -126,7 +126,7 @@ fun! TriggerSnippet()
|
|||||||
return unl s:snippet
|
return unl s:snippet
|
||||||
endif
|
endif
|
||||||
let col = col('.')-len(word)
|
let col = col('.')-len(word)
|
||||||
sil exe 's/'.escape(word, '/\*[]').'\%#//'
|
sil exe 's/'.escape(word, '.^$/\*[]').'\%#//'
|
||||||
return s:ExpandSnippet(col)
|
return s:ExpandSnippet(col)
|
||||||
elseif exists('s:snipPos')
|
elseif exists('s:snipPos')
|
||||||
return s:JumpTabStop()
|
return s:JumpTabStop()
|
||||||
|
|||||||
Reference in New Issue
Block a user