We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fac39c7 commit 4f399beCopy full SHA for 4f399be
Lib/json/tool.py
@@ -15,6 +15,7 @@
15
# the various parts, most notably strings and numbers,
16
# where the regex given by the spec is much more complex.
17
_color_pattern = re.compile(r'''
18
+ (?P<key>"(\\.|[^"\\])*")(?=:) |
19
(?P<string>"(\\.|[^"\\])*") |
20
(?P<number>NaN|-?Infinity|[0-9\-+.Ee]+) |
21
(?P<boolean>true|false) |
@@ -23,6 +24,7 @@
23
24
25
26
_colors = {
27
+ 'key': ANSIColors.INTENSE_BLUE,
28
'string': ANSIColors.GREEN,
29
'number': ANSIColors.YELLOW,
30
'boolean': ANSIColors.CYAN,
0 commit comments