From c07996bd22625e0349b0d7c070ce3b67a61a8047 Mon Sep 17 00:00:00 2001 From: Goare Mao Date: Tue, 3 Dec 2013 11:18:21 +0800 Subject: [PATCH] fix `each_slice` can't trigger --- UltiSnips/ruby.snippets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UltiSnips/ruby.snippets b/UltiSnips/ruby.snippets index e47348c..238994b 100644 --- a/UltiSnips/ruby.snippets +++ b/UltiSnips/ruby.snippets @@ -249,16 +249,16 @@ endsnippet -snippet each_?s(lice)? ".each_slice(n) do |slice| end" -each_slice(${1:2}) do |${2:slice}| +snippet "each_?s(lice)?" ".each_slice(n) do |slice| end" r +${1:elements}.each_slice(${2:2}) do |${3:slice}| ${0:# TODO} end endsnippet -snippet Each_?s(lice)? ".each_slice(n) { |slice| }" -each_slice(${1:2}) { |${2:slice}| ${3:# TODO} } +snippet "Each_?s(lice)?" ".each_slice(n) { |slice| }" r +${1:elements}.each_slice(${2:2}) { |${3:slice}| ${0:# TODO} } endsnippet