From: Alexis Laferrière Date: Thu, 31 May 2012 00:17:10 +0000 (-0400) Subject: misc: adds extern class type to vim syntax highlighting X-Git-Tag: v0.6~100^2~9 X-Git-Url: http://nitlanguage.org misc: adds extern class type to vim syntax highlighting Signed-off-by: Alexis Laferrière --- 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