Remove line breaks after snippets.

This commit is contained in:
majjoha 2014-05-22 15:30:56 +02:00
parent debd257115
commit 8c2dd2be62

View File

@ -6,122 +6,95 @@ snippet if if .. do .. end
if ${1} do if ${1} do
${0} ${0}
end end
snippet if if .. do: .. snippet if if .. do: ..
if ${1:condition}, do: ${0} if ${1:condition}, do: ${0}
snippet ife if .. do .. else .. end snippet ife if .. do .. else .. end
if ${1:condition} do if ${1:condition} do
${2} ${2}
else else
${0} ${0}
end end
snippet ife if .. do: .. else: snippet ife if .. do: .. else:
if ${1:condition}, do: ${2}, else: ${0} if ${1:condition}, do: ${2}, else: ${0}
snippet unless unless .. do .. end snippet unless unless .. do .. end
unless ${1} do unless ${1} do
${0} ${0}
end end
snippet unless unless .. do: .. snippet unless unless .. do: ..
unless ${1:condition}, do: ${0} unless ${1:condition}, do: ${0}
snippet unlesse unless .. do .. else .. end snippet unlesse unless .. do .. else .. end
unless ${1:condition} do unless ${1:condition} do
${2} ${2}
else else
${0} ${0}
end end
snippet unlesse unless .. do: .. else: snippet unlesse unless .. do: .. else:
unless ${1:condition}, do: ${2}, else: ${0} unless ${1:condition}, do: ${2}, else: ${0}
snippet cond snippet cond
cond do cond do
${1} -> ${1} ->
${0} ${0}
end end
snippet case snippet case
case ${1} do case ${1} do
${2} -> ${2} ->
${0} ${0}
end end
snippet df snippet df
def ${1:name}, do: ${2} def ${1:name}, do: ${2}
snippet def snippet def
def ${1:name} do def ${1:name} do
${0} ${0}
end end
snippet defim snippet defim
defimpl ${1:protocol_name}, for: ${2:data_type} do defimpl ${1:protocol_name}, for: ${2:data_type} do
${0} ${0}
end end
snippet defma snippet defma
defmacro ${1:name} do defmacro ${1:name} do
${0} ${0}
end end
snippet defmo snippet defmo
defmodule ${1:module_name} do defmodule ${1:module_name} do
${0} ${0}
end end
snippet defp snippet defp
defp ${1:name} do defp ${1:name} do
${0} ${0}
end end
snippet defpr snippet defpr
defprotocol ${1:name}, [${0:function}] defprotocol ${1:name}, [${0:function}]
snippet defr snippet defr
defrecord ${1:record_name}, ${0:fields} defrecord ${1:record_name}, ${0:fields}
snippet doc snippet doc
@doc """ @doc """
${0} ${0}
""" """
snippet fn snippet fn
fn(${1:args}) -> ${0} end fn(${1:args}) -> ${0} end
snippet fun snippet fun
function do function do
${0} ${0}
end end
snippet mdoc snippet mdoc
@moduledoc """ @moduledoc """
${0} ${0}
""" """
snippet rec snippet rec
receive do receive do
${1} -> ${1} ->
${0} ${0}
end end
snippet req snippet req
require ${0:module_name} require ${0:module_name}
snippet imp snippet imp
import ${0:module_name} import ${0:module_name}
snippet ali snippet ali
alias ${0:module_name} alias ${0:module_name}
snippet test snippet test
test "${1:test_name}" do test "${1:test_name}" do
${0} ${0}
end end
snippet try try .. rescue .. end snippet try try .. rescue .. end
try do try do
${1} ${1}