Merge pull request #510 from ches/erlang

erlang: remove spaces before parens in UltiSnips
This commit is contained in:
Holger Rapp 2015-01-26 07:31:26 +01:00
commit a95d8791c8

View File

@ -5,12 +5,12 @@
priority -50 priority -50
snippet pat "Case:Receive:Try Clause" snippet pat "Case:Receive:Try Clause"
${1:pattern}${2: when ${3:guard}} ->; ${1:pattern}${2: when ${3:guard}} ->
${4:body} ${4:body}
endsnippet endsnippet
snippet beh "Behaviour Directive" snippet beh "Behaviour Directive" b
-behaviour (${1:behaviour}). -behaviour(${1:behaviour}).
endsnippet endsnippet
snippet case "Case Expression" snippet case "Case Expression"
@ -20,12 +20,12 @@ case ${1:expression} of
end end
endsnippet endsnippet
snippet def "Define Directive" snippet def "Define Directive" b
-define (${1:macro}${2: (${3:param})}, ${4:body}). -define(${1:macro}${2: (${3:param})}, ${4:body}).
endsnippet endsnippet
snippet exp "Export Directive" snippet exp "Export Directive" b
-export ([${1:function}/${2:arity}]). -export([${1:function}/${2:arity}]).
endsnippet endsnippet
snippet fun "Fun Expression" snippet fun "Fun Expression"
@ -36,7 +36,7 @@ end
endsnippet endsnippet
snippet fu "Function" snippet fu "Function"
${1:function} (${2:param})${3: when ${4:guard}} -> ${1:function}(${2:param})${3: when ${4:guard}} ->
${5:body} ${5:body}
endsnippet endsnippet
@ -47,24 +47,24 @@ if
end end
endsnippet endsnippet
snippet ifdef "Ifdef Directive" snippet ifdef "Ifdef Directive" b
-ifdef (${1:macro}). -ifdef(${1:macro}).
endsnippet endsnippet
snippet ifndef "Ifndef Directive" snippet ifndef "Ifndef Directive" b
-ifndef (${1:macro}). -ifndef(${1:macro}).
endsnippet endsnippet
snippet imp "Import Directive" snippet imp "Import Directive" b
-import (${1:module}, [${2:function}/${3:arity}]). -import(${1:module}, [${2:function}/${3:arity}]).
endsnippet endsnippet
snippet inc "Include Directive" snippet inc "Include Directive" b
-include ("${1:file}"). -include("${1:file}").
endsnippet endsnippet
snippet mod "Module Directive" snippet mod "Module Directive" b
-module (${1:`!p snip.rv = snip.basename or "module"`}). -module(${1:`!p snip.rv = snip.basename or "module"`}).
endsnippet endsnippet
snippet rcv "Receive Expression" snippet rcv "Receive Expression"
@ -77,8 +77,8 @@ ${6:after
end end
endsnippet endsnippet
snippet rec "Record Directive" snippet rec "Record Directive" b
-record (${1:record}, {${2:field}${3: = ${4:value}}}). -record(${1:record}, {${2:field}${3: = ${4:value}}}).
endsnippet endsnippet
snippet try "Try Expression" snippet try "Try Expression"
@ -93,8 +93,16 @@ ${13:after
end end
endsnippet endsnippet
snippet undef "Undef Directive" snippet undef "Undef Directive" b
-undef (${1:macro}). -undef(${1:macro}).
endsnippet
snippet || "List Comprehension"
[${1:X} || ${2:X} <- ${3:List}${4:, gen}]
endsnippet
snippet gen "Generator Expression"
${1:X} <- ${2:List}${3:, gen}
endsnippet endsnippet
# vim:ft=snippets: # vim:ft=snippets: