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

11 lines
153 B
Plaintext

# -*- mode: snippet; require-final-newline: nil -*-
# name: try...catch statement
# key: try
# --
try {
$1
} catch (err) {
$2
}${3: finally {
$4
}}