1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-21 03:11:30 +02:00

Fix broken highlight groups.

This commit is contained in:
Kris Maglione
2009-10-31 13:20:01 -04:00
parent 31df6cc747
commit 28a512854f
+2 -2
View File
@@ -9,7 +9,7 @@
* @constant
* @property {string} The default highlighting rules. They have the
* form:
* rule ::= selector space css
* rule ::= selector space space+ css
* selector ::= group
* | group "," css-selector
* | group "," css-selector "," scope
@@ -303,7 +303,7 @@ function Highlights(name, store)
*/
this.loadCSS = function (css)
{
css.replace(/^(\s*\S*\s+)\{((?:.|\n)*?)\}\s*$/gm, function (_, _1, _2) _1 + _2.replace(/\n\s*/g, " "))
css.replace(/^(\s*\S*\s+)\{((?:.|\n)*?)\}\s*$/gm, function (_, _1, _2) _1 + " " + _2.replace(/\n\s*/g, " "))
.split("\n").filter(function (s) /\S/.test(s))
.forEach(function (style)
{