You are here

private function lessc::end in Less CSS Preprocessor 6

Same name and namespace in other branches
  1. 6.3 lessphp/lessc.inc.php \lessc::end()

File

./lessc.inc.php, line 359

Class

lessc

Code

private function end() {
  try {
    $this
      ->literal(';');
  } catch (exception $ex) {

    // there is an end of block next, then no problem
    if (strlen($this->buffer) <= $this->count || $this->buffer[$this->count] != '}') {
      throw new exception('parse error: failed to find end');
    }
  }
  return $this;
}