diff options
author | mattn <mattn.jp@gmail.com> | 2014-04-01 12:32:08 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-04-01 12:32:08 +0900 |
commit | 1d727f5f226e28484b985b4e7c368df1c39a9023 (patch) | |
tree | 505c06d7ab57b1b77406b03fd09cc222b21aa8cb | |
parent | 1339a5319cc4fdd7608afe8e0c9371c8395d27a2 (diff) | |
download | vim-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.js | 6 | ||||
-rw-r--r-- | template/javascript/snip-try-catch.js | 5 |
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) { +} + |