Permalink
Browse files

improved the class snippet to automatically get the classname from th…

…e filename
  • Loading branch information...
1 parent 2d953b5 commit 49bd11ebc850f6288a63f6d8412909393f1cab64 Klaas Pieter Annema committed with Jul 8, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 Snippets/Class.tmSnippet
@@ -3,8 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>
-@implementation ${1:class} : ${2:CPObject}
+ <string>@interface ${1:${TM_FILENAME/\...*$|(^$)/(?1:object)/}} : ${2:CPObject}
{
}
@@ -16,8 +15,7 @@
return self;
}
-@end
-</string>
+@end</string>
<key>name</key>
<string>class</string>
<key>scope</key>

0 comments on commit 49bd11e

Please sign in to comment.