You are here

private function lessc::argumentDef in Less CSS Preprocessor 6

Same name and namespace in other branches
  1. 6.3 lessphp/lessc.inc.php \lessc::argumentDef()
1 call to lessc::argumentDef()
lessc::readChunk in ./lessc.inc.php

File

./lessc.inc.php, line 391

Class

lessc

Code

private function argumentDef(&$args, $delim = ';') {
  $this
    ->literal('(');
  $values = array();
  while (true) {
    try {
      $arg = array();
      $this
        ->variable($arg[]);

      // look for a default value
      try {
        $this
          ->literal(':')
          ->propertyValue($value);
        $arg[] = $value;
      } catch (exception $ax) {
      }
      $values[] = $arg;
      $this
        ->literal($delim);
    } catch (exception $ex) {
      break;
    }
  }
  $this
    ->literal(')');
  $args = $values;
  return $this;
}