public function throwParseError($msg = 'parse error')
    {
        list($line, /* $column */) = $this->getSourcePosition($this->count);

        $loc = empty($this->sourceName) ? "line: $line" : "$this->sourceName on line $line";

        if ($this->peek("(.*?)(\n|$)", $m, $this->count)) {
            throw new ParserException("$msg: failed at `$m[1]` $loc");
        }

        throw new ParserException("$msg: $loc");
    }
public function throwParseError($msg = 'parse error')
    {
        list($line, /* $column */) = $this->getSourcePosition($this->count);

        $loc = empty($this->sourceName) ? "line: $line" : "$this->sourceName on line $line";

        if ($this->peek("(.*?)(\n|$)", $m, $this->count)) {
            throw new ParserException("$msg: failed at `$m[1]` $loc");
        }

        throw new ParserException("$msg: $loc");
    }
public function throwParseError ( $ msg = 'parse error' ) { list ( $ line , /* $column */ ) = $ this -> getSourcePosition ( $ this -> count ) ; $ loc = empty ( $ this -> sourceName ) ? "line: $line" : "$this->sourceName on line $line" ; if ( $ this -> peek ( "(.*?)(\n|$)" , $ m , $ this -> count ) ) { throw new ParserException ( "$msg: failed at `$m[1]` $loc" ) ; } throw new ParserException ( "$msg: $loc" ) ; }
Throw parser error

@api

@param string $msg

@throws \Leafo\ScssPhp\Exception\ParserException
Throw parser error