mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-05-07 08:08:19 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: (Case/Receive/Try Clause)
|
||||
# --
|
||||
${1:pattern}${2: when ${3:guard}} ->
|
||||
${4:body}
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: (Fun Clause)
|
||||
# --
|
||||
(${1:pattern})${2: when ${3:guard}} ->
|
||||
${4:body}
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: (Function Clause)
|
||||
# --
|
||||
${1:function} (${2:param})${3: when ${4:guard}} ->
|
||||
${5:body}
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: (If Clause)
|
||||
# --
|
||||
${1:guard} ->
|
||||
${2:body}
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: beh
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Behaviour Directive
|
||||
# --
|
||||
-behaviour (${1:behaviour}).
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: case
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Case Expression
|
||||
# --
|
||||
case ${1:expression} of
|
||||
${2:pattern}${3: when ${4:guard}} ->
|
||||
${5:body}
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: def
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Define Directive
|
||||
# --
|
||||
-define (${1:macro}${2: (${3:param})}, ${4:body}).
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: exp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Export Directive
|
||||
# --
|
||||
-export ([${1:function}/${2:arity}]).
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Field & Value
|
||||
# binding: "^,"
|
||||
# --
|
||||
, ${1:field}${2: = ${3:value}}
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: fun
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Fun Expression
|
||||
# --
|
||||
fun
|
||||
(${1:pattern})${2: when ${3:guard}} ->
|
||||
${4:body}
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Function & Arity
|
||||
# binding: "^,"
|
||||
# --
|
||||
, ${1:function}/${2:arity}
|
||||
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Function
|
||||
# binding: "^F"
|
||||
# --
|
||||
${1:function} (${2:param})${3: when ${4:guard}} ->
|
||||
${5:body}
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: if
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: If Expression
|
||||
# --
|
||||
if
|
||||
${1:guard} ->
|
||||
${2:body}
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ifdef
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Ifdef Directive
|
||||
# --
|
||||
-ifdef (${1:macro}).
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ifndef
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Ifndef Directive
|
||||
# --
|
||||
-ifndef (${1:macro}).
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: imp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Import Directive
|
||||
# --
|
||||
-import (${1:module}, [${2:function}/${3:arity}]).
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: inc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Include Directive
|
||||
# --
|
||||
-include ("${1:file}").
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: mod
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Module Directive
|
||||
# --
|
||||
-module (${1:${TM_FILEPATH/^.*\/(.*)\.erl$/$1/g}}).
|
||||
@@ -0,0 +1,12 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: rcv
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Receive Expression
|
||||
# --
|
||||
receive
|
||||
${1: ${2:pattern}${3: when ${4:guard}} ->
|
||||
${5:body}
|
||||
}${6:after
|
||||
${7:expression} ->
|
||||
${8:body}
|
||||
}end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: rec
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Record Directive
|
||||
# --
|
||||
-record (${1:record}, {${2:field}${3: = ${4:value}}}).
|
||||
@@ -0,0 +1,14 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: try
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Try Expression
|
||||
# --
|
||||
try${1: ${2:expression}${3: of
|
||||
${4:pattern}${5: when ${6:guard}} ->
|
||||
${7:body}}}
|
||||
${8:catch
|
||||
${9:pattern}${10: when ${11:guard}} ->
|
||||
${12:body}}
|
||||
${13:after
|
||||
${14:body}}
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: undef
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Undef Directive
|
||||
# --
|
||||
-undef (${1:macro}).
|
||||
Reference in New Issue
Block a user