1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-19 20:38:05 +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 # @"..." string
snippet s snippet s
@"${1}"${2} @"${1}"${2}
# Object
snippet o
${1:NSObject} *${2:foo} = [${3:$1 alloc}];${5}
# NSLog(...) # NSLog(...)
snippet log snippet log
NSLog(@"${1}"${2});${3} NSLog(@"${1}"${2});${3}
@@ -138,8 +141,7 @@ snippet fora
snippet forarray 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++) for (unsigned int index = 0; index < $1Count; index++) {
{
${3:id} $1 = [$2 $1AtIndex:index]; ${3:id} $1 = [$2 $1AtIndex:index];
${4} ${4}
} }