mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
restructuring classic snippets dir to conform to new parenting specs
This commit is contained in:
1
snippets/c++-mode/.yas-parents
Normal file
1
snippets/c++-mode/.yas-parents
Normal file
@@ -0,0 +1 @@
|
||||
cc-mode
|
||||
3
snippets/c++-mode/beginend
Normal file
3
snippets/c++-mode/beginend
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : v.begin(), v.end()
|
||||
# --
|
||||
${1:v}.begin(), $1.end
|
||||
8
snippets/c++-mode/class
Normal file
8
snippets/c++-mode/class
Normal file
@@ -0,0 +1,8 @@
|
||||
#name : class ... { ... }
|
||||
# --
|
||||
class ${1:Name}
|
||||
{
|
||||
public:
|
||||
${1:$(yas/substr text "[^: ]*")}($2);
|
||||
virtual ~${1:$(yas/substr text "[^: ]*")}();
|
||||
};
|
||||
3
snippets/c++-mode/ns
Normal file
3
snippets/c++-mode/ns
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : namespace ...
|
||||
# --
|
||||
namespace
|
||||
3
snippets/c++-mode/template
Normal file
3
snippets/c++-mode/template
Normal file
@@ -0,0 +1,3 @@
|
||||
#name : template <typename ...>
|
||||
# --
|
||||
template <typename ${T}>
|
||||
4
snippets/c++-mode/using
Normal file
4
snippets/c++-mode/using
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : using namespace ...
|
||||
# --
|
||||
using namespace ${std};
|
||||
$0
|
||||
Reference in New Issue
Block a user