mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 02:55:46 +01:00
Add experimental jQuery-ish DOM object.
This commit is contained in:
@@ -731,8 +731,10 @@ var Styles = Module("Styles", {
|
||||
template.highlightCSS = function highlightCSS(css) {
|
||||
XML.prettyPrinting = XML.ignoreWhitespace = false;
|
||||
|
||||
return this.highlightRegexp(css, patterns.property, function (match) <>{
|
||||
match.preSpace}{template.filter(match.name)}: {
|
||||
return this.highlightRegexp(css, patterns.property, function (match) {
|
||||
if (!match.length)
|
||||
return <></>;
|
||||
return <>{match.preSpace}{template.filter(match.name)}: {
|
||||
|
||||
template.highlightRegexp(match.value, patterns.token, function (match) {
|
||||
if (match.function)
|
||||
@@ -749,7 +751,7 @@ var Styles = Module("Styles", {
|
||||
})
|
||||
|
||||
}{ match.postSpace }</>
|
||||
)
|
||||
})
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user