Add folds for objective-c interface, protocol, and implementation blocks

This commit is contained in:
Eryn Wells 2013-10-30 10:47:21 -07:00
parent 6801901f3c
commit 003856d027

View file

@ -0,0 +1,8 @@
" Define fold regions for interfaces, protocols, and implementations.
"
" NOTE: keepend works here because Objective-C doesn't allow nesting @interface, @protocol, and @implementation blocks.
syn region objcInterface start="^@interface" end="^@end" keepend transparent fold
syn region objcProtocol start="^@protocol" end="^@end" keepend transparent fold
syn region objcImplementation start="^@implementation" end="^@end" keepend transparent fold
syn sync fromstart