tweaking some basic objc snippets

This commit is contained in:
capitaomorte
2010-03-14 19:58:27 +00:00
parent a090443417
commit f1ce4866b6
9 changed files with 46 additions and 34 deletions

View File

@@ -2,6 +2,7 @@
# key: log
# contributor: Translated from TextMate Snippet
# name: NSLog(…)
## condition: "source.objc, source.objc++"
# condition: (and (yas/objc-implementation-p) (yas/objc-method-body-p))
# --
NSLog(@"$1"${1/[^%]*(%)?.*/(?1:, :\);)/}$2${1/[^%]*(%)?.*/(?1:\);)/}
NSLog(@"${1:%@}"${1:$(if (string-match "%" text) ", " ");")
}$2${1:$(if (string-match "%" text) ");" "")}$0