Skip to content

Commit 0acff5e

Browse files
committed
change json.tool._group_to_theme_color formatting
1 parent bc25bb2 commit 0acff5e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Lib/json/tool.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
(?P<null>null)
2323
''', re.VERBOSE)
2424

25-
_group_to_theme_color = frozendict(key="definition",string="string",number="number",boolean="keyword",null="keyword")
25+
_group_to_theme_color = frozendict({
26+
"key": "definition",
27+
"string": "string",
28+
"number": "number",
29+
"boolean": "keyword",
30+
"null": "keyword",
31+
})
2632

2733

2834
def _colorize_json(json_str, theme):

0 commit comments

Comments
 (0)