Skip to content

Commit 2838cdf

Browse files
author
Auralcat
committed
Add Elixir with clause snippets
This is an addition to Elixir's syntax as of version 1.2.0 which wasn't yet included in the current snippet list.
1 parent d39c424 commit 2838cdf

File tree

2 files changed

+18
-0
lines changed
  • snippets/elixir-mode

2 files changed

+18
-0
lines changed

snippets/elixir-mode/wt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- mode: snippet -*-
2+
# contributor: Miriam Retka (https://github.com/Auralcat)
3+
# name: wt
4+
# key: wt
5+
# --
6+
with ${1:{:ok, tuple} <- function(arg)}, do
7+
$0
8+
end

snippets/elixir-mode/wte

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- mode: snippet -*-
2+
# contributor: Miriam Retka (https://github.com/Auralcat)
3+
# name: wte
4+
# key: wte
5+
# --
6+
with ${1:{:ok, tuple} <- function(arg)}, do
7+
$2
8+
else
9+
$0
10+
end

0 commit comments

Comments
 (0)