1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 06:42:29 +01:00

Moderately different (and probably jarring) :*usage definition information.

This commit is contained in:
Kris Maglione
2010-12-03 20:35:31 -05:00
parent a7aca30ff1
commit daa0199774
3 changed files with 15 additions and 6 deletions

View File

@@ -148,7 +148,7 @@ const Highlights = Module("Highlight", {
*/
selector: function (class_)
let (self = this)
class_.replace(/(^|\s)([A-Z]\w+)\b/g,
class_.replace(/(^|[>\s])([A-Z]\w+)\b/g,
function (m, n1, hl) n1 +
(self.highlight[hl] && self.highlight[hl].class != class_
? self.highlight[hl].selector : "[dactyl|highlight~=" + hl + "]")),