summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2008-12-16 14:13:18 -0500
committerKris Maglione <maglione.k@gmail.com>2008-12-16 14:13:18 -0500
commit9089306c5e29d571ec5f15049192db870d8dddb7 (patch)
treefa0d4e78cae973d369ac65d8f9154c0f086b46e7 /common/content
parentf617e3c174dac66e7901c4690ca2196aad3baf20 (diff)
downloadpentadactyl-9089306c5e29d571ec5f15049192db870d8dddb7.tar.gz
Re-add CSS comment.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/style.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/content/style.js b/common/content/style.js
index 2f27747d..25cba58d 100644
--- a/common/content/style.js
+++ b/common/content/style.js
@@ -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))