mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
10 lines
392 B
Plaintext
10 lines
392 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: m
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: Method
|
|
# binding: C-c m
|
|
# condition: (and (yas/objc-implementation-p) (not (yas/objc-method-body-p)))
|
|
# --
|
|
- (${1:id})${2:`(or yas/selected-text "method")`}${3::(${4:id})${5:${4:$(
|
|
yas/objc-guess-instance-name yas/text)}}} {$0${1:$(if (
|
|
string-match yas/objc-void-regexp text) "}" "\n return nil;\n}")} |