From 089019f71d6dafef3fc96a4778e84d27d0336182 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 30 May 2012 20:17:10 -0400 Subject: [PATCH] misc: adds extern class type to vim syntax highlighting 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/vim/syntax/nit.vim b/misc/vim/syntax/nit.vim index 899dc7d..2f03435 100644 --- a/misc/vim/syntax/nit.vim +++ b/misc/vim/syntax/nit.vim @@ -53,7 +53,7 @@ syn match Error "\" " Declarations, definitions and blocks syn region NITModuleDecl matchgroup=NITDefine start="\<\(import\|module\|package\)\>\s*" matchgroup=NONE end="\ze\(\s\|:\|(\|$\)" oneline -syn region NITClassBlock matchgroup=NITDefine start="\<\(class\|enum\|universal\|interface\)\>" matchgroup=NITDefine end="\" contains=ALL fold +syn region NITClassBlock matchgroup=NITDefine start="\<\(class\|enum\|universal\|interface\|extern\)\>" matchgroup=NITDefine end="\" contains=ALL fold syn region NITFunctionDecl matchgroup=NITDefine start="\\s*" matchgroup=NONE end="\ze\(\\|\s\|:\|(\|$\)" oneline syn region NITTypeDecl matchgroup=NITDefine start="\\s*" matchgroup=NONE end="\ze\(\\|\s\|:\|(\|$\)" oneline contained containedin=NITClassBlock syn region NITAttrDecl matchgroup=NITDefine start="\\s*\ze_" matchgroup=NONE end="\ze\(\\|\s\|:\|(\|$\)" oneline contained containedin=NITClassBlock @@ -73,7 +73,7 @@ syn match NITSharpBang "\%^#!.*" syn match NITComment "#.*" contains=NITTodo " Keywords -syn keyword NITKeyword is abstract intern extern new +syn keyword NITKeyword is abstract intern new syn keyword NITDefine private public protected intrude readable writable redef syn keyword NITControl if while for assert and or in as isa once break continue return abort syn keyword NITClass nullable -- 1.7.9.5