aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-04-01 12:32:08 +0900
committermattn <mattn.jp@gmail.com>2014-04-01 12:32:08 +0900
commit1d727f5f226e28484b985b4e7c368df1c39a9023 (patch)
tree505c06d7ab57b1b77406b03fd09cc222b21aa8cb
parent1339a5319cc4fdd7608afe8e0c9371c8395d27a2 (diff)
downloadvim-sonictemplate-1d727f5f226e28484b985b4e7c368df1c39a9023.tar.gz
vim-sonictemplate-1d727f5f226e28484b985b4e7c368df1c39a9023.tar.bz2
vim-sonictemplate-1d727f5f226e28484b985b4e7c368df1c39a9023.zip
Add try/catch/finally
-rw-r--r--template/javascript/snip-try-catch-finally.js6
-rw-r--r--template/javascript/snip-try-catch.js5
2 files changed, 11 insertions, 0 deletions
diff --git a/template/javascript/snip-try-catch-finally.js b/template/javascript/snip-try-catch-finally.js
new file mode 100644
index 0000000..959276f
--- /dev/null
+++ b/template/javascript/snip-try-catch-finally.js
@@ -0,0 +1,6 @@
+try {
+ {{_cursor_}}
+} catch(e) {
+} finally {
+}
+
diff --git a/template/javascript/snip-try-catch.js b/template/javascript/snip-try-catch.js
new file mode 100644
index 0000000..88c806d
--- /dev/null
+++ b/template/javascript/snip-try-catch.js
@@ -0,0 +1,5 @@
+try {
+ {{_cursor_}}
+} catch(e) {
+}
+