diff --git a/snippets/c++-mode/ns b/snippets/c++-mode/ns index a343964..bff9ed7 100644 --- a/snippets/c++-mode/ns +++ b/snippets/c++-mode/ns @@ -1,4 +1,4 @@ # name: namespace ... # key: ns # -- -namespace \ No newline at end of file +namespace \ No newline at end of file diff --git a/snippets/c++-mode/using b/snippets/c++-mode/using index f28937f..8da5348 100644 --- a/snippets/c++-mode/using +++ b/snippets/c++-mode/using @@ -1,4 +1,4 @@ -# name: using namespace ... +# name: using namespace ... # key: using # -- using namespace ${std}; diff --git a/snippets/c-mode/printf b/snippets/c-mode/printf index 035d07e..36313de 100644 --- a/snippets/c-mode/printf +++ b/snippets/c-mode/printf @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: printf +# name: printf # contributor: joaotavora # key: printf # -- diff --git a/snippets/csharp-mode/class b/snippets/csharp-mode/class index 6c74c37..9cb096e 100644 --- a/snippets/csharp-mode/class +++ b/snippets/csharp-mode/class @@ -14,7 +14,7 @@ ${5:public} class ${1:Name} /// /// ${4:Default Destructor} - /// + /// public ~$1() { } diff --git a/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet b/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet index 710657c..77ca69d 100755 --- a/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet +++ b/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet @@ -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 diff --git a/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet b/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet index f85fe4e..e4cb092 100755 --- a/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet +++ b/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet @@ -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") diff --git a/snippets/emacs-lisp-mode/x-find-replace.yasnippet b/snippets/emacs-lisp-mode/x-find-replace.yasnippet index e5a1d6c..b0c58ec 100755 --- a/snippets/emacs-lisp-mode/x-find-replace.yasnippet +++ b/snippets/emacs-lisp-mode/x-find-replace.yasnippet @@ -6,7 +6,7 @@ "Replace “<” to “<” 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 "&" nil t)) diff --git a/snippets/f90-mode/au b/snippets/f90-mode/au index e402b21..1b638db 100644 --- a/snippets/f90-mode/au +++ b/snippets/f90-mode/au @@ -2,4 +2,4 @@ # name: automatic # key: au # -- -automatic $0 \ No newline at end of file +automatic $0 \ No newline at end of file diff --git a/snippets/f90-mode/ii b/snippets/f90-mode/ii index 7317cc3..bd89e90 100644 --- a/snippets/f90-mode/ii +++ b/snippets/f90-mode/ii @@ -1,5 +1,5 @@ # contributor: Li Zhu -# name: implicit integer +# name: implicit integer # key: ii # -- implicit integer $0 \ No newline at end of file diff --git a/snippets/html-mode/div b/snippets/html-mode/div index 8b97ed1..bce4c3a 100644 --- a/snippets/html-mode/div +++ b/snippets/html-mode/div @@ -1,4 +1,4 @@ # name: ... # key: div # -- -$0 \ No newline at end of file +$0 \ No newline at end of file diff --git a/snippets/html-mode/script.javascript b/snippets/html-mode/script.javascript index 9b77e43..c240755 100644 --- a/snippets/html-mode/script.javascript +++ b/snippets/html-mode/script.javascript @@ -1,5 +1,5 @@ # contributor: Jimmy Wu -#name : +#name : # key: script # -- +#name : # key: script # -- \ No newline at end of file diff --git a/snippets/python-mode/def b/snippets/python-mode/def index ca0ba66..ebc5c10 100644 --- a/snippets/python-mode/def +++ b/snippets/python-mode/def @@ -7,7 +7,7 @@ def ${1:name}($2): """$3 ${2:$ - (let* + (let* ((indent (concat "\n" (make-string (current-column) 32))) (args diff --git a/snippets/ruby-mode/general/# b/snippets/ruby-mode/general/# index 491ca39..6e9c0e0 100644 --- a/snippets/ruby-mode/general/# +++ b/snippets/ruby-mode/general/# @@ -1,4 +1,4 @@ # name: # => # key: # # -- -# => \ No newline at end of file +# => \ No newline at end of file diff --git a/snippets/scala-mode/asof b/snippets/scala-mode/asof index 0736fd6..4f9550e 100644 --- a/snippets/scala-mode/asof +++ b/snippets/scala-mode/asof @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: asInstanceOf[T] +# name: asInstanceOf[T] # key: asof # -- asInstanceOf[${1:type}] $0 \ No newline at end of file diff --git a/snippets/scala-mode/case b/snippets/scala-mode/case index c09c17a..aa6da32 100644 --- a/snippets/scala-mode/case +++ b/snippets/scala-mode/case @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: case pattern => +# name: case pattern => # key: case # -- case ${1:pattern} => $0 \ No newline at end of file diff --git a/snippets/scala-mode/case.match-all b/snippets/scala-mode/case.match-all index b481c9f..013b8f6 100644 --- a/snippets/scala-mode/case.match-all +++ b/snippets/scala-mode/case.match-all @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: case _ => +# name: case _ => # key: case # -- case _ => $0 \ No newline at end of file diff --git a/snippets/scala-mode/cast b/snippets/scala-mode/cast index 659436d..f89a508 100644 --- a/snippets/scala-mode/cast +++ b/snippets/scala-mode/cast @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: asInstanceOf[T] +# name: asInstanceOf[T] # key: cast # -- asInstanceOf[${1:type}] $0 \ No newline at end of file diff --git a/snippets/scala-mode/clof b/snippets/scala-mode/clof index 63fe191..7d5a35d 100644 --- a/snippets/scala-mode/clof +++ b/snippets/scala-mode/clof @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: classOf[T] +# name: classOf[T] # key: clof # -- classOf[${1:type}] $0 \ No newline at end of file diff --git a/snippets/scala-mode/doc.class b/snippets/scala-mode/doc.class index a5c9962..9571f1d 100644 --- a/snippets/scala-mode/doc.class +++ b/snippets/scala-mode/doc.class @@ -2,8 +2,8 @@ # name: /** cls/trt/obj name */ # key: doc # -- -/** +/** * `(scala-mode-find-clstrtobj-name-doc)` * ${1:description} - * $0 + * $0 */ \ No newline at end of file diff --git a/snippets/scala-mode/doc.def b/snippets/scala-mode/doc.def index 4944d8e..53b1968 100644 --- a/snippets/scala-mode/doc.def +++ b/snippets/scala-mode/doc.def @@ -2,6 +2,6 @@ # name: /** method name */ # key: doc # -- -/** +/** * `(scala-mode-def-and-args-doc)` - */ \ No newline at end of file + */ \ No newline at end of file diff --git a/snippets/scala-mode/doc.file b/snippets/scala-mode/doc.file index 5f02a9e..2bc39bf 100644 --- a/snippets/scala-mode/doc.file +++ b/snippets/scala-mode/doc.file @@ -6,5 +6,5 @@ * `(scala-mode-file-doc)` * $0 * @author ${1:name} - * @version ${2:0.1} + * @version ${2:0.1} */ \ No newline at end of file diff --git a/snippets/scala-mode/doc.file-scala b/snippets/scala-mode/doc.file-scala index 6c21919..aa9c58f 100644 --- a/snippets/scala-mode/doc.file-scala +++ b/snippets/scala-mode/doc.file-scala @@ -9,9 +9,9 @@ ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -/** +/** * $0 - * @author ${1:name} + * @author ${1:name} * @version ${2:0.1} * $Id$ */ \ No newline at end of file diff --git a/snippets/scala-mode/doc.file-scala-api b/snippets/scala-mode/doc.file-scala-api index bb306de..ffd4d0d 100644 --- a/snippets/scala-mode/doc.file-scala-api +++ b/snippets/scala-mode/doc.file-scala-api @@ -9,9 +9,9 @@ ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ -/** +/** * $0 - * @author ${1:name} + * @author ${1:name} * @version ${2:0.1} * $Id$ */ \ No newline at end of file diff --git a/snippets/scala-mode/isof b/snippets/scala-mode/isof index bfb421f..6ab787b 100644 --- a/snippets/scala-mode/isof +++ b/snippets/scala-mode/isof @@ -1,5 +1,5 @@ # Author: Jonas Bonèr -# name: isInstanceOf[T] +# name: isInstanceOf[T] # key: isof # -- isInstanceOf[${1:type}] $0 \ No newline at end of file diff --git a/snippets/scala-mode/match.can b/snippets/scala-mode/match.can index 72798c5..e4f15f5 100644 --- a/snippets/scala-mode/match.can +++ b/snippets/scala-mode/match.can @@ -5,8 +5,8 @@ ${1:option} match { case Full(res) => $0 - case Empty => + case Empty => - case Failure(msg, _, _) => + case Failure(msg, _, _) => } \ No newline at end of file diff --git a/snippets/scala-mode/match.option b/snippets/scala-mode/match.option index 01186e3..aa725c9 100644 --- a/snippets/scala-mode/match.option +++ b/snippets/scala-mode/match.option @@ -4,6 +4,6 @@ # -- ${1:option} match { case None => $0 - case Some(res) => + case Some(res) => } \ No newline at end of file diff --git a/snippets/scala-mode/try b/snippets/scala-mode/try index 0b65a6f..c9bf2e2 100644 --- a/snippets/scala-mode/try +++ b/snippets/scala-mode/try @@ -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} } \ No newline at end of file diff --git a/snippets/scala-mode/try.catch-finally b/snippets/scala-mode/try.catch-finally index e431b98..52f8c31 100644 --- a/snippets/scala-mode/try.catch-finally +++ b/snippets/scala-mode/try.catch-finally @@ -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 { diff --git a/snippets/sql-mode/constraint b/snippets/sql-mode/constraint index 5bb1902..bfa2b78 100644 --- a/snippets/sql-mode/constraint +++ b/snippets/sql-mode/constraint @@ -2,4 +2,4 @@ # name: CONSTRAINT [..] PRIMARY KEY ... # key: constraint # -- -CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) \ No newline at end of file +CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) \ No newline at end of file diff --git a/snippets/sql-mode/constraint.1 b/snippets/sql-mode/constraint.1 index 245903f..bfef0b6 100644 --- a/snippets/sql-mode/constraint.1 +++ b/snippets/sql-mode/constraint.1 @@ -2,4 +2,4 @@ # name: CONSTRAINT [..] FOREIGN KEY ... # key: constraint # -- -CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) \ No newline at end of file +CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) \ No newline at end of file diff --git a/snippets/sql-mode/create b/snippets/sql-mode/create index 1678ed2..085b267 100644 --- a/snippets/sql-mode/create +++ b/snippets/sql-mode/create @@ -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 \ No newline at end of file diff --git a/snippets/sql-mode/create.1 b/snippets/sql-mode/create.1 index 10b30a4..6c37dd8 100644 --- a/snippets/sql-mode/create.1 +++ b/snippets/sql-mode/create.1 @@ -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} )