mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-30 10:22:33 +01:00
fixed a typo in the renames
Signed-off-by: Michael Sanders <msanders42@gmail.com>
This commit is contained in:
committed by
Michael Sanders
parent
0180a85088
commit
4a63cf2adc
@@ -146,12 +146,12 @@ endf
|
|||||||
" Check if word under cursor is snippet trigger; if it isn't, try checking if
|
" Check if word under cursor is snippet trigger; if it isn't, try checking if
|
||||||
" the text after non-word characters is (e.g. check for "foo" in "bar.foo")
|
" the text after non-word characters is (e.g. check for "foo" in "bar.foo")
|
||||||
fun s:GetSnippet(scope, ft)
|
fun s:GetSnippet(scope, ft)
|
||||||
let word = a:word
|
let word = a:scope
|
||||||
wh !exists('s:snippet')
|
wh !exists('s:snippet')
|
||||||
if exists('s:snippets["'.a:scope.'"]["'.word.'"]')
|
if exists('s:snippets["'.a:ft.'"]["'.word.'"]')
|
||||||
let s:snippet = s:snippets[a:scope][word]
|
let s:snippet = s:snippets[a:ft][word]
|
||||||
elseif exists('s:multi_snips["'.a:scope.'"]["'.word.'"]')
|
elseif exists('s:multi_snips["'.a:ft.'"]["'.word.'"]')
|
||||||
let s:snippet = s:ChooseSnippet(a:scope, word)
|
let s:snippet = s:ChooseSnippet(a:ft, word)
|
||||||
else
|
else
|
||||||
if match(word, '\W') == -1 | break | endif
|
if match(word, '\W') == -1 | break | endif
|
||||||
let word = substitute(word, '.\{-}\W', '', '')
|
let word = substitute(word, '.\{-}\W', '', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user