mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-20 21:08:01 +01:00
fixed bug with special characters in snippet triggers
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
" File: snipMate.vim
|
" File: snipMate.vim
|
||||||
" Author: Michael Sanders
|
" Author: Michael Sanders
|
||||||
" Version: 0.72
|
" Version: 0.74
|
||||||
" Description: snipMate.vim implements some of TextMate's snippets features in
|
" Description: snipMate.vim implements some of TextMate's snippets features in
|
||||||
" Vim. A snippet is a piece of often-typed text that you can
|
" Vim. A snippet is a piece of often-typed text that you can
|
||||||
" insert into your document using a trigger word followed by a "<tab>".
|
" insert into your document using a trigger word followed by a "<tab>".
|
||||||
@@ -148,7 +148,7 @@ endf
|
|||||||
fun s:GetSnippet(word, scope)
|
fun s:GetSnippet(word, scope)
|
||||||
let word = a:word
|
let word = a:word
|
||||||
wh !exists('s:snippet')
|
wh !exists('s:snippet')
|
||||||
if exists('s:snippets["'.a:scope.'"]["'.word.'"]')
|
if exists('s:snippets["'.a:scope.'"]['''.word.''']')
|
||||||
let s:snippet = s:snippets[a:scope][word]
|
let s:snippet = s:snippets[a:scope][word]
|
||||||
elseif exists('s:multi_snips["'.a:scope.'"]["'.word.'"]')
|
elseif exists('s:multi_snips["'.a:scope.'"]["'.word.'"]')
|
||||||
let s:snippet = s:ChooseSnippet(a:scope, word)
|
let s:snippet = s:ChooseSnippet(a:scope, word)
|
||||||
|
|||||||
Reference in New Issue
Block a user