protected function parseComment($typoScriptLine)
{
if (preg_match(self::SPLIT_PATTERN_COMMENTTYPE, $typoScriptLine, $matches, PREG_OFFSET_CAPTURE) === 1) {
switch ($matches[1][0]) {
case '/*':
$this->currentBlockCommentState = true;
break;
case '*/':
if ($this->currentBlockCommentState !== true) {
throw new Fusion\Exception('Unexpected closing block comment without matching opening block comment.', 1180615119);
}
$this->currentBlockCommentState = false;
$this->parseTypoScriptLine(substr($typoScriptLine, $matches[1][1] + 2));
break;
case '#':
case '//':
default:
break;
}
} elseif ($this->currentBlockCommentState === false) {
throw new Fusion\Exception('No comment type matched although the comment scan regex matched the TypoScript line (' . $typoScriptLine . ').', 1180614895);
}
}