mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
Import snippets for scala-mode and nxml-mode from Anders.
This commit is contained in:
parent
6774448630
commit
0ca7da8347
6
snippets/text-mode/nxml-mode/body
Normal file
6
snippets/text-mode/nxml-mode/body
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <body>...</body>
|
||||
# --
|
||||
<body$1>
|
||||
$0
|
||||
</body>
|
4
snippets/text-mode/nxml-mode/br
Normal file
4
snippets/text-mode/nxml-mode/br
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <br />
|
||||
# --
|
||||
<br />
|
6
snippets/text-mode/nxml-mode/code
Normal file
6
snippets/text-mode/nxml-mode/code
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <code>...</code>
|
||||
# --
|
||||
<code>
|
||||
$0
|
||||
</code>
|
4
snippets/text-mode/nxml-mode/div
Normal file
4
snippets/text-mode/nxml-mode/div
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <div...>...</div>
|
||||
# --
|
||||
<div$1>$0</div>
|
4
snippets/text-mode/nxml-mode/doctype
Normal file
4
snippets/text-mode/nxml-mode/doctype
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.1
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
4
snippets/text-mode/nxml-mode/doctype.xhtml1_strict
Normal file
4
snippets/text-mode/nxml-mode/doctype.xhtml1_strict
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.0 Strict
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
snippets/text-mode/nxml-mode/doctype.xhtml1_transitional
Normal file
4
snippets/text-mode/nxml-mode/doctype.xhtml1_transitional
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : DocType XHTML 1.0 Transitional
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
snippets/text-mode/nxml-mode/form
Normal file
6
snippets/text-mode/nxml-mode/form
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name :<form method="..." action="..."></form>
|
||||
# --
|
||||
<form method="$1" action="$2">
|
||||
$0
|
||||
</form>
|
4
snippets/text-mode/nxml-mode/h1
Normal file
4
snippets/text-mode/nxml-mode/h1
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h1>...</h1>
|
||||
# --
|
||||
<h1>$1</h1>
|
4
snippets/text-mode/nxml-mode/h2
Normal file
4
snippets/text-mode/nxml-mode/h2
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h2>...</h2>
|
||||
# --
|
||||
<h2>$1</h2>
|
4
snippets/text-mode/nxml-mode/h3
Normal file
4
snippets/text-mode/nxml-mode/h3
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h3>...</h3>
|
||||
# --
|
||||
<h3>$1</h3>
|
4
snippets/text-mode/nxml-mode/h4
Normal file
4
snippets/text-mode/nxml-mode/h4
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h4>...</h4>
|
||||
# --
|
||||
<h4>$1</h4>
|
4
snippets/text-mode/nxml-mode/h5
Normal file
4
snippets/text-mode/nxml-mode/h5
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h5>...</h5>
|
||||
# --
|
||||
<h5>$1</h5>
|
4
snippets/text-mode/nxml-mode/h6
Normal file
4
snippets/text-mode/nxml-mode/h6
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <h6>...</h6>
|
||||
# --
|
||||
<h6>$1</h6>
|
6
snippets/text-mode/nxml-mode/head
Normal file
6
snippets/text-mode/nxml-mode/head
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <head>...</head>
|
||||
# --
|
||||
<head>
|
||||
$0
|
||||
</head>
|
4
snippets/text-mode/nxml-mode/hr
Normal file
4
snippets/text-mode/nxml-mode/hr
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <hr />
|
||||
# --
|
||||
<hr />
|
4
snippets/text-mode/nxml-mode/href
Normal file
4
snippets/text-mode/nxml-mode/href
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <a href="...">...</a>
|
||||
# --
|
||||
<a href="$1">$2</a>
|
6
snippets/text-mode/nxml-mode/html
Normal file
6
snippets/text-mode/nxml-mode/html
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <html xmlns="...">...</html>
|
||||
# --
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}">
|
||||
$0
|
||||
</html>
|
4
snippets/text-mode/nxml-mode/img
Normal file
4
snippets/text-mode/nxml-mode/img
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <img src="..." alt="..." />
|
||||
# --
|
||||
<img src="$1" alt="$2" />
|
4
snippets/text-mode/nxml-mode/input
Normal file
4
snippets/text-mode/nxml-mode/input
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <input ... />
|
||||
# --
|
||||
<input type="$1" name="$2" value="$3" />
|
4
snippets/text-mode/nxml-mode/li
Normal file
4
snippets/text-mode/nxml-mode/li
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <li>...</li>
|
||||
# --
|
||||
<li>$1</li>
|
4
snippets/text-mode/nxml-mode/link
Normal file
4
snippets/text-mode/nxml-mode/link
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <link stylesheet="..." />
|
||||
# --
|
||||
<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
|
4
snippets/text-mode/nxml-mode/meta
Normal file
4
snippets/text-mode/nxml-mode/meta
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <meta name="..." content="..." />
|
||||
# --
|
||||
<meta name="${1:generator}" content="${2:content}" />
|
4
snippets/text-mode/nxml-mode/name
Normal file
4
snippets/text-mode/nxml-mode/name
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <a name="..."></a>
|
||||
# --
|
||||
<a name="$1"></a>
|
6
snippets/text-mode/nxml-mode/ol
Normal file
6
snippets/text-mode/nxml-mode/ol
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <ol>...</ol>
|
||||
# --
|
||||
<ol>
|
||||
$0
|
||||
</ol>
|
4
snippets/text-mode/nxml-mode/p
Normal file
4
snippets/text-mode/nxml-mode/p
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <p>...</p>
|
||||
# --
|
||||
<p>$1</p>
|
6
snippets/text-mode/nxml-mode/pre
Normal file
6
snippets/text-mode/nxml-mode/pre
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <pre>...</pre>
|
||||
# --
|
||||
<pre>
|
||||
$0
|
||||
</pre>
|
6
snippets/text-mode/nxml-mode/quote
Normal file
6
snippets/text-mode/nxml-mode/quote
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <blockquote>...</blockquote>
|
||||
# --
|
||||
<blockquote>
|
||||
$1
|
||||
</blockquote>
|
4
snippets/text-mode/nxml-mode/span
Normal file
4
snippets/text-mode/nxml-mode/span
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <span>...</span>
|
||||
# --
|
||||
<span>$1</span>
|
6
snippets/text-mode/nxml-mode/style
Normal file
6
snippets/text-mode/nxml-mode/style
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <style type="text/css" media="...">...</style>
|
||||
# --
|
||||
<style type="text/css" media="${1:screen}">
|
||||
$0
|
||||
</style>
|
6
snippets/text-mode/nxml-mode/table
Normal file
6
snippets/text-mode/nxml-mode/table
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <table>...</table>
|
||||
# --
|
||||
<table>
|
||||
$0
|
||||
</table>
|
4
snippets/text-mode/nxml-mode/tag.1l
Normal file
4
snippets/text-mode/nxml-mode/tag.1l
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <tag>...</tag>
|
||||
# --
|
||||
<${1:tag}>$2</$1>$0
|
6
snippets/text-mode/nxml-mode/tag.2l
Normal file
6
snippets/text-mode/nxml-mode/tag.2l
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <tag> \n...\n</tag>
|
||||
# --
|
||||
<${1:tag}>
|
||||
$2
|
||||
</$1>$0
|
4
snippets/text-mode/nxml-mode/td
Normal file
4
snippets/text-mode/nxml-mode/td
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <td>...</td>
|
||||
# --
|
||||
<td$1>$2</td>
|
4
snippets/text-mode/nxml-mode/th
Normal file
4
snippets/text-mode/nxml-mode/th
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <th>...</th>
|
||||
# --
|
||||
<th$1>$2</th>
|
4
snippets/text-mode/nxml-mode/title
Normal file
4
snippets/text-mode/nxml-mode/title
Normal file
@ -0,0 +1,4 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <title>...</title>
|
||||
# --
|
||||
<title>$1</title>
|
6
snippets/text-mode/nxml-mode/tr
Normal file
6
snippets/text-mode/nxml-mode/tr
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <tr>...</tr>
|
||||
# --
|
||||
<tr>
|
||||
$0
|
||||
</tr>
|
6
snippets/text-mode/nxml-mode/ul
Normal file
6
snippets/text-mode/nxml-mode/ul
Normal file
@ -0,0 +1,6 @@
|
||||
#contributor : Anders Bach Nielsen <abachn@abachn.net>
|
||||
#name : <ul>...</ul>
|
||||
# --
|
||||
<ul>
|
||||
$0
|
||||
</ul>
|
10
snippets/text-mode/scala-mode/act
Normal file
10
snippets/text-mode/scala-mode/act
Normal file
@ -0,0 +1,10 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def act = { ..}
|
||||
# --
|
||||
def act = {
|
||||
loop {
|
||||
react {
|
||||
$0
|
||||
}
|
||||
}
|
||||
}
|
10
snippets/text-mode/scala-mode/act.arg
Normal file
10
snippets/text-mode/scala-mode/act.arg
Normal file
@ -0,0 +1,10 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def act(arg: T) = { ..}
|
||||
# --
|
||||
def act(${1:arg}: ${2:type}) = {
|
||||
loop {
|
||||
react {
|
||||
$0
|
||||
}
|
||||
}
|
||||
}
|
10
snippets/text-mode/scala-mode/actor
Normal file
10
snippets/text-mode/scala-mode/actor
Normal file
@ -0,0 +1,10 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : val a = actor { ..}
|
||||
# --
|
||||
val a = actor {
|
||||
loop {
|
||||
react {
|
||||
$0
|
||||
}
|
||||
}
|
||||
}
|
4
snippets/text-mode/scala-mode/ano
Normal file
4
snippets/text-mode/scala-mode/ano
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : (args) => ...
|
||||
# --
|
||||
($1) => ${2:body} $0
|
6
snippets/text-mode/scala-mode/app
Normal file
6
snippets/text-mode/scala-mode/app
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : object name extends Application
|
||||
# --
|
||||
object ${1:name} extends Application {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/arr.new
Normal file
4
snippets/text-mode/scala-mode/arr.new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : Array[T](..)
|
||||
# --
|
||||
Array[${1:value}](${2:args}) $0
|
4
snippets/text-mode/scala-mode/arr.val-new
Normal file
4
snippets/text-mode/scala-mode/arr.val-new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : val a = Array[T](..)
|
||||
# --
|
||||
val ${1:arr} = Array[${2:value}](${3:args}) $0
|
4
snippets/text-mode/scala-mode/asof
Normal file
4
snippets/text-mode/scala-mode/asof
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : asInstanceOf[T]
|
||||
# --
|
||||
asInstanceOf[${1:type}] $0
|
4
snippets/text-mode/scala-mode/ass
Normal file
4
snippets/text-mode/scala-mode/ass
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : assert(x === y)
|
||||
# --
|
||||
assert(${1:x} === ${2:y}) $0
|
4
snippets/text-mode/scala-mode/ass.true
Normal file
4
snippets/text-mode/scala-mode/ass.true
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : assert(true)
|
||||
# --
|
||||
assert(true) $0
|
4
snippets/text-mode/scala-mode/at.author
Normal file
4
snippets/text-mode/scala-mode/at.author
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : @author name
|
||||
# --
|
||||
@author ${1:name} $0
|
4
snippets/text-mode/scala-mode/at.param
Normal file
4
snippets/text-mode/scala-mode/at.param
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : @param name description
|
||||
# --
|
||||
@param ${1:name} ${2:description} $0
|
4
snippets/text-mode/scala-mode/at.return
Normal file
4
snippets/text-mode/scala-mode/at.return
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : @return description
|
||||
# --
|
||||
@return ${1:description} $0
|
4
snippets/text-mode/scala-mode/at.version
Normal file
4
snippets/text-mode/scala-mode/at.version
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : @version number
|
||||
# --
|
||||
@version ${1:0.1} $0
|
4
snippets/text-mode/scala-mode/bang
Normal file
4
snippets/text-mode/scala-mode/bang
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : actor ! message
|
||||
# --
|
||||
${1:actor} ! ${2:message} $0
|
4
snippets/text-mode/scala-mode/case
Normal file
4
snippets/text-mode/scala-mode/case
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : case pattern =>
|
||||
# --
|
||||
case ${1:pattern} => $0
|
4
snippets/text-mode/scala-mode/case.match-all
Normal file
4
snippets/text-mode/scala-mode/case.match-all
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : case _ =>
|
||||
# --
|
||||
case _ => $0
|
4
snippets/text-mode/scala-mode/cast
Normal file
4
snippets/text-mode/scala-mode/cast
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : asInstanceOf[T]
|
||||
# --
|
||||
asInstanceOf[${1:type}] $0
|
4
snippets/text-mode/scala-mode/cc
Normal file
4
snippets/text-mode/scala-mode/cc
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : case class T(arg: A)
|
||||
# --
|
||||
case class ${1:name}(${2:arg}: ${3:type}) $0
|
6
snippets/text-mode/scala-mode/cl
Normal file
6
snippets/text-mode/scala-mode/cl
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : class T { .. }
|
||||
# --
|
||||
class ${1:name} {
|
||||
$0
|
||||
}
|
6
snippets/text-mode/scala-mode/cl.abs
Normal file
6
snippets/text-mode/scala-mode/cl.abs
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : abstract class T { .. }
|
||||
# --
|
||||
abstract class ${1:name} {
|
||||
$0
|
||||
}
|
6
snippets/text-mode/scala-mode/cl.abs-arg
Normal file
6
snippets/text-mode/scala-mode/cl.abs-arg
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : abstract class T(args) { .. }
|
||||
# --
|
||||
abstract class ${1:name}(${2:args}) {
|
||||
$0
|
||||
}
|
6
snippets/text-mode/scala-mode/cl.arg
Normal file
6
snippets/text-mode/scala-mode/cl.arg
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : class T(args) { .. }
|
||||
# --
|
||||
class ${1:name}(${2:args}) {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/clof
Normal file
4
snippets/text-mode/scala-mode/clof
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : classOf[T]
|
||||
# --
|
||||
classOf[${1:type}] $0
|
4
snippets/text-mode/scala-mode/co
Normal file
4
snippets/text-mode/scala-mode/co
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : case object T
|
||||
# --
|
||||
case object ${1:name} $0
|
4
snippets/text-mode/scala-mode/cons
Normal file
4
snippets/text-mode/scala-mode/cons
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : element1 :: element2
|
||||
# --
|
||||
${1:element1} :: ${2:element2} $0
|
4
snippets/text-mode/scala-mode/cons.nil
Normal file
4
snippets/text-mode/scala-mode/cons.nil
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : element1 :: Nil
|
||||
# --
|
||||
${1:element1} :: Nil $0
|
4
snippets/text-mode/scala-mode/def.arg
Normal file
4
snippets/text-mode/scala-mode/def.arg
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f(arg: T) = ...
|
||||
# --
|
||||
def ${1:name}(${2:args}) = $0
|
6
snippets/text-mode/scala-mode/def.arg-body
Normal file
6
snippets/text-mode/scala-mode/def.arg-body
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f(arg: T) = {...}
|
||||
# --
|
||||
def ${1:name}(${2:args}) = {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/def.arg-ret
Normal file
4
snippets/text-mode/scala-mode/def.arg-ret
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f(arg: T): R = ...
|
||||
# --
|
||||
def ${1:name}(${2:args}): ${3:Unit} = $0
|
6
snippets/text-mode/scala-mode/def.arg-ret-body
Normal file
6
snippets/text-mode/scala-mode/def.arg-ret-body
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f(arg: T): R = {...}
|
||||
# --
|
||||
def ${1:name}(${2:args}): ${3:Unit} = {
|
||||
$0
|
||||
}
|
6
snippets/text-mode/scala-mode/def.body
Normal file
6
snippets/text-mode/scala-mode/def.body
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f = {...}
|
||||
# --
|
||||
def ${1:name} = {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/def.ret
Normal file
4
snippets/text-mode/scala-mode/def.ret
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f: R = ...
|
||||
# --
|
||||
def ${1:name}: ${2:Unit} = $0
|
6
snippets/text-mode/scala-mode/def.ret-body
Normal file
6
snippets/text-mode/scala-mode/def.ret-body
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f: R = {...}
|
||||
# --
|
||||
def ${1:name}: ${3:Unit} = {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/def.simple
Normal file
4
snippets/text-mode/scala-mode/def.simple
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : def f = ...
|
||||
# --
|
||||
def ${1:name} = $0
|
8
snippets/text-mode/scala-mode/doc.class
Normal file
8
snippets/text-mode/scala-mode/doc.class
Normal file
@ -0,0 +1,8 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** cls/trt/obj name */
|
||||
# --
|
||||
/**
|
||||
* `(scala-mode-find-clstrtobj-name-doc)`
|
||||
* ${1:description}
|
||||
* $0
|
||||
*/
|
6
snippets/text-mode/scala-mode/doc.def
Normal file
6
snippets/text-mode/scala-mode/doc.def
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** method name */
|
||||
# --
|
||||
/**
|
||||
* `(scala-mode-def-and-args-doc)`
|
||||
*/
|
9
snippets/text-mode/scala-mode/doc.file
Normal file
9
snippets/text-mode/scala-mode/doc.file
Normal file
@ -0,0 +1,9 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** file name */
|
||||
# --
|
||||
/**
|
||||
* `(scala-mode-file-doc)`
|
||||
* $0
|
||||
* @author ${1:name}
|
||||
* @version ${2:0.1}
|
||||
*/
|
16
snippets/text-mode/scala-mode/doc.file-scala
Normal file
16
snippets/text-mode/scala-mode/doc.file-scala
Normal file
@ -0,0 +1,16 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** scala file */
|
||||
# --
|
||||
/* __ *\
|
||||
** ________ ___ / / ___ Scala $3 **
|
||||
** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL **
|
||||
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
|
||||
** /____/\___/_/ |_/____/_/ | | **
|
||||
** |/ **
|
||||
\* */
|
||||
/**
|
||||
* $0
|
||||
* @author ${1:name}
|
||||
* @version ${2:0.1}
|
||||
* $Id$
|
||||
*/
|
16
snippets/text-mode/scala-mode/doc.file-scala-api
Normal file
16
snippets/text-mode/scala-mode/doc.file-scala-api
Normal file
@ -0,0 +1,16 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** scala api file */
|
||||
# --
|
||||
/* __ *\
|
||||
** ________ ___ / / ___ Scala API **
|
||||
** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL **
|
||||
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
|
||||
** /____/\___/_/ |_/____/_/ | | **
|
||||
** |/ **
|
||||
\* */
|
||||
/**
|
||||
* $0
|
||||
* @author ${1:name}
|
||||
* @version ${2:0.1}
|
||||
* $Id$
|
||||
*/
|
7
snippets/text-mode/scala-mode/doc.scaladoc
Normal file
7
snippets/text-mode/scala-mode/doc.scaladoc
Normal file
@ -0,0 +1,7 @@
|
||||
#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
|
||||
#name : /** ... */
|
||||
# --
|
||||
/**
|
||||
* ${1:description}
|
||||
* $0
|
||||
*/
|
6
snippets/text-mode/scala-mode/expect
Normal file
6
snippets/text-mode/scala-mode/expect
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : expect(value) { ..}
|
||||
# --
|
||||
expect(${1:reply}) {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/ext
Normal file
4
snippets/text-mode/scala-mode/ext
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : extends T
|
||||
# --
|
||||
extends $0
|
4
snippets/text-mode/scala-mode/for.extract
Normal file
4
snippets/text-mode/scala-mode/for.extract
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : x <- xs
|
||||
# --
|
||||
${1:x} <- ${2:xs}
|
6
snippets/text-mode/scala-mode/for.if
Normal file
6
snippets/text-mode/scala-mode/for.if
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : for (x <- xs if guard) { ... }
|
||||
# --
|
||||
for (${1:x} <- ${2:xs} if ${3:guard}) {
|
||||
$0
|
||||
}
|
6
snippets/text-mode/scala-mode/for.loop
Normal file
6
snippets/text-mode/scala-mode/for.loop
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : for (x <- xs) { ... }
|
||||
# --
|
||||
for (${1:x} <- ${2:xs}) {
|
||||
$0
|
||||
}
|
9
snippets/text-mode/scala-mode/for.multi
Normal file
9
snippets/text-mode/scala-mode/for.multi
Normal file
@ -0,0 +1,9 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : for {x <- xs \ y <- ys} { yield }
|
||||
# --
|
||||
for {
|
||||
${1:x} <- ${2:xs}
|
||||
${3:x} <- ${4:xs}
|
||||
} {
|
||||
yield $0
|
||||
}
|
4
snippets/text-mode/scala-mode/foreach
Normal file
4
snippets/text-mode/scala-mode/foreach
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : foreach(x => ..)
|
||||
# --
|
||||
foreach(${1:x} => ${2:body}) $0
|
4
snippets/text-mode/scala-mode/hmap.new
Normal file
4
snippets/text-mode/scala-mode/hmap.new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : new HashMap[K, V]
|
||||
# --
|
||||
new HashMap[${1:key}, ${2:value}] $0
|
4
snippets/text-mode/scala-mode/hmap.val-new
Normal file
4
snippets/text-mode/scala-mode/hmap.val-new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : val m = new HashMap[K, V]
|
||||
# --
|
||||
val ${1:m} = new HashMap[${2:key}, ${3:value}] $0
|
4
snippets/text-mode/scala-mode/hset.new
Normal file
4
snippets/text-mode/scala-mode/hset.new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : new HashSet[K]
|
||||
# --
|
||||
new HashSet[${1:key}] $0
|
4
snippets/text-mode/scala-mode/hset.val-new
Normal file
4
snippets/text-mode/scala-mode/hset.val-new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : val m = new HashSet[K]
|
||||
# --
|
||||
val ${1:m} = new HashSet[${2:key}] $0
|
6
snippets/text-mode/scala-mode/if
Normal file
6
snippets/text-mode/scala-mode/if
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : if (cond) { .. }
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$0
|
||||
}
|
8
snippets/text-mode/scala-mode/if.else
Normal file
8
snippets/text-mode/scala-mode/if.else
Normal file
@ -0,0 +1,8 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : if (cond) { .. } else { .. }
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$2
|
||||
} else {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/imp
Normal file
4
snippets/text-mode/scala-mode/imp
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : import ..
|
||||
# --
|
||||
import $0
|
6
snippets/text-mode/scala-mode/intercept
Normal file
6
snippets/text-mode/scala-mode/intercept
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : intercept(classOf[T]) { ..}
|
||||
# --
|
||||
intercept(classOf[${1:Exception]}) {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/isof
Normal file
4
snippets/text-mode/scala-mode/isof
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : isInstanceOf[T]
|
||||
# --
|
||||
isInstanceOf[${1:type}] $0
|
4
snippets/text-mode/scala-mode/ls.new
Normal file
4
snippets/text-mode/scala-mode/ls.new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : List(..)
|
||||
# --
|
||||
List(${1:args}, ${2:args}) $0
|
4
snippets/text-mode/scala-mode/ls.val-new
Normal file
4
snippets/text-mode/scala-mode/ls.val-new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : val l = List(..)
|
||||
# --
|
||||
val ${1:l} = List(${2:args}, ${3:args}) $0
|
6
snippets/text-mode/scala-mode/main
Normal file
6
snippets/text-mode/scala-mode/main
Normal file
@ -0,0 +1,6 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name: def main(args: Array[String]) = { ... }
|
||||
# --
|
||||
def main(args: Array[String]) = {
|
||||
$0
|
||||
}
|
4
snippets/text-mode/scala-mode/map
Normal file
4
snippets/text-mode/scala-mode/map
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : map(x => ..)
|
||||
# --
|
||||
map(${1:x} => ${2:body}) $0
|
4
snippets/text-mode/scala-mode/map.new
Normal file
4
snippets/text-mode/scala-mode/map.new
Normal file
@ -0,0 +1,4 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : Map(key -> value)
|
||||
# --
|
||||
Map(${1:key} -> ${2:value}) $0
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user