private function lessc::literal in Less CSS Preprocessor 6
Same name and namespace in other branches
- 6.3 lessphp/lessc.inc.php \lessc::literal()
9 calls to lessc::literal()
File
- ./lessc.inc.php, line 455 
Class
Code
private function literal($what) {
  // if $what is one char we can speed things up
  if (strlen($what) == 1 && $this->count < strlen($this->buffer) && $what != $this->buffer[$this->count] || !$this
    ->match($this
    ->preg_quote($what), $m)) {
    throw new Exception('parse error: failed to prase literal ' . $what);
  }
  return $this;
}