diff --git a/common/modules/highlight.jsm b/common/modules/highlight.jsm index d5d7f711..d93f4e5b 100644 --- a/common/modules/highlight.jsm +++ b/common/modules/highlight.jsm @@ -152,7 +152,7 @@ const Highlights = Module("Highlight", { return class_.replace(/(^|\s)([A-Z]\w+)\b/g, function (m, n1, hl) n1 + (self.highlight[hl] && self.highlight[hl].class != class_ - ? self.highlight[hl] : "[dactyl|highlight~=" + hl + "]")); + ? self.highlight[hl].selector : "[dactyl|highlight~=" + hl + "]")); }, /**