Permalink
Browse files

updated snippets

  • Loading branch information...
1 parent b68c39c commit 93287c0b98ca58f4a38442e1b42ffe27a9ab4eda @hbbio hbbio committed Oct 7, 2012
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
-function $1($2) {
+function ${1:name}(${2:arg}) {
$3
}
$4
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
-if ($1) {
+if (${1:condition}) {
$2
} else {
$3
@@ -1,9 +1,8 @@
<snippet>
<content><![CDATA[
-match ($1) {
- $2
- default:
- $3
+match (${1:expression}) {
+ ${2:case}
+ ${3:default:}
}
$4
]]></content>
@@ -1,7 +1,6 @@
<snippet>
<content><![CDATA[
-/** $1 */
-module $1 {
+module ${1:name} {
$2
}
$3
@@ -1,7 +1,7 @@
<snippet>
<content><![CDATA[
parser {
-| $1 -> $2
+| ${1:pattern} -> $2
}
$3
]]></content>
@@ -2,7 +2,7 @@
<content><![CDATA[
Server.start(
Server.http,
- { title: "$TM_FILENAME", page: ${1:function name} }
+ { title: "${1:$TM_FILENAME}", page: ${2:function} }
)
]]></content>
<tabTrigger>Server.start</tabTrigger>
@@ -2,4 +2,4 @@
<content><![CDATA[<${1:p}>${2:$SELECTION}</${1/([^ ]+).*/$1/}>]]></content>
<tabTrigger>&lt;</tabTrigger>
<scope>source.opa</scope>
-</snippet>
+</snippet>

0 comments on commit 93287c0

Please sign in to comment.