about summary refs log tree commit diff
path: root/snippets/js2-mode
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-09T21·50-0400
committerGriffin Smith <root@gws.fyi>2019-07-09T21·50-0400
commit23b179ad1d3d2e07c114741dffc50a8343f0a7a6 (patch)
tree46a6a982b7de4710ddf35ffdf2439d6291924d53 /snippets/js2-mode
parenta3eb6846b3eeb739bce26a7b92b6a634688e57af (diff)
A bunch of new snippets
Diffstat (limited to 'snippets/js2-mode')
-rw-r--r--snippets/js2-mode/before7
-rw-r--r--snippets/js2-mode/context7
-rw-r--r--snippets/js2-mode/function6
3 files changed, 20 insertions, 0 deletions
diff --git a/snippets/js2-mode/before b/snippets/js2-mode/before
new file mode 100644
index 0000000000..4569b65831
--- /dev/null
+++ b/snippets/js2-mode/before
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: before
+# key: bef
+# --
+before(function() {
+                  $1
+})
diff --git a/snippets/js2-mode/context b/snippets/js2-mode/context
new file mode 100644
index 0000000000..d83809f3c3
--- /dev/null
+++ b/snippets/js2-mode/context
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: context
+# key: context
+# --
+context('$1', function() {
+              $2
+})
diff --git a/snippets/js2-mode/function b/snippets/js2-mode/function
new file mode 100644
index 0000000000..b423044b44
--- /dev/null
+++ b/snippets/js2-mode/function
@@ -0,0 +1,6 @@
+# key: f
+# name: function
+# --
+function $1($2) {
+         $3
+}
\ No newline at end of file