From ac68c36a1eb452128900d6d5f9a7e12aa689c45a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 3 Dec 2014 17:07:12 -0500 Subject: [PATCH] misc: vim syntax recognize the Objective-C syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- misc/vim/syntax/nit.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/vim/syntax/nit.vim b/misc/vim/syntax/nit.vim index 737b4a1..0b1f1eb 100644 --- a/misc/vim/syntax/nit.vim +++ b/misc/vim/syntax/nit.vim @@ -146,6 +146,12 @@ unlet b:current_syntax syn match NITFFILanguage '"C++"' nextgroup=NITFFIBlockCpp skipwhite syn region NITFFIBlockCpp matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFICpp +" FFI Objective-C +syntax include @FFIObjC syntax/objc.vim +unlet b:current_syntax +syn match NITFFILanguage /\c"ObjC\(\| Header\| Body\)"/ nextgroup=NITFFIBlockObjC skipwhite +syn region NITFFIBlockObjC matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFIObjC + " FFI C (the last one is the default) syntax include @FFIC syntax/c.vim unlet b:current_syntax -- 1.7.9.5