mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 08:54:19 +00:00
Import snippets for scala-mode and nxml-mode from Anders.
This commit is contained in:
9
snippets/text-mode/scala-mode/try
Normal file
9
snippets/text-mode/scala-mode/try
Normal file
@@ -0,0 +1,9 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : try { .. } catch { case e => ..}
|
||||
# --
|
||||
try {
|
||||
$0
|
||||
} catch {
|
||||
case ${1:e}: ${2:Exception} =>
|
||||
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
|
||||
}
|
||||
Reference in New Issue
Block a user