Created
August 20, 2019 17:12
-
-
Save mark-d-holmberg/cb43ea2e985d2794302f7cf4252b6a26 to your computer and use it in GitHub Desktop.
Sublime Text 3 Begin Rescue End
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[${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 | |
]]></content> | |
<tabTrigger>begin</tabTrigger> | |
<scope>source.ruby - comment</scope> | |
<description>begin … rescue … end</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment