mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: for
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: For Loop
|
||||
# --
|
||||
for(size_t ${2:i} = 0; $2 < ${1:count}; ${3:++$2})
|
||||
{
|
||||
${0:/* code */}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: enum
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Enumeration
|
||||
# --
|
||||
enum ${1:name} { $0 };
|
||||
6
extras/imported/c-mode/Declarations/Typedef.yasnippet
Normal file
6
extras/imported/c-mode/Declarations/Typedef.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: td
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Typedef
|
||||
# --
|
||||
typedef ${1:int} ${2:MyCustomType};
|
||||
@@ -0,0 +1,14 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Class
|
||||
# --
|
||||
class ${1:${TM_FILENAME/(.+)\..+|.*/(?1:\L$1_t:name)/}}
|
||||
{
|
||||
public:
|
||||
${1/(\w+).*/$1/} (${2:arguments});
|
||||
virtual ~${1/(\w+).*/$1/} ();
|
||||
|
||||
private:
|
||||
${0:/* data */}
|
||||
};
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: do
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Do While Loop
|
||||
# --
|
||||
do {
|
||||
${0:/* code */}
|
||||
} while(${1:/* condition */});
|
||||
9
extras/imported/c-mode/Declarations/if .. (if).yasnippet
Normal file
9
extras/imported/c-mode/Declarations/if .. (if).yasnippet
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: if
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: If Condition
|
||||
# --
|
||||
if(${1:/* condition */})
|
||||
{
|
||||
${0:/* code */}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ns
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Namespace
|
||||
# --
|
||||
namespace${1/.+/ /m}${1:${TM_FILENAME/^((.*?)\..*)?$/(?1:\L$2:my)/}}
|
||||
{
|
||||
$0
|
||||
}${1/.+/ \/* /m}$1${1/.+/ *\/ /m}
|
||||
9
extras/imported/c-mode/Declarations/struct.yasnippet
Normal file
9
extras/imported/c-mode/Declarations/struct.yasnippet
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: st
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Struct
|
||||
# --
|
||||
struct ${1:${TM_FILENAME/(.+)\..+|.*/(?1:\L$1_t:name)/}}
|
||||
{
|
||||
${0:/* data */}
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: template <typename …>
|
||||
# --
|
||||
template <typename ${1:_InputIter}>
|
||||
Reference in New Issue
Block a user