mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 09:54:17 +00:00
* Fix issue 113: invalid filenames on Windows. Thanks claudio.bley!
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: begin
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: begin … rescue … end
|
||||
## binding: "C-c C-w"
|
||||
# condition: (not (yas/ruby-in-comment-p))
|
||||
# --
|
||||
begin
|
||||
`(or yas/selected-text
|
||||
(and cua-mode
|
||||
(prog1
|
||||
(get-register ?0)
|
||||
(set-register ?0 nil)))
|
||||
(car kill-ring))`$3
|
||||
rescue ${1:Exception}${2:$(if (string= yas/text "") "" " => ")}${2:e}
|
||||
$0
|
||||
end
|
||||
Reference in New Issue
Block a user