mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Removed final newline from snippet files.
This commit is contained in:
parent
6c84d6c428
commit
d3086586be
@ -1,3 +1,3 @@
|
||||
#name : FILE *fp = fopen(..., ...);
|
||||
# --
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
@ -1,3 +1,3 @@
|
||||
#name : #include "..."
|
||||
# --
|
||||
#include "$1"
|
||||
#include "$1"
|
@ -1,3 +1,3 @@
|
||||
#name : #include <...>
|
||||
# --
|
||||
#include <$1>
|
||||
#include <$1>
|
@ -4,4 +4,4 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
$0
|
||||
return 0;
|
||||
}
|
||||
}
|
@ -4,4 +4,4 @@
|
||||
/// <summary>
|
||||
/// $3
|
||||
/// </summary>
|
||||
private $1 $2;
|
||||
private $1 $2;
|
@ -18,4 +18,4 @@ public $1 $2
|
||||
set {
|
||||
this.$2 = value;
|
||||
}
|
||||
}
|
||||
}
|
@ -18,4 +18,4 @@ public ${1:Type} ${2:Name}
|
||||
set {
|
||||
this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
|
||||
}
|
||||
}
|
||||
}
|
@ -18,4 +18,4 @@ ${5:public} class ${1:Name}
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
/// <summary>
|
||||
/// $1
|
||||
/// </summary>
|
||||
/// </summary>
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <param name="..."> ... </param>
|
||||
# --
|
||||
/// <param name="$1">$2</param>
|
||||
/// <param name="$1">$2</param>
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <param name="..."> ... </param>
|
||||
# --
|
||||
/// <returns>$1</returns>
|
||||
/// <returns>$1</returns>
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : /// <exception cref="..."> ... </exception>
|
||||
# --
|
||||
/// <exception cref="$1">$2</exception>
|
||||
/// <exception cref="$1">$2</exception>
|
@ -7,4 +7,4 @@
|
||||
${1:public} ${2:void} ${3:MethodName}($4)
|
||||
{
|
||||
$0
|
||||
}
|
||||
}
|
@ -4,4 +4,4 @@
|
||||
namespace $1
|
||||
{
|
||||
$0
|
||||
}
|
||||
}
|
@ -13,4 +13,4 @@ $1 $2 $3
|
||||
set {
|
||||
this.$4 = value;
|
||||
}
|
||||
}
|
||||
}
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
#region $1
|
||||
$0
|
||||
#endregion
|
||||
#endregion
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using ...;
|
||||
# --
|
||||
using $1;
|
||||
using $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using System;
|
||||
# --
|
||||
using System;
|
||||
using System;
|
@ -1,4 +1,4 @@
|
||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
#name : using System....;
|
||||
# --
|
||||
using System.$1;
|
||||
using System.$1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : clear: ...
|
||||
# --
|
||||
clear: $1;
|
||||
clear: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : display: block
|
||||
# --
|
||||
display: block;
|
||||
display: block;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : display: inline
|
||||
# --
|
||||
display: inline;
|
||||
display: inline;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : display: none
|
||||
# --
|
||||
display: none;
|
||||
display: none;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : font-family: ...
|
||||
# --
|
||||
font-family: $1;
|
||||
font-family: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : font-size: ...
|
||||
# --
|
||||
font-size: ${12px};
|
||||
font-size: ${12px};
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin-bottom: ...
|
||||
# --
|
||||
margin-bottom: $1;
|
||||
margin-bottom: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin-left: ...
|
||||
# --
|
||||
margin-left: $1;
|
||||
margin-left: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin: ...
|
||||
# --
|
||||
margin: $1;
|
||||
margin: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin top right bottom left
|
||||
# --
|
||||
margin: ${top} ${right} ${bottom} ${left};
|
||||
margin: ${top} ${right} ${bottom} ${left};
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin-right: ...
|
||||
# --
|
||||
margin-right: $1;
|
||||
margin-right: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : margin-top: ...
|
||||
# --
|
||||
margin-top: $1;
|
||||
margin-top: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding-bottom: ...
|
||||
# --
|
||||
padding-bottom: $1;
|
||||
padding-bottom: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding-left: ...
|
||||
# --
|
||||
padding-left: $1;
|
||||
padding-left: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding: ...
|
||||
# --
|
||||
padding: $1;
|
||||
padding: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding: top right bottom left
|
||||
# --
|
||||
padding: ${top} ${right} ${bottom} ${left};
|
||||
padding: ${top} ${right} ${bottom} ${left};
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding-right: ...
|
||||
# --
|
||||
padding-right: $1;
|
||||
padding-right: $1;
|
@ -1,4 +1,4 @@
|
||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
||||
#name : padding-top: ...
|
||||
# --
|
||||
padding-top: $1;
|
||||
padding-top: $1;
|
@ -2,5 +2,4 @@
|
||||
#name: autoload
|
||||
#key: autoload
|
||||
# --
|
||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
||||
|
||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
@ -3,5 +3,4 @@
|
||||
#key: bounds-of-thing-at-point
|
||||
#key: botap
|
||||
# --
|
||||
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
|
||||
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
@ -3,4 +3,4 @@
|
||||
#key: buffer-substring-no-properties
|
||||
#key: bsnp
|
||||
# --
|
||||
(buffer-substring-no-properties START$0 END)
|
||||
(buffer-substring-no-properties START$0 END)
|
@ -3,4 +3,4 @@
|
||||
#key: buffer-substring
|
||||
#key: bs
|
||||
# --
|
||||
(buffer-substring START$0 END)
|
||||
(buffer-substring START$0 END)
|
@ -2,4 +2,4 @@
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
(format "$0" &optional OBJECTS)
|
@ -2,4 +2,4 @@
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
(format "$0" &optional OBJECTS)
|
@ -3,4 +3,4 @@
|
||||
#key: replace-regexp-in-string
|
||||
#key: rris
|
||||
# --
|
||||
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
|
||||
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
|
@ -2,4 +2,4 @@
|
||||
#name: substring
|
||||
#key: substring
|
||||
# --
|
||||
(substring STRING$0 FROM &optional TO)
|
||||
(substring STRING$0 FROM &optional TO)
|
@ -3,5 +3,4 @@
|
||||
#key: thing-at-point
|
||||
#key: tap
|
||||
# --
|
||||
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
|
||||
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
@ -13,4 +13,4 @@
|
||||
(mapc 'myProcessFile (dired-get-marked-files))
|
||||
)
|
||||
|
||||
;; to use it, type M-x dired-myProcessFile
|
||||
;; to use it, type M-x dired-myProcessFile
|
@ -14,4 +14,4 @@
|
||||
;; ... do something here
|
||||
;; (write-file fpath) ;; write back to the file
|
||||
|
||||
(kill-buffer " myTemp")))
|
||||
(kill-buffer " myTemp")))
|
@ -14,4 +14,4 @@ This works on the current region."
|
||||
(goto-char (point-min))
|
||||
(while (search-forward ">" nil t) (replace-match ">" nil t))
|
||||
)
|
||||
)
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: grab buffer substring
|
||||
# --
|
||||
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
|
||||
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
|
@ -1,4 +1,4 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: grab word under cursor
|
||||
# --
|
||||
(setq $0 (thing-at-point 'symbol))
|
||||
(setq $0 (thing-at-point 'symbol))
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
;; apply a function to all files in a dir
|
||||
(require 'find-lisp)
|
||||
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
|
||||
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
|
@ -24,4 +24,4 @@
|
||||
(insert "newText") ; insert your new text
|
||||
|
||||
)
|
||||
)
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
#name : after ... ->
|
||||
# --
|
||||
after
|
||||
$1 -> $0
|
||||
$1 -> $0
|
@ -2,4 +2,4 @@
|
||||
# --
|
||||
begin
|
||||
$0
|
||||
end
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
#name : -behaviour(...).
|
||||
# --
|
||||
-behaviour(${1:gen_server}).
|
||||
$0
|
||||
$0
|
@ -2,4 +2,4 @@
|
||||
# --
|
||||
case $1 of
|
||||
$0
|
||||
end
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
#name : -compile(...).
|
||||
# --
|
||||
-compile([${1:export_all}]).
|
||||
$0
|
||||
$0
|
@ -1,4 +1,4 @@
|
||||
#name : -define(...,...).
|
||||
# --
|
||||
-define($1,$2).
|
||||
$0
|
||||
$0
|
@ -2,4 +2,4 @@
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# --
|
||||
-export([${1:start/0}]).
|
||||
$0
|
||||
$0
|
@ -1,3 +1,3 @@
|
||||
#name : fun (...) -> ... end
|
||||
# --
|
||||
fun ($1) -> $0 end
|
||||
fun ($1) -> $0 end
|
@ -3,4 +3,4 @@
|
||||
if
|
||||
$1 -> $2;
|
||||
true -> $0
|
||||
end
|
||||
end
|
@ -2,4 +2,4 @@
|
||||
# --
|
||||
-ifdef($1).
|
||||
$0
|
||||
-endif.
|
||||
-endif.
|
@ -2,4 +2,4 @@
|
||||
# --
|
||||
-ifndef($1).
|
||||
$0
|
||||
-endif.
|
||||
-endif.
|
@ -2,4 +2,4 @@
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# --
|
||||
-import(${1:lists}, [${2:map/2, sum/1}]).
|
||||
$0
|
||||
$0
|
@ -1,4 +1,4 @@
|
||||
#name : -include("...").
|
||||
# --
|
||||
-include("$1").
|
||||
$0
|
||||
$0
|
@ -1,4 +1,4 @@
|
||||
#name : -include_lib("...").
|
||||
# --
|
||||
-include_lib("$1").
|
||||
$0
|
||||
$0
|
@ -5,4 +5,4 @@ ${1:loop}($2) ->
|
||||
${3:_} ->
|
||||
$1($2)
|
||||
end.
|
||||
$0
|
||||
$0
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
-module(${1:`(file-name-nondirectory
|
||||
(file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
|
||||
$0
|
||||
$0
|
@ -2,4 +2,4 @@
|
||||
# --
|
||||
receive
|
||||
$1 -> $0
|
||||
end
|
||||
end
|
@ -3,4 +3,4 @@
|
||||
receive
|
||||
after
|
||||
$1 -> $0
|
||||
end
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
#name : -record(...,{...}).
|
||||
# --
|
||||
-record($1,{$2}).
|
||||
$0
|
||||
$0
|
@ -4,4 +4,4 @@ try $1 of
|
||||
$0
|
||||
catch
|
||||
after
|
||||
end
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
#name : -undef(...).
|
||||
# --
|
||||
-undef($1).
|
||||
$0
|
||||
$0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : automatic
|
||||
# --
|
||||
automatic $0
|
||||
automatic $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : block data
|
||||
# --
|
||||
block data $0
|
||||
block data $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : continue
|
||||
# --
|
||||
continue $0
|
||||
continue $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : character
|
||||
# --
|
||||
character $0
|
||||
character $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : complex
|
||||
# --
|
||||
complex $0
|
||||
complex $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : double complex
|
||||
# --
|
||||
double complex $0
|
||||
double complex $0
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
do while (${1:condition})
|
||||
$0
|
||||
end do
|
||||
end do
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : double precision
|
||||
# --
|
||||
double precision $0
|
||||
double precision $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : equivalence
|
||||
# --
|
||||
equivalence $0
|
||||
equivalence $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit byte
|
||||
# --
|
||||
implicit byte $0
|
||||
implicit byte $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit complex
|
||||
# --
|
||||
implicit complex $0
|
||||
implicit complex $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit character
|
||||
# --
|
||||
implicit character $0
|
||||
implicit character $0
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
if ( ${1:condition} ) then
|
||||
$0
|
||||
end if
|
||||
end if
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit integer
|
||||
# --
|
||||
implicit integer $0
|
||||
implicit integer $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit logical
|
||||
# --
|
||||
implicit logical $0
|
||||
implicit logical $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit none
|
||||
# --
|
||||
implicit none
|
||||
implicit none
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : include
|
||||
# --
|
||||
include $0
|
||||
include $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : intrinsic
|
||||
# --
|
||||
intrinsic $0
|
||||
intrinsic $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : implicit real
|
||||
# --
|
||||
implicit real $0
|
||||
implicit real $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : logical
|
||||
# --
|
||||
logical $0
|
||||
logical $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : parameter
|
||||
# --
|
||||
parameter $0
|
||||
parameter $0
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
program ${1:name}
|
||||
$0
|
||||
end program ${1:name}
|
||||
end program ${1:name}
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : read (*,*)
|
||||
# --
|
||||
read (${1:*},${2:*}) $0
|
||||
read (${1:*},${2:*}) $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : structure
|
||||
# --
|
||||
structure $0
|
||||
structure $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : subroutine
|
||||
# --
|
||||
subroutine $0
|
||||
subroutine $0
|
@ -1,4 +1,4 @@
|
||||
#contributor: Li Zhu <http://www.zhuli.name>
|
||||
#name : write (*,*)
|
||||
# --
|
||||
write (${1:*},${2:*}) $0
|
||||
write (${1:*},${2:*}) $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