dotfiles/.emacs.d/snippets/js-mode/try-catch

11 lines
153 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
# -*- mode: snippet; require-final-newline: nil -*-
# name: try...catch statement
# key: try
# --
try {
$1
} catch (err) {
$2
}${3: finally {
$4
}}