mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00

The format is: # var-name: value Previously snippets used a mixture of the following formatting: #var-name: value #var-name : value # var-name: value # var-name : value
12 lines
249 B
Plaintext
12 lines
249 B
Plaintext
# Author: Jonas Bonèr <jonas@jonasboner.com>
|
|
# name: try { .. } catch { case e => ..} finally { ..}
|
|
# key: try
|
|
# --
|
|
try {
|
|
$0
|
|
} catch {
|
|
case ${1:e}: ${2:Exception} =>
|
|
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
|
|
} finally {
|
|
|
|
} |