src/Behat/Gherkin/Lexer.php
protected function scanComment()
    {
        if ($this->inPyString) {
            return null;
        }

        $line = $this->getTrimmedLine();
        if (0 !== mb_strpos($line, '#', 0, 'utf8')) {
            return null;
        }

        $token = $this->takeToken('Comment', $line);
        $this->consumeLine();

        return $token;
    }
protected function scanComment()
    {
        if ($this->inPyString) {
            return null;
        }

        $line = $this->getTrimmedLine();
        if (0 !== mb_strpos($line, '#', 0, 'utf8')) {
            return null;
        }

        $token = $this->takeToken('Comment', $line);
        $this->consumeLine();

        return $token;
    }
protected function scanComment ( ) { if ( $ this -> inPyString ) { return null ; } $ line = $ this -> getTrimmedLine ( ) ; if ( 0 !== mb_strpos ( $ line , '#' , 0 , 'utf8' ) ) { return null ; } $ token = $ this -> takeToken ( 'Comment' , $ line ) ; $ this -> consumeLine ( ) ; return $ token ; }
Scans Comment from input & returns it if found.

@return null|array
Scans Comment from input & returns it if found .