A bunch of new snippets
This commit is contained in:
parent
a3eb6846b3
commit
23b179ad1d
12 changed files with 76 additions and 0 deletions
7
snippets/js2-mode/before
Normal file
7
snippets/js2-mode/before
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: before
|
||||
# key: bef
|
||||
# --
|
||||
before(function() {
|
||||
$1
|
||||
})
|
||||
7
snippets/js2-mode/context
Normal file
7
snippets/js2-mode/context
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: context
|
||||
# key: context
|
||||
# --
|
||||
context('$1', function() {
|
||||
$2
|
||||
})
|
||||
6
snippets/js2-mode/function
Normal file
6
snippets/js2-mode/function
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# key: f
|
||||
# name: function
|
||||
# --
|
||||
function $1($2) {
|
||||
$3
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue