Neos.Fusion/Classes/Core/Parser.php
protected function parseComment($fusionLine)
    {
        if (preg_match(self::SPLIT_PATTERN_COMMENTTYPE, $fusionLine, $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->parseFusionLine(substr($fusionLine, ($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 Fusion line (' . $fusionLine . ').', 1180614895);
        }
    }
protected function parseComment($fusionLine)
    {
        if (preg_match(self::SPLIT_PATTERN_COMMENTTYPE, $fusionLine, $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->parseFusionLine(substr($fusionLine, ($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 Fusion line (' . $fusionLine . ').', 1180614895);
        }
    }
protected function parseComment ( $ fusionLine ) { if ( preg_match ( self :: SPLIT_PATTERN_COMMENTTYPE , $ fusionLine , $ 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 -> parseFusionLine ( substr ( $ fusionLine , ( $ 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 Fusion line (' . $ fusionLine . ').' , 1180614895 ) ; } }
Parses a line with comments or a line while parsing is in block comment mode.

@param string $fusionLine One line of Fusion code
@return void
@throws Fusion\Exception
Parses a line with comments or a line while parsing is in block comment mode .