From e45c9a804160be75e4e224855a688fc98294f36e Mon Sep 17 00:00:00 2001 From: Goare Mao Date: Mon, 2 Dec 2013 19:23:05 +0800 Subject: [PATCH] fix a little problem --- UltiSnips/ruby.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UltiSnips/ruby.snippets b/UltiSnips/ruby.snippets index e47348c..411a8a6 100644 --- a/UltiSnips/ruby.snippets +++ b/UltiSnips/ruby.snippets @@ -355,7 +355,7 @@ endsnippet -snippet "(\S+)\.Each_w(ith)?_?i(ndex)?" ".each_with_index { |,| }" r +snippet "(\S+)\.Each_?w(ith)?_?i(ndex)?" ".each_with_index { |,| }" r `!p snip.rv=match.group(1)`.each_with_index { |${1:`!p element_name = match.group(1).lstrip('$@') ematch = re.search("([A-Za-z][A-Za-z0-9_]+?)s?[^A-Za-z0-9_]*?$", element_name)