repl: add basic syntax highlighting#64591
Open
avivkeller wants to merge 2 commits into
Open
Conversation
Signed-off-by: avivkeller <me@aviv.sh>
avivkeller
force-pushed
the
repl-syntax-highlighting
branch
from
July 19, 2026 02:44
840d437 to
1eb1502
Compare
Member
Author
|
cc @nodejs/repl |
Contributor
|
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.14%
========================================
Files 741 742 +1
Lines 241976 242078 +102
Branches 45543 45578 +35
========================================
+ Hits 218116 218232 +116
+ Misses 15379 15370 -9
+ Partials 8481 8476 -5
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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