mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 21:35:47 +01:00
Re-add CSS comment.
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
it under any or all of those licenseses.
|
it under any or all of those licenseses.
|
||||||
}}} ***** END LICENSE BLOCK *****/
|
}}} ***** END LICENSE BLOCK *****/
|
||||||
|
|
||||||
|
// <css>
|
||||||
Highlights.prototype.CSS = <![CDATA[
|
Highlights.prototype.CSS = <![CDATA[
|
||||||
Boolean color: red;
|
Boolean color: red;
|
||||||
Function color: navy;
|
Function color: navy;
|
||||||
@@ -175,8 +176,8 @@ function Highlights(name, store, serial)
|
|||||||
this.reload = function ()
|
this.reload = function ()
|
||||||
{
|
{
|
||||||
this.CSS.replace(/\{((?:.|\n)*?)\}/g, function (_, _1) _1.replace(/\n\s*/g, " "))
|
this.CSS.replace(/\{((?:.|\n)*?)\}/g, function (_, _1) _1.replace(/\n\s*/g, " "))
|
||||||
.split("\n").filter(function (s) /\S/.test(s))
|
.split("\n").filter(function (s) /\S/.test(s))
|
||||||
.forEach(function (style)
|
.forEach(function (style)
|
||||||
{
|
{
|
||||||
style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+)?)?(?:,([^,\s]+))?\s*(.*)$/), 1));
|
style = Highlight.apply(Highlight, Array.slice(style.match(/^\s*([^,\s]+)(?:,([^,\s]+)?)?(?:,([^,\s]+))?\s*(.*)$/), 1));
|
||||||
if (/^[>+ ]/.test(style.selector))
|
if (/^[>+ ]/.test(style.selector))
|
||||||
|
|||||||
Reference in New Issue
Block a user