1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-24 10:05:47 +01:00

Preliminary REPL mode.

This commit is contained in:
Kris Maglione
2011-02-17 03:59:28 -05:00
parent caefc819bc
commit bd71135b08
11 changed files with 203 additions and 56 deletions

View File

@@ -213,7 +213,7 @@ var 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 + "]")),