1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 17:42:27 +01:00

fix redeclaration of variable class in buffer.highlight

This commit is contained in:
Doug Kearns
2008-10-07 15:22:35 +00:00
parent 46a83a4c72
commit d0a7df74bc

View File

@@ -1096,7 +1096,7 @@ liberator.Buffer = function () //{{{
{ {
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/); let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
let class = highlightClasses.filter(function (i) i == class || i[0] == class)[0]; class = highlightClasses.filter(function (i) i == class || i[0] == class)[0];
if (!class) if (!class)
{ {
liberator.echoerr("Unknown highlight keyword"); liberator.echoerr("Unknown highlight keyword");