From d73fe2cc6d4037ce9923fb0e6506e52def4faea4 Mon Sep 17 00:00:00 2001 From: Jimmy Thrasher Date: Tue, 2 Dec 2014 09:39:57 -0500 Subject: [PATCH] Add some missing obj-c highlight patterns to the new c-family.kak --- rc/c-family.kak | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rc/c-family.kak b/rc/c-family.kak index 81cb4f5d..45fd0333 100644 --- a/rc/c-family.kak +++ b/rc/c-family.kak @@ -72,6 +72,9 @@ addhl -group /objc/code regex %{\<(self|nil|id|super|TRUE|FALSE|YES|NO|NULL)\>|\ addhl -group /objc/code regex "\<(void|int|char|unsigned|float|bool|size_t|instancetype|BOOL|NSInteger|NSUInteger|CGFloat|NSString)\>" 0:type addhl -group /objc/code regex "\<(while|for|if|else|do|switch|case|default|goto|break|continue|return)\>" 0:keyword addhl -group /objc/code regex "\<(const|auto|inline|static|volatile|struct|enum|union|typedef|extern|__block|@\w+)\>" 0:attribute +addhl -group /objc/code regex "\<(nonatomic|assign|copy|strong|retain|weak|readonly)\>" 0:attribute +addhl -group /objc/code regex "@(property|synthesize|interface|implementation|protocol|end|selector|autoreleasepool|try|catch|class|synchronized)\>" 0:attribute +addhl -group /objc/code regex "\<(IBAction|IBOutlet)\>" 0:attribute hook global WinSetOption filetype=(cpp|objc) %[ # cleanup trailing whitespaces when exiting insert mode