From 8a138eeb5a8f4090f246afe7c18907aea18f884b Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Thu, 4 Aug 2011 05:49:28 -0700 Subject: [PATCH] vim syntax highlighting for ispc from --- contrib/ispc.vim | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 contrib/ispc.vim diff --git a/contrib/ispc.vim b/contrib/ispc.vim new file mode 100644 index 00000000..5c178c0f --- /dev/null +++ b/contrib/ispc.vim @@ -0,0 +1,32 @@ +" Vim syntax file +" Language: ISPC +" Maintainer: Andreas Wendleder +" Last Change: 2011 Aug 3 + +" Quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +" Read the C syntax to start with +runtime! syntax/c.vim +unlet b:current_syntax + +" New keywords +syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sync task +syn keyword ispcConditional cif +syn keyword ispcRepeat cdo cfor cwhile +syn keyword ispcBuiltin programCount programIndex +syn keyword ispcType export int8 int16 int32 int64 + +" Default highlighting +command -nargs=+ HiLink hi def link +HiLink ispcStatement Statement +HiLink ispcConditional Conditional +HiLink ispcRepeat Repeat +HiLink ispcBuiltin Statement +HiLink ispcType Type +delcommand HiLink + +let b:current_syntax = "ispc" +