private function lessc::argumentDef in Less CSS Preprocessor 6
Same name and namespace in other branches
- 6.3 lessphp/lessc.inc.php \lessc::argumentDef()
1 call to lessc::argumentDef()
File
- ./
lessc.inc.php, line 391
Class
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;
}