1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-19 12:28:11 +01:00

fixed a typo in Obj-C snippets and added another snippet

This commit is contained in:
Michael Sanders
2009-04-13 20:50:05 -04:00
parent ea15c7129a
commit ac45382833

View File

@@ -10,6 +10,9 @@ snippet sel
# @"..." string
snippet s
@"${1}"${2}
# Object
snippet o
${1:NSObject} *${2:foo} = [${3:$1 alloc}];${5}
# NSLog(...)
snippet log
NSLog(@"${1}"${2});${3}
@@ -136,11 +139,10 @@ snippet fora
${4}
}
snippet forarray
unsigned int ${1:object}Count = [${2:array} count];
unsigned int ${1:object}Count = [${2:array} count];
for (unsigned int index = 0; index < $1Count; index++)
{
${3:id} $1 = [$2 $1AtIndex:index];
for (unsigned int index = 0; index < $1Count; index++) {
${3:id} $1 = [$2 $1AtIndex:index];
${4}
}
# IBOutlet