From a3e3958d302ffe2d1d35504036d042da039934f1 Mon Sep 17 00:00:00 2001 From: Michael Sanders Date: Sun, 22 Mar 2009 19:17:42 -0400 Subject: [PATCH] fixed bug with special characters in snippet triggers --- plugin/snipMate.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/snipMate.vim b/plugin/snipMate.vim index ff5e6e2..28cdbe8 100644 --- a/plugin/snipMate.vim +++ b/plugin/snipMate.vim @@ -1,6 +1,6 @@ " File: snipMate.vim " Author: Michael Sanders -" Version: 0.72 +" Version: 0.74 " Description: snipMate.vim implements some of TextMate's snippets features in " Vim. A snippet is a piece of often-typed text that you can " insert into your document using a trigger word followed by a "". @@ -148,7 +148,7 @@ endf fun s:GetSnippet(word, scope) let word = a:word 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] elseif exists('s:multi_snips["'.a:scope.'"]["'.word.'"]') let s:snippet = s:ChooseSnippet(a:scope, word)