You are here

private function lessc::literal in Less CSS Preprocessor 6

Same name and namespace in other branches
  1. 6.3 lessphp/lessc.inc.php \lessc::literal()
9 calls to lessc::literal()
lessc::accessor in ./lessc.inc.php
lessc::argumentDef in ./lessc.inc.php
lessc::argumentValues in ./lessc.inc.php
lessc::color in ./lessc.inc.php
lessc::end in ./lessc.inc.php

... See full list

File

./lessc.inc.php, line 455

Class

lessc

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;
}