mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 06:17:58 +01:00
Move an inline style from util.objectToString to a new Key highlight group.
This commit is contained in:
@@ -25,6 +25,8 @@ Highlights.prototype.CSS = <![CDATA[
|
|||||||
Object color: maroon;
|
Object color: maroon;
|
||||||
String color: green;
|
String color: green;
|
||||||
|
|
||||||
|
Key font-weight: bold;
|
||||||
|
|
||||||
Enabled color: blue;
|
Enabled color: blue;
|
||||||
Disabled color: red;
|
Disabled color: red;
|
||||||
|
|
||||||
|
|||||||
@@ -514,8 +514,7 @@ const util = { //{{{
|
|||||||
}
|
}
|
||||||
|
|
||||||
value = template.highlight(value, true, 150);
|
value = template.highlight(value, true, 150);
|
||||||
// FIXME: Inline style.
|
let key = <span highlight="Key">{i}</span>;
|
||||||
let key = <span style="font-weight: bold;">{i}</span>;
|
|
||||||
if (!isNaN(i))
|
if (!isNaN(i))
|
||||||
i = parseInt(i);
|
i = parseInt(i);
|
||||||
else if (/^[A-Z_]+$/.test(i))
|
else if (/^[A-Z_]+$/.test(i))
|
||||||
|
|||||||
Reference in New Issue
Block a user