1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 08:15:48 +01:00

Re-add CSS comment.

This commit is contained in:
Kris Maglione
2008-12-16 14:13:18 -05:00
parent f617e3c174
commit 9089306c5e

View File

@@ -6,6 +6,7 @@
it under any or all of those licenseses.
}}} ***** END LICENSE BLOCK *****/
// <css>
Highlights.prototype.CSS = <![CDATA[
Boolean color: red;
Function color: navy;
@@ -175,8 +176,8 @@ function Highlights(name, store, serial)
this.reload = function ()
{
this.CSS.replace(/\{((?:.|\n)*?)\}/g, function (_, _1) _1.replace(/\n\s*/g, " "))
.split("\n").filter(function (s) /\S/.test(s))
.forEach(function (style)
.split("\n").filter(function (s) /\S/.test(s))
.forEach(function (style)
{
style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+)?)?(?:,([^,\s]+))?\s*(.*)$/), 1));
if (/^[>+ ]/.test(style.selector))