protected function unit(&$unit) { if ($this->match('([0-9]*(\\.)?[0-9]+)([%a-zA-Z]+)?', $m)) { $unit = new Node\Number($m[1], empty($m[3]) ? '' : $m[3]); return true; } return false; }