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

Move an inline style from util.objectToString to a new Key highlight group.

This commit is contained in:
Doug Kearns
2009-10-16 00:28:27 +11:00
parent 9c2f01bfea
commit 9b0e6ac28b
2 changed files with 3 additions and 2 deletions

View File

@@ -514,8 +514,7 @@ const util = { //{{{
}
value = template.highlight(value, true, 150);
// FIXME: Inline style.
let key = <span style="font-weight: bold;">{i}</span>;
let key = <span highlight="Key">{i}</span>;
if (!isNaN(i))
i = parseInt(i);
else if (/^[A-Z_]+$/.test(i))