restored yasnippet

This commit is contained in:
Bozhidar Batsov 2012-02-17 22:12:32 +02:00
parent ac01f235cc
commit 103dbcd8d0
573 changed files with 71124 additions and 0 deletions

View file

@ -0,0 +1 @@
cc-mode

View file

@ -0,0 +1,4 @@
# name: v.begin(), v.end()
# key: beginend
# --
${1:v}.begin(), $1.end

View file

@ -0,0 +1,9 @@
# name: class ... { ... }
# key: class
# --
class ${1:Name}
{
public:
${1:$(yas/substr text "[^: ]*")}($2);
virtual ~${1:$(yas/substr text "[^: ]*")}();
};

4
vendor/yasnippet/snippets/c++-mode/ns vendored Normal file
View file

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

View file

@ -0,0 +1,4 @@
# name: template <typename ...>
# key: template
# --
template <typename ${T}>

View file

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

View file

@ -0,0 +1 @@
cc-mode

View file

@ -0,0 +1,4 @@
# name: FILE *fp = fopen(..., ...);
# key: fopen
# --
FILE *${fp} = fopen(${"file"}, "${r}");

View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: printf
# contributor: joaotavora
# key: printf
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}

View file

@ -0,0 +1 @@
text-mode

7
vendor/yasnippet/snippets/cc-mode/do vendored Normal file
View file

@ -0,0 +1,7 @@
# name: do { ... } while (...)
# key: do
# --
do
{
$0
} while (${1:condition});

7
vendor/yasnippet/snippets/cc-mode/for vendored Normal file
View file

@ -0,0 +1,7 @@
# name: for (...; ...; ...) { ... }
# key: for
# --
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
{
$0
}

7
vendor/yasnippet/snippets/cc-mode/if vendored Normal file
View file

@ -0,0 +1,7 @@
# name: if (...) { ... }
# key: if
# --
if (${1:condition})
{
$0
}

4
vendor/yasnippet/snippets/cc-mode/inc vendored Normal file
View file

@ -0,0 +1,4 @@
# name: #include "..."
# key: inc
# --
#include "$1"

View file

@ -0,0 +1,4 @@
# name: #include <...>
# key: inc
# --
#include <$1>

View file

@ -0,0 +1,8 @@
# name: int main(argc, argv) { ... }
# key: main
# --
int main(int argc, char *argv[])
{
$0
return 0;
}

View file

@ -0,0 +1,9 @@
# name: #ifndef XXX; #define XXX; #endif
# key: once
# --
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
#define $1
$0
#endif /* $1 */

View file

@ -0,0 +1,7 @@
# name: struct ... { ... }
# key: struct
# --
struct ${1:name}
{
$0
};

View file

@ -0,0 +1 @@
perl-mode

View file

@ -0,0 +1 @@
cc-mode

View file

@ -0,0 +1,8 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: private attribute ....;
# key: attrib
# --
/// <summary>
/// $3
/// </summary>
private $1 $2;

View file

@ -0,0 +1,22 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: private attribute ....; public property ... ... { ... }
# key: attrib
# --
/// <summary>
/// $3
/// </summary>
private $1 $2;
/// <summary>
/// $4
/// </summary>
/// <value>$5</value>
public $1 $2
{
get {
return this.$2;
}
set {
this.$2 = value;
}
}

View file

@ -0,0 +1,22 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: private _attribute ....; public Property ... ... { ... }
# key: attrib
# --
/// <summary>
/// $3
/// </summary>
private $1 ${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
/// <summary>
/// ${3:Description}
/// </summary>
/// <value><c>$1</c></value>
public ${1:Type} ${2:Name}
{
get {
return this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")};
}
set {
this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
}
}

View file

@ -0,0 +1,22 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: class ... { ... }
# key: class
# --
${5:public} class ${1:Name}
{
#region Ctor & Destructor
/// <summary>
/// ${3:Standard Constructor}
/// </summary>
public $1($2)
{
}
/// <summary>
/// ${4:Default Destructor}
/// </summary>
public ~$1()
{
}
#endregion
}

View file

@ -0,0 +1,7 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <summary> ... </summary>
# key: comment
# --
/// <summary>
/// $1
/// </summary>

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <param name="..."> ... </param>
# key: comment
# --
/// <param name="$1">$2</param>

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <param name="..."> ... </param>
# key: comment
# --
/// <returns>$1</returns>

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: /// <exception cref="..."> ... </exception>
# key: comment
# --
/// <exception cref="$1">$2</exception>

View file

@ -0,0 +1,11 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: public void Method { ... }
# key: method
# --
/// <summary>
/// ${5:Description}
/// </summary>${2:$(if (string= (upcase text) "VOID") "" (format "%s%s%s" "\n/// <returns><c>" text "</c></returns>"))}
${1:public} ${2:void} ${3:MethodName}($4)
{
$0
}

View file

@ -0,0 +1,8 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: namespace .. { ... }
# key: namespace
# --
namespace $1
{
$0
}

View file

@ -0,0 +1,17 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: property ... ... { ... }
# key: prop
# --
/// <summary>
/// $5
/// </summary>
/// <value>$6</value>
$1 $2 $3
{
get {
return this.$4;
}
set {
this.$4 = value;
}
}

View file

@ -0,0 +1,7 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: #region ... #endregion
# key: region
# --
#region $1
$0
#endregion

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using ...;
# key: using
# --
using $1;

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using System;
# key: using
# --
using System;

View file

@ -0,0 +1,5 @@
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
# name: using System....;
# key: using
# --
using System.$1;

View file

@ -0,0 +1 @@
text-mode

4
vendor/yasnippet/snippets/css-mode/bg vendored Normal file
View file

@ -0,0 +1,4 @@
# name: background-color: ...
# key: bg
# --
background-color: #${1:DDD};

View file

@ -0,0 +1,4 @@
# name: background-image: ...
# key: bg
# --
background-image: url($1);

View file

@ -0,0 +1,4 @@
# name: border size style color
# key: bor
# --
border: ${1:1px} ${2:solid} #${3:999};

5
vendor/yasnippet/snippets/css-mode/cl vendored Normal file
View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: clear: ...
# key: cl
# --
clear: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: display: block
# key: disp
# --
display: block;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: display: inline
# key: disp
# --
display: inline;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: display: none
# key: disp
# --
display: none;

5
vendor/yasnippet/snippets/css-mode/ff vendored Normal file
View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: font-family: ...
# key: ff
# --
font-family: $1;

5
vendor/yasnippet/snippets/css-mode/fs vendored Normal file
View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: font-size: ...
# key: fs
# --
font-size: ${12px};

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin-bottom: ...
# key: mar
# --
margin-bottom: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin-left: ...
# key: mar
# --
margin-left: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin: ...
# key: mar
# --
margin: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin top right bottom left
# key: mar
# --
margin: ${top} ${right} ${bottom} ${left};

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin-right: ...
# key: mar
# --
margin-right: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: margin-top: ...
# key: mar
# --
margin-top: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding-bottom: ...
# key: pad
# --
padding-bottom: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding-left: ...
# key: pad
# --
padding-left: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding: ...
# key: pad
# --
padding: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding: top right bottom left
# key: pad
# --
padding: ${top} ${right} ${bottom} ${left};

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding-right: ...
# key: pad
# --
padding-right: $1;

View file

@ -0,0 +1,5 @@
# contributor: rejeep <johan.rejeep@gmail.com>
# name: padding-top: ...
# key: pad
# --
padding-top: $1;

View file

@ -0,0 +1,7 @@
-*- coding: utf-8 -*-
Originally started by Xah Lee (xahlee.org) on 2009-02-22
Released under GPL 3.
Feel free to add missing ones or modify existing ones to improve.
Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future.

View file

@ -0,0 +1 @@
text-mode

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: add-hook
# key: add-hook
# key: ah
# --
(add-hook HOOK$0 FUNCTION)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: and
# key: and
# key: a
# --
(and $0)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: append
# key: append
# --
(append $0 )

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: apply
# key: apply
# --
(apply $0 )

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: aref
# key: aref
# --
(aref ARRAY$0 INDEX)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: aset
# key: aset
# --
(aset ARRAY$0 IDX NEWELT)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: assq
# key: assq
# --
(assq KEY$0 LIST)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: autoload
# key: autoload
# --
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: backward-char
# key: backward-char
# key: bc
# --
(backward-char $0)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: beginning-of-line
# key: beginning-of-line
# key: bol
# --
(beginning-of-line)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: bounds-of-thing-at-point
# 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 ...

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: buffer-file-name
# key: buffer-file-name
# key: bfn
# --
(buffer-file-name)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: buffer-modified-p
# key: buffer-modified-p
# key: bmp
# --
(buffer-modified-p $0)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: buffer-substring-no-properties
# key: buffer-substring-no-properties
# key: bsnp
# --
(buffer-substring-no-properties START$0 END)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: buffer-substring
# key: buffer-substring
# key: bs
# --
(buffer-substring START$0 END)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: car
# key: car
# --
(car $0)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: cdr
# key: cdr
# --
(cdr $0)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: concat
# key: concat
# --
(concat $0)

View file

@ -0,0 +1,8 @@
# contributor: Xah Lee (XahLee.org)
# name: cond
# key: cond
# --
(cond
(CONDITION$0 BODY)
(CONDITION BODY)
)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: condition-case
# key: condition-case
# key: cc
# --
(condition-case $0 )

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: cons
# key: cons
# --
(cons $0)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: consp
# key: consp
# --
(consp $0 )

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: copy-directory
# key: copy-directory
# key: cd
# --
(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: copy-file
# key: copy-file
# key: cf
# --
(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: current-buffer
# key: current-buffer
# key: cb
# --
(current-buffer)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: custom-autoload
# key: custom-autoload
# key: ca
# --
(custom-autoload$0 SYMBOL LOAD &optional NOSET)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: defalias
# key: defalias
# --
(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: defcustom
# key: defcustom
# --
(defcustom $0 VALUE "DOC" &optional ARGS)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: define-key
# key: define-key
# key: dk
# --
(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: defsubst
# key: defsubst
# --
(defsubst $0 )

View file

@ -0,0 +1,12 @@
# contributor: Xah Lee (XahLee.org)
# name: defun
# key: defun
# key: d
# --
(defun $1 ()
"DOCSTRING"
(interactive)
(let (var1)
(setq var1 some)
$0
))

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: defvar
# key: defvar
# --
(defvar $0 &optional INITVALUE "DOCSTRING")

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: delete-char
# key: delete-char
# key: dc
# --
(delete-char $0)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: delete-directory
# key: delete-directory
# key: dd
# --
(delete-directory $0 &optional RECURSIVE)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: delete-file
# key: delete-file
# key: df
# --
(delete-file $0)

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: delete-region
# key: delete-region
# key: dr
# --
(delete-region $0 )

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: directory-files
# key: directory-files
# key: df
# --
(directory-files $0 &optional FULL MATCH NOSORT)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: dolist
# key: dolist
# --
(dolist $0 )

View file

@ -0,0 +1,6 @@
# contributor: Xah Lee (XahLee.org)
# name: end-of-line
# key: end-of-line
# key: eol
# --
(end-of-line)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: eq
# key: eq
# --
(eq $0)

View file

@ -0,0 +1,5 @@
# contributor: Xah Lee (XahLee.org)
# name: equal
# key: equal
# --
(equal $0)

Some files were not shown because too many files have changed in this diff Show more