|
|
str | JSON_STR = r"(?<![\\\w])(?P<str>b?\".*?(?<!\\)\")" |
| |
|
dict | JSON_WHITESPACE = {" ", "\n", "\r", "\t"} |
| |
|
str | base_style = "json." |
| |
| list | highlights |
| |
|
list | highlights = [] |
| |
|
str | base_style = "" |
| |
◆ highlight()
| None pip._vendor.rich.highlighter.JSONHighlighter.highlight |
( |
|
self, |
|
|
Text |
text |
|
) |
| |
◆ highlights
| list pip._vendor.rich.highlighter.JSONHighlighter.highlights |
|
static |
Initial value:= [
_combine_regex(
r"(?P<brace>[\{\[\(\)\]\}])",
r"\b(?P<bool_true>true)\b|\b(?P<bool_false>false)\b|\b(?P<null>null)\b",
r"(?P<number>(?<!\w)\-?[0-9]+\.?[0-9]*(e[\-\+]?\d+?)?\b|0x[0-9a-fA-F]*)",
JSON_STR,
),
]
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/rich/highlighter.py