Closes #372: removed trailing spaces in snippets

This commit is contained in:
Joao Tavora 2013-05-05 21:15:27 -04:00
parent 9df05fc413
commit 8bf75fe425
33 changed files with 40 additions and 40 deletions

View File

@ -1,4 +1,4 @@
# name: namespace ...
# key: ns
# --
namespace
namespace

View File

@ -1,4 +1,4 @@
# name: using namespace ...
# name: using namespace ...
# key: using
# --
using namespace ${std};

View File

@ -1,5 +1,5 @@
# -*- mode: snippet -*-
# name: printf
# name: printf
# contributor: joaotavora
# key: printf
# --

View File

@ -14,7 +14,7 @@ ${5:public} class ${1:Name}
/// <summary>
/// ${4:Default Destructor}
/// </summary>
/// </summary>
public ~$1()
{
}

View File

@ -3,7 +3,7 @@
# key: x-dired
# --
;; idiom for processing a list of files in dired's marked files
;; suppose myProcessFile is your function that takes a file path
;; and do some processing on the file

View File

@ -10,8 +10,8 @@
(buffer-string) "\n" t)) )
;; process all lines
(mapc
(lambda (aLine)
(mapc
(lambda (aLine)
(message aLine) ; do your stuff here
)
(read-lines "inputFilePath")

View File

@ -6,7 +6,7 @@
"Replace “<” to “&lt;” and other chars in HTML.
This works on the current region."
(interactive "r")
(save-restriction
(save-restriction
(narrow-to-region start end)
(goto-char (point-min))
(while (search-forward "&" nil t) (replace-match "&amp;" nil t))

View File

@ -2,4 +2,4 @@
# name: automatic
# key: au
# --
automatic $0
automatic $0

View File

@ -1,5 +1,5 @@
# contributor: Li Zhu <http://www.zhuli.name>
# name: implicit integer
# name: implicit integer
# key: ii
# --
implicit integer $0

View File

@ -1,4 +1,4 @@
# name: <div...>...</div>
# key: div
# --
<div${1: id="${2:some_id}"}${3: class="${4:some_class}"}>$0</div>
<div${1: id="${2:some_id}"}${3: class="${4:some_class}"}>$0</div>

View File

@ -1,5 +1,5 @@
# contributor: Jimmy Wu <frozenthrone88@gmail.com>
#name :<script type="text/javascript">...</script>
#name :<script type="text/javascript">...</script>
# key: script
# --
<script type="text/javascript">

View File

@ -1,5 +1,5 @@
# contributor: Jimmy Wu <frozenthrone88@gmail.com>
#name :<script type="text/javascript" src="..."></script>
#name :<script type="text/javascript" src="..."></script>
# key: script
# --
<script type="text/javascript" src="$1"></script>

View File

@ -7,7 +7,7 @@
def ${1:name}($2):
"""$3
${2:$
(let*
(let*
((indent
(concat "\n" (make-string (current-column) 32)))
(args

View File

@ -1,4 +1,4 @@
# name: # =>
# key: #
# --
# =>
# =>

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: asInstanceOf[T]
# name: asInstanceOf[T]
# key: asof
# --
asInstanceOf[${1:type}] $0

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: case pattern =>
# name: case pattern =>
# key: case
# --
case ${1:pattern} => $0

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: case _ =>
# name: case _ =>
# key: case
# --
case _ => $0

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: asInstanceOf[T]
# name: asInstanceOf[T]
# key: cast
# --
asInstanceOf[${1:type}] $0

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: classOf[T]
# name: classOf[T]
# key: clof
# --
classOf[${1:type}] $0

View File

@ -2,8 +2,8 @@
# name: /** cls/trt/obj name */
# key: doc
# --
/**
/**
* `(scala-mode-find-clstrtobj-name-doc)`
* ${1:description}
* $0
* $0
*/

View File

@ -2,6 +2,6 @@
# name: /** method name */
# key: doc
# --
/**
/**
* `(scala-mode-def-and-args-doc)`
*/
*/

View File

@ -6,5 +6,5 @@
* `(scala-mode-file-doc)`
* $0
* @author ${1:name}
* @version ${2:0.1}
* @version ${2:0.1}
*/

View File

@ -9,9 +9,9 @@
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
/**
/**
* $0
* @author ${1:name}
* @author ${1:name}
* @version ${2:0.1}
* $Id$
*/

View File

@ -9,9 +9,9 @@
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
/**
/**
* $0
* @author ${1:name}
* @author ${1:name}
* @version ${2:0.1}
* $Id$
*/

View File

@ -1,5 +1,5 @@
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: isInstanceOf[T]
# name: isInstanceOf[T]
# key: isof
# --
isInstanceOf[${1:type}] $0

View File

@ -5,8 +5,8 @@
${1:option} match {
case Full(res) => $0
case Empty =>
case Empty =>
case Failure(msg, _, _) =>
case Failure(msg, _, _) =>
}

View File

@ -4,6 +4,6 @@
# --
${1:option} match {
case None => $0
case Some(res) =>
case Some(res) =>
}

View File

@ -5,6 +5,6 @@
try {
$0
} catch {
case ${1:e}: ${2:Exception} =>
case ${1:e}: ${2:Exception} =>
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
}

View File

@ -5,7 +5,7 @@
try {
$0
} catch {
case ${1:e}: ${2:Exception} =>
case ${1:e}: ${2:Exception} =>
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
} finally {

View File

@ -2,4 +2,4 @@
# name: CONSTRAINT [..] PRIMARY KEY ...
# key: constraint
# --
CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])
CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@ -2,4 +2,4 @@
# name: CONSTRAINT [..] FOREIGN KEY ...
# key: constraint
# --
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])
CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}])

View File

@ -2,10 +2,10 @@
# name: create table ...
# key: create
# --
CREATE TABLE [${1:dbo}].[${2:TableName}]
CREATE TABLE [${1:dbo}].[${2:TableName}]
(
${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL}
$0
CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3])
)
GO

View File

@ -2,7 +2,7 @@
# name: create procedure ...
# key: create
# --
CREATE PROCEDURE [${1:dbo}].[${2:Name}]
CREATE PROCEDURE [${1:dbo}].[${2:Name}]
(
$3 $4 = ${5:NULL} ${6:OUTPUT}
)