mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
15 lines
355 B
Plaintext
15 lines
355 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: acc
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: Primitive Type
|
|
## condition: "(source.objc | source.objc++) & meta.scope.implementation.objc - meta.function-with-body"
|
|
# --
|
|
- (${1:unsigned int})${2:thing}
|
|
{
|
|
return ${3:$2};
|
|
}
|
|
|
|
- (void)set${2/./\u$0/}:(${1:unsigned int})new${2/./\u$0/}
|
|
{
|
|
$3 = new${2/./\u$0/};
|
|
} |