Skip to content

Commit

Permalink
Support mysql filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Aug 30, 2024
1 parent f0a3184 commit 3f7846b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions UltiSnips/jq.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
priority -50

snippet if "if / then"
if $1 then $2 end
endsnippet
snippet ife "if / then / else"
if $1 then $2 else $3 end
endsnippet
snippet elif "elif / then"
elif $1 then $2
endsnippet
snippet elife "elif / then / else"
elif $1 then $2 else $3
endsnippet
snippet try "try / catch"
try $1 catch $2
endsnippet
snippet red "reduce / as"
reduce $1 as ${2:item} ($3; $4)
endsnippet
snippet fore "foreach / as"
foreach $1 as ${2:item} ($3; $4; $5)
endsnippet

0 comments on commit 3f7846b

Please sign in to comment.