mirror of
https://github.com/python/cpython.git
synced 2025-10-20 16:33:53 +00:00
gh-131507: Add support for syntax highlighting in PyREPL (GH-133247)
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
bfcbb28223
commit
fac41f56d4
21 changed files with 654 additions and 99 deletions
|
@ -33,10 +33,12 @@ def unix_console(events, **kwargs):
|
|||
|
||||
handle_events_unix_console = partial(
|
||||
handle_all_events,
|
||||
prepare_console=partial(unix_console),
|
||||
prepare_reader=reader_no_colors,
|
||||
prepare_console=unix_console,
|
||||
)
|
||||
handle_events_narrow_unix_console = partial(
|
||||
handle_all_events,
|
||||
prepare_reader=reader_no_colors,
|
||||
prepare_console=partial(unix_console, width=5),
|
||||
)
|
||||
handle_events_short_unix_console = partial(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue