From b9af2d95b456bf47c1ade54323f6f6b0ea3fd8e6 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 14 Oct 2018 09:54:35 +0200 Subject: [PATCH] FEATURE: Highlight all operator Add := and > as tsLineOperator. Relates #8 --- syntax/typoscript.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax/typoscript.vim b/syntax/typoscript.vim index cfb4933..4ac9aac 100644 --- a/syntax/typoscript.vim +++ b/syntax/typoscript.vim @@ -11,7 +11,7 @@ syntax region tsComment keepend start="^\s*#" end="$" syntax region tsComment keepend start="\v^\s*\/\/" end="$" syntax region tsInclude keepend start="\v^\s*\<" end="\v\>\s*$" syntax region tsCondition keepend start="\v^\s*\[" end="\]\s*$" -syntax match tsSingleline "\v^\s*\i+\s*[=<>{].*$" +syntax match tsSingleline "\v^\s*\i+\s*[=:<>{].*$" syntax region tsMultiline keepend start="\v^\s*\i+\s*\(\s*$" end="\v^\s*\)\s*$" syntax match tsDelimiter "\v^\s*\}\s*$" @@ -20,9 +20,10 @@ syntax region tsValue keepend matchgroup=tsLineOperator start="\v\=" end="\v$" c syntax region tsValue keepend matchgroup=tsDelimiter start="\v\(" end="\v^\s*\)\s*$" contained containedin=tsMultiline syntax match tsIdentifier "\v^\s*\i+" contained containedin=tsSingleline,tsMultiline syntax match tsLineOperator "\v[=<]" contained containedin=tsSymlink -syntax match tsSymlink "\v(\<|\=\s*\<)\s*\i+\s*$" contained containedin=tsSingleline +syntax match tsSymlink "\v(\<|\=\s*\<|\>\s*)\s*\i+\s*$" contained containedin=tsSingleline syntax match tsDelimiter "\v\{\s*$" contained containedin=tsSingleline -syntax match tsLineOperator "\v\>\s*$" contained containedin=tsSingleline +syntax match tsLineOperator "\v:\=" contained containedin=tsSingleline +syntax match tsLineOperator "\v\>" contained containedin=tsSingleline syntax match tsIdentifier "\v\i+\s*$" contained containedin=tsSymlink " Sub level elements