diff options
Diffstat (limited to 'runtime/syntax/kscript.vim')
| -rw-r--r-- | runtime/syntax/kscript.vim | 49 | 
1 files changed, 18 insertions, 31 deletions
| diff --git a/runtime/syntax/kscript.vim b/runtime/syntax/kscript.vim index cefbe39a29..e6776208d4 100644 --- a/runtime/syntax/kscript.vim +++ b/runtime/syntax/kscript.vim @@ -4,11 +4,8 @@  " URL:		http://aquila.rezel.enst.fr/thomas/vim/kscript.vim  " CVS:		$Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $ -" For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded -if version < 600 -  syntax clear -elseif exists("b:current_syntax") +" quit when a syntax file was already loaded +if exists("b:current_syntax")    finish  endif @@ -37,33 +34,23 @@ syn region	kscriptString		start=+"""+  end=+"""+  syn region	kscriptString		start=+'''+  end=+'''+  " Define the default highlighting. -" For version 5.7 and earlier: only when not done already -" For version 5.8 and later: only when an item doesn't have highlighting yet -if version >= 508 || !exists("did_kscript_syntax_inits") -  if version < 508 -    let did_kscript_syntax_inits = 1 -    command -nargs=+ HiLink hi link <args> -  else -    command -nargs=+ HiLink hi def link <args> -  endif +" Only when an item doesn't have highlighting yet + +hi def link kscriptConditional		Conditional +hi def link kscriptRepeat			Repeat +hi def link kscriptExceptions		Statement +hi def link kscriptFunction		Function +hi def link kscriptConst			Constant +hi def link kscriptStatement		Statement +hi def link kscriptLabel			Label +hi def link kscriptStorageClass		StorageClass +hi def link kscriptType			Type +hi def link kscriptTodo			Todo +hi def link kscriptComment		Comment +hi def link kscriptString			String +hi def link kscriptPreCondit		PreCondit +hi def link kscriptHardCoded		Statement -  HiLink kscriptConditional		Conditional -  HiLink kscriptRepeat			Repeat -  HiLink kscriptExceptions		Statement -  HiLink kscriptFunction		Function -  HiLink kscriptConst			Constant -  HiLink kscriptStatement		Statement -  HiLink kscriptLabel			Label -  HiLink kscriptStorageClass		StorageClass -  HiLink kscriptType			Type -  HiLink kscriptTodo			Todo -  HiLink kscriptComment		Comment -  HiLink kscriptString			String -  HiLink kscriptPreCondit		PreCondit -  HiLink kscriptHardCoded		Statement - -  delcommand HiLink -endif  let b:current_syntax = "kscript" | 
