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

normalize the descriptions fo ]] and [[

This commit is contained in:
Doug Kearns
2008-10-06 07:37:27 +00:00
parent 5ec80e0468
commit e38798f66c
3 changed files with 13 additions and 10 deletions

View File

@@ -491,12 +491,12 @@ liberator.Buffer = function () //{{{
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["]]"],
"Follow a link labeled to 'next' or '>' if it exists",
"Follow the link labeled 'next' or '>' if it exists",
function (count) { liberator.buffer.followDocumentRelationship("next"); },
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["[["],
"Follow a link labeled to 'prev', 'previous' or '<' if it exists",
"Follow the link labeled 'prev', 'previous' or '<' if it exists",
function (count) { liberator.buffer.followDocumentRelationship("previous"); },
{ flags: liberator.Mappings.flags.COUNT });
@@ -1073,7 +1073,9 @@ liberator.Buffer = function () //{{{
highlight: function (key, style)
{
liberator.log("key: " + key + ", style: " + style);
let [, class, selectors] = key.match(/^([a-zA-Z_-]+)(.*)/);
liberator.log("class: " + class + ", selectors: " + selectors);
if (highlightClasses.indexOf(class) == -1)
{
@@ -1083,6 +1085,7 @@ liberator.Buffer = function () //{{{
let getCSS = function (style) ".hl-" + class + selectors + " { " + style.replace(/;|;?$/g, "!important;") + " }";
let css = getCSS(style);
liberator.log("css: " + css);
if (highlight.get(key))
styles.removeSheet(highlightDocs, getCSS(highlight.get(key)), true);