/** * A catch-all word, such as: `black border-collapse`. * * @return ColorNode|KeywordNode|null */ protected function parseEntitiesKeyword() { $k = $this->input->char('%'); if (!$k) { $k = $this->input->re('/\\G[_A-Za-z-][_A-Za-z0-9-]*/'); } if ($k) { // detected named color and "transparent" keyword if ($color = Color::fromKeyword($k)) { return new ColorNode($color); } else { return new KeywordNode($k); } } }