You are here

function lessc::throwParseError in Less CSS Preprocessor 6.3

1 call to lessc::throwParseError()
lessc::parse in lessphp/lessc.inc.php

File

lessphp/lessc.inc.php, line 1241

Class

lessc

Code

function throwParseError($msg = 'parse error') {
  $line = $this->line + substr_count(substr($this->buffer, 0, $this->count), "\n");
  if ($this
    ->peek("(.*?)(\n|\$)", $m)) {
    throw new exception($msg . ': failed at `' . $m[1] . '` line: ' . $line);
  }
}