mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
10 lines
376 B
Plaintext
10 lines
376 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: M
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: Class Method
|
|
## condition: "(source.objc | source.objc++) & meta.scope.implementation.objc - meta.function-with-body"
|
|
# --
|
|
+ (${1:id})${2:method}${3::(${4:id})${5:${4/(NS([AEIOQUY])?(\w+).*)|(.)?.*/(?1:a(?2:n$2)$3:(?4:anArgument))/}}}
|
|
{$0${1/^(void|IBAction)$|(.*)/(?2:
|
|
return nil;)/}
|
|
} |