From 75ef3a18918e51311be8de25f1682d3ad56d78d6 Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Sat, 30 Apr 2016 20:55:12 +0200 Subject: [PATCH] FIX: Block comments have to be the first non-space on their line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two issues were fixed to make block comments comply with https://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/Syntax/TypoScriptSyntax/Index.html#syntax-comment-blocks: * Block comment opening and closing sequence must be first non-space on it‘s line * Any characters after the closing sequence is part of the comment, ignored by typoscript parser --- syntax/typoscript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/typoscript.vim b/syntax/typoscript.vim index 6e513d9..e02a9e3 100644 --- a/syntax/typoscript.vim +++ b/syntax/typoscript.vim @@ -6,7 +6,7 @@ endif setlocal isident=@,48-57,-,.,_,192-255 " Top level elements -syntax region tsComment keepend start="\/\*" end="\*\/" +syntax region tsComment keepend start="^\s*\/\*" end="^\s*\*\/.*$" 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*$"