Skip to content

Commit

Permalink
clean up #86
Browse files Browse the repository at this point in the history
  • Loading branch information
leafo committed May 17, 2013
1 parent 0b57a52 commit 59f1d19
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scss.inc.php
Expand Up @@ -2738,11 +2738,6 @@ protected function parseChunk() {
{
// check for !default
$defaultVar = $value[0] == "list" && $this->stripDefault($value);
if (!$defaultVar && isset($value[2]) && is_array($value[2])) {
$nestedValue = end($value[2]);
$defaultVar = is_array($nestedValue) && $nestedValue[0] == "list" && $this->stripDefault($value[2][count($value[2]) - 1]);
}

$this->append(array("assign", $name, $value, $defaultVar), $s);
return true;
} else {
Expand Down Expand Up @@ -2824,6 +2819,10 @@ protected function stripDefault(&$value) {
return true;
}

if ($def[0] == "list") {
return $this->stripDefault($value[2][count($value[2]) - 1]);
}

return false;
}

Expand Down

0 comments on commit 59f1d19

Please sign in to comment.