From a76f1081591a5e1e3ec1d2c182563d8709fc40a8 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 14 Oct 2018 09:48:23 +0200 Subject: [PATCH] feat: Highlight modification functions Relates #8 --- syntax/typoscript.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/syntax/typoscript.vim b/syntax/typoscript.vim index cfb4933..177677e 100644 --- a/syntax/typoscript.vim +++ b/syntax/typoscript.vim @@ -66,6 +66,15 @@ syntax case match | syntax keyword tsObjectType contained containedin=tsValue TE syntax case match | syntax keyword tsObjectType contained containedin=tsValue USER syntax case match | syntax keyword tsObjectType contained containedin=tsValue USER_INT +syntax case match | syntax keyword modificationFunction contained containedin=tsValue addToList +syntax case match | syntax keyword modificationFunction contained containedin=tsValue prependString +syntax case match | syntax keyword modificationFunction contained containedin=tsValue removeFromList +syntax case match | syntax keyword modificationFunction contained containedin=tsValue removeString +syntax case match | syntax keyword modificationFunction contained containedin=tsValue replaceString +syntax case match | syntax keyword modificationFunction contained containedin=tsValue reverseList +syntax case match | syntax keyword modificationFunction contained containedin=tsValue sortList +syntax case match | syntax keyword modificationFunction contained containedin=tsValue uniqueList + " Link groups highlight link tsComment Comment highlight link tsCondition Conditional @@ -81,6 +90,7 @@ highlight link tsTag Identifier highlight link tsTagOperator Operator highlight link tsTagAttrValue String highlight link tsObjectType Type +highlight link modificationFunction Type let b:current_syntax = "typoscript"