From b2d98b99795f28b652be147631d404bb265eae7a Mon Sep 17 00:00:00 2001 From: Jeremy Edward Kozdon Date: Fri, 29 Apr 2016 11:35:38 -0700 Subject: [PATCH 1/4] Adding taskCount and taskIndex vim syntax file --- contrib/ispc.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ispc.vim b/contrib/ispc.vim index 7a587651..36dc1703 100644 --- a/contrib/ispc.vim +++ b/contrib/ispc.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: ISPC " Maintainer: Andreas Wendleder -" Last Change: 2016 Mar 24 +" Last Change: 2016 Apr 29 " Quit when a syntax file was already loaded if exists("b:current_syntax") @@ -16,7 +16,7 @@ unlet b:current_syntax syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sync task syn keyword ispcConditional cif syn keyword ispcRepeat cdo cfor cwhile foreach foreach_tiled foreach_unique foreach_active -syn keyword ispcBuiltin programCount programIndex +syn keyword ispcBuiltin programCount programIndex taskCount taskIndex taskIndex0 taskIndex1 taskIndex2 syn keyword ispcType export uniform varying int8 int16 int32 int64 syn keyword ispcOperator operator From 5db1e5fa392394a754506b141747c1b3279c1ba2 Mon Sep 17 00:00:00 2001 From: Jeremy Edward Kozdon Date: Fri, 29 Apr 2016 11:48:52 -0700 Subject: [PATCH 2/4] Fixing task classification --- contrib/ispc.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ispc.vim b/contrib/ispc.vim index 36dc1703..1747bdff 100644 --- a/contrib/ispc.vim +++ b/contrib/ispc.vim @@ -13,11 +13,11 @@ runtime! syntax/c.vim unlet b:current_syntax " New keywords -syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sync task +syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sync syn keyword ispcConditional cif syn keyword ispcRepeat cdo cfor cwhile foreach foreach_tiled foreach_unique foreach_active syn keyword ispcBuiltin programCount programIndex taskCount taskIndex taskIndex0 taskIndex1 taskIndex2 -syn keyword ispcType export uniform varying int8 int16 int32 int64 +syn keyword ispcType export uniform varying int8 int16 int32 int64 task syn keyword ispcOperator operator "double precision floating point number, with dot, optional exponent From 0fdfaad05337bafc121e16f2e3520283db030f2c Mon Sep 17 00:00:00 2001 From: Jeremy Edward Kozdon Date: Fri, 29 Apr 2016 13:37:37 -0700 Subject: [PATCH 3/4] Adding taskCount[0-3] --- contrib/ispc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ispc.vim b/contrib/ispc.vim index 1747bdff..bd1d2277 100644 --- a/contrib/ispc.vim +++ b/contrib/ispc.vim @@ -16,7 +16,7 @@ unlet b:current_syntax syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sync syn keyword ispcConditional cif syn keyword ispcRepeat cdo cfor cwhile foreach foreach_tiled foreach_unique foreach_active -syn keyword ispcBuiltin programCount programIndex taskCount taskIndex taskIndex0 taskIndex1 taskIndex2 +syn keyword ispcBuiltin programCount programIndex taskCount taskCount0 taskCount1 taskCount3 taskIndex taskIndex0 taskIndex1 taskIndex2 syn keyword ispcType export uniform varying int8 int16 int32 int64 task syn keyword ispcOperator operator From 99d1d2ffe31f06dc77f4c8eb69e4e0b6db5095c6 Mon Sep 17 00:00:00 2001 From: Jeremy Edward Kozdon Date: Wed, 4 May 2016 09:04:45 -0700 Subject: [PATCH 4/4] [vim] Adding new and delete for allocation --- contrib/ispc.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/ispc.vim b/contrib/ispc.vim index bd1d2277..eb084b92 100644 --- a/contrib/ispc.vim +++ b/contrib/ispc.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: ISPC " Maintainer: Andreas Wendleder -" Last Change: 2016 Apr 29 +" Last Change: 2016 May 04 " Quit when a syntax file was already loaded if exists("b:current_syntax") @@ -17,7 +17,7 @@ syn keyword ispcStatement cbreak ccontinue creturn launch print reference soa sy syn keyword ispcConditional cif syn keyword ispcRepeat cdo cfor cwhile foreach foreach_tiled foreach_unique foreach_active syn keyword ispcBuiltin programCount programIndex taskCount taskCount0 taskCount1 taskCount3 taskIndex taskIndex0 taskIndex1 taskIndex2 -syn keyword ispcType export uniform varying int8 int16 int32 int64 task +syn keyword ispcType export uniform varying int8 int16 int32 int64 task new delete syn keyword ispcOperator operator "double precision floating point number, with dot, optional exponent