mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 09:54:17 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: begin
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: begin … rescue … end
|
||||
# binding: "^W"
|
||||
# --
|
||||
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}begin
|
||||
${3:${TM_SELECTED_TEXT/(\A.*)|(.+)|\n\z/(?1:$0:(?2:\t$0))/g}}
|
||||
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}rescue ${1:Exception}${2/.+/ => /}${2:e}
|
||||
${TM_SELECTED_TEXT/([\t ]*).*/$1/m} $0
|
||||
${TM_SELECTED_TEXT/([\t ]*).*/$1/m}end
|
||||
Reference in New Issue
Block a user