mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 01:14:17 +00:00
re-design snippets hierarchy
This commit is contained in:
13
snippets/text-mode/objc-mode/prop
Normal file
13
snippets/text-mode/objc-mode/prop
Normal file
@@ -0,0 +1,13 @@
|
||||
#name : foo { ... } ; setFoo { ... }
|
||||
# --
|
||||
- (${1:id})${2:foo}
|
||||
{
|
||||
return $2;
|
||||
}
|
||||
|
||||
- (void)set${2:$(capitalize text)}:($1)aValue
|
||||
{
|
||||
[$2 autorelease];
|
||||
$2 = [aValue retain];
|
||||
}
|
||||
$0
|
||||
Reference in New Issue
Block a user