mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
re-design snippets hierarchy
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#name : do { ... } while (...)
|
||||
# --
|
||||
do
|
||||
{
|
||||
$0
|
||||
} while (${1:condition});
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : for (...; ...; ...) { ... }
|
||||
# --
|
||||
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
|
||||
{
|
||||
$0
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : if (...) { ... }
|
||||
# --
|
||||
if (${1:condition})
|
||||
{
|
||||
$0
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : #include "..."
|
||||
# --
|
||||
#include "$1"
|
||||
@@ -1,3 +0,0 @@
|
||||
#name : #include <...>
|
||||
# --
|
||||
#include <$1>
|
||||
@@ -1,7 +0,0 @@
|
||||
#name: int main(argc, argv) { ... }
|
||||
# --
|
||||
int main(int argc, char *argv)
|
||||
{
|
||||
$0
|
||||
return 0;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
#name : #ifndef XXX; #define XXX; #endif
|
||||
# --
|
||||
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
||||
@@ -1,6 +0,0 @@
|
||||
#name : struct ... { ... }
|
||||
# --
|
||||
struct ${1:name}
|
||||
{
|
||||
$0
|
||||
};
|
||||
Reference in New Issue
Block a user