src/Jade/Lexer.php
protected function scanComment()
    {
        if (preg_match('/^ *\/\/(-)?([^\n]*)/', $this->input, $matches)) {
            $this->consume($matches[0]);
            $token         = $this->token('comment', isset($matches[2]) ? $matches[2] : '');
            $token->buffer = '-' !== $matches[1];

            return $token;
        }
    }
protected function scanComment()
    {
        if (preg_match('/^ *\/\/(-)?([^\n]*)/', $this->input, $matches)) {
            $this->consume($matches[0]);
            $token         = $this->token('comment', isset($matches[2]) ? $matches[2] : '');
            $token->buffer = '-' !== $matches[1];

            return $token;
        }
    }
protected function scanComment ( ) { if ( preg_match ( '/^ *\/\/(-)?([^\n]*)/' , $ this -> input , $ matches ) ) { $ this -> consume ( $ matches [ 0 ] ) ; $ token = $ this -> token ( 'comment' , isset ( $ matches [ 2 ] ) ? $ matches [ 2 ] : '' ) ; $ token -> buffer = '-' !== $ matches [ 1 ] ; return $ token ; } }
Scan comment from input & return it if found.

@return  Object|null
Scan comment from input & return it if found .