1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 07:15:46 +01:00

Death to E4X and stuff.

This commit is contained in:
Kris Maglione
2012-11-29 18:00:50 -08:00
parent 2e17932cdb
commit 810eda169a
15 changed files with 265 additions and 45 deletions

View File

@@ -241,6 +241,7 @@ var Highlights = Module("Highlight", {
\s* (?P<css> .*)
$
*/), "x"),
// </css>
/**
* Bulk loads new CSS rules, in the format of,
@@ -350,7 +351,7 @@ var Highlights = Module("Highlight", {
"text-align: center"],
([h.class,
["span", { style: "text-align: center; line-height: 1em;" + h.value + style }, "XXX"],
template_.map(h.extends, function (s) template.highlight(s), ","),
template_.map(h.extends, function (s) template_.highlight(s), ","),
template_.highlightRegexp(h.value, /\b[-\w]+(?=:)|\/\*.*?\*\//g,
function (match) ["span", { highlight: match[0] == "/" ? "Comment" : "Key" }, match])
]