Add folds for objective-c interface, protocol, and implementation blocks
This commit is contained in:
parent
6801901f3c
commit
003856d027
1 changed files with 8 additions and 0 deletions
8
vim/after/ftplugin/objc.vim
Normal file
8
vim/after/ftplugin/objc.vim
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue