mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 00:44:18 +00:00
re-design snippets hierarchy
This commit is contained in:
8
snippets/text-mode/perl-mode/eval
Normal file
8
snippets/text-mode/perl-mode/eval
Normal file
@@ -0,0 +1,8 @@
|
||||
#name : eval { ... } if ($@) { ... }
|
||||
# --
|
||||
eval {
|
||||
${1:# do something risky...}
|
||||
};
|
||||
if (\$@) {
|
||||
${2:# handle failure...}
|
||||
}
|
||||
Reference in New Issue
Block a user