scrivo / highlight.php

A port of highlight.js by Ivan Sagalaev to PHP
BSD 3-Clause "New" or "Revised" License
695 stars 45 forks source link

CSS does not highlight nested `var()` #106

Open miragecraft opened 1 year ago

miragecraft commented 1 year ago

With nested var() assignment, meaning using custom property as fallback for other custom properties, the nested var is not highlighted as it should.

Example:

* {
 background: var(--red, var(--blue, green));
}

Only the first var is highlighted.