repl: add auto-indentation for multiline input#64607
Open
hemanth wants to merge 1 commit into
Open
Conversation
avivkeller
reviewed
Jul 19, 2026
hemanth
force-pushed
the
repl/auto-indent
branch
from
July 19, 2026 23:00
1c7938f to
98b285b
Compare
Contributor
Author
PTAL @avivkeller |
avivkeller
reviewed
Jul 19, 2026
avivkeller
reviewed
Jul 19, 2026
hemanth
force-pushed
the
repl/auto-indent
branch
from
July 19, 2026 23:10
98b285b to
7804264
Compare
Contributor
Author
|
Good call — dropped the Acorn re-parse entirely. PTAL @avivkeller |
hemanth
force-pushed
the
repl/auto-indent
branch
from
July 19, 2026 23:13
7804264 to
63e25ed
Compare
Automatically insert 2-space indentation on continuation lines based on brace/bracket/paren depth when entering multiline input. Refs: nodejs#48164 Signed-off-by: hemanth <hemanth.hm@gmail.com>
hemanth
force-pushed
the
repl/auto-indent
branch
from
July 19, 2026 23:32
63e25ed to
aa16617
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64607 +/- ##
==========================================
- Coverage 90.14% 90.12% -0.02%
==========================================
Files 741 741
Lines 242080 242140 +60
Branches 45563 45575 +12
==========================================
+ Hits 218213 218239 +26
- Misses 15375 15425 +50
+ Partials 8492 8476 -16
🚀 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.
Split from #64443 per review feedback to use idiomatic single-feature PRs.
Automatically inserts 2-space indentation on continuation lines based on the current nesting depth of braces, brackets, and parentheses.
Refs: #48164