Skip to content

Commit 68f64f0

Browse files
committed
Support jq filetype
1 parent f0a3184 commit 68f64f0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

snippets/jq.snippets

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
snippet if "if / then"
2+
if $1 then $2 end
3+
snippet ife "if / then / else"
4+
if $1 then $2 else $3 end
5+
snippet elif "elif / then"
6+
elif $1 then $2
7+
snippet elife "elif / then / else"
8+
elif $1 then $2 else $3
9+
snippet try "try / catch"
10+
try $1 catch $2
11+
snippet red "reduce / as"
12+
reduce $1 as ${2:item} ($3; $4)
13+
snippet fore "foreach / as"
14+
foreach $1 as ${2:item} ($3; $4; $5)

0 commit comments

Comments
 (0)