repl: add basic syntax highlighting - #64591
Conversation
Signed-off-by: avivkeller <me@aviv.sh>
840d437 to
1eb1502
Compare
|
cc @nodejs/repl |
|
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64591 +/- ##
==========================================
+ Coverage 90.13% 90.15% +0.01%
==========================================
Files 741 742 +1
Lines 241976 242167 +191
Branches 45543 45596 +53
==========================================
+ Hits 218116 218334 +218
+ Misses 15379 15345 -34
- Partials 8481 8488 +7
🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Bump @nodejs/repl, one more approval :-) |
Signed-off-by: avivkeller <me@aviv.sh> PR-URL: #64591 Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in 4a5eb1c |
|
This doesn't land cleanly on |
Adds basic syntax highlighting similar to our
util.inspect. Highlighting is done usingutil.inspect.styles, so the coloring is in-tune with inspect, see below:Notable Change: The REPL now performs syntax highlighting when
useColors: true