You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repl: add syntax highlighting, auto-indentation, and signature hints
Add experimental REPL enhancements behind the
--experimental-repl-enhancements flag:
1. Inline syntax highlighting using the Acorn tokenizer
to colorize keywords (magenta), strings (green),
numbers (yellow), booleans/null (yellow), regular
expressions (red), and comments (gray).
2. Auto-indentation for multiline input based on
brace/bracket/paren depth, using 2-space indentation.
3. Function signature hints that display parameter lists
as dimmed text below the input when the user types a
function call.
All features are off by default and require the CLI flag
to enable. Highlighting is applied at display time only
so cursor positioning and evaluation are unaffected.
Refs: #48164
Signed-off-by: hemanth <hemanth.hm@gmail.com>
0 commit comments