You are here

function lessc::argumentValues in Less CSS Preprocessor 6.3

Same name and namespace in other branches
  1. 6 lessc.inc.php \lessc::argumentValues()
1 call to lessc::argumentValues()
lessc::chunk in lessphp/lessc.inc.php

File

lessphp/lessc.inc.php, line 538

Class

lessc

Code

function argumentValues(&$args, $delim = ';') {
  $s = $this
    ->seek();
  if (!$this
    ->literal('(')) {
    return false;
  }
  $values = array();
  while ($this
    ->propertyValue($value)) {
    $values[] = $value;
    if (!$this
      ->literal($delim)) {
      break;
    }
  }
  if (!$this
    ->literal(')')) {
    $this
      ->seek($s);
    return false;
  }
  $args = $values;
  return true;
}