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