mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
12 lines
312 B
Plaintext
12 lines
312 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: cat
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: Category
|
|
## condition: "source.objc, source.objc++"
|
|
# --
|
|
@interface ${1:${TM_FILENAME/.*?(\w+).*|.*/(?1:$1:NSObject)/}} (${2:${TM_FILENAME/.*?\w+\W+(\w+).*\..+|.*/(?1:$1:Category)/}})
|
|
@end
|
|
|
|
@implementation $1 ($2)
|
|
$0
|
|
@end |