From 2a93d151c8d6873089b21bc6f44b5ee5003cf000 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 3 Dec 2014 18:57:34 -0500 Subject: [PATCH] misc: trigger for extern code blocks of Java, C++ and C are more tolerant 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/vim/syntax/nit.vim b/misc/vim/syntax/nit.vim index 0b1f1eb..18a579a 100644 --- a/misc/vim/syntax/nit.vim +++ b/misc/vim/syntax/nit.vim @@ -131,19 +131,19 @@ hi def link NITFFIDelimiters Keyword " FFI Python syntax include @FFIPython syntax/python.vim unlet b:current_syntax -syn match NITFFILanguage '"Python"' nextgroup=NITFFIBlockPython skipwhite +syn match NITFFILanguage /\c"Python"/ nextgroup=NITFFIBlockPython skipwhite syn region NITFFIBlockPython matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFIPython " FFI Java syntax include @FFIJava syntax/java.vim unlet b:current_syntax -syn match NITFFILanguage '"Java"' nextgroup=NITFFIBlockJava skipwhite +syn match NITFFILanguage /\c"Java\(\| inner\)"/ nextgroup=NITFFIBlockJava skipwhite syn region NITFFIBlockJava matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFIJava " FFI C++ syntax include @FFICpp syntax/cpp.vim unlet b:current_syntax -syn match NITFFILanguage '"C++"' nextgroup=NITFFIBlockCpp skipwhite +syn match NITFFILanguage /\c"C++\(\| header\| body\)"/ nextgroup=NITFFIBlockCpp skipwhite syn region NITFFIBlockCpp matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFICpp " FFI Objective-C @@ -155,7 +155,7 @@ syn region NITFFIBlockObjC matchgroup=NITFFI start='`{' matchgroup=NITFFI end='` " FFI C (the last one is the default) syntax include @FFIC syntax/c.vim unlet b:current_syntax -syn match NITFFILanguage '"C\(\| header\| body\)"' nextgroup=NITFFIBlockC skipwhite +syn match NITFFILanguage /\c"C\(\| header\| body\)"/ nextgroup=NITFFIBlockC skipwhite syn region NITFFIBlockC matchgroup=NITFFI start='`{' matchgroup=NITFFI end='`}' keepend fold contains=@FFIC hi def link NITFFILanguage Define -- 1.7.9.5