@@ -456,7 +456,7 @@ function matched_token(code) {
456
456
} ) ;
457
457
}
458
458
459
- // hightlight the open parentheses based on token metadata
459
+ // highlight the open parentheses based on token metadata
460
460
function mark_paren ( code , token ) {
461
461
const re = / ( \x1b \[ [ 0 - 9 ; ] * m ) / ;
462
462
let str_len = 0 , found ;
@@ -482,7 +482,7 @@ function mark_paren(code, token) {
482
482
483
483
// function accept ANSI (syntax highlighted code) and
484
484
// return ANSI escapes to overwrite the code
485
- // this is needed to make sure that syntax hightlighting
485
+ // this is needed to make sure that syntax highlighting
486
486
// is always correct
487
487
function ansi_rewrite_above ( ansi_code ) {
488
488
const lines = ansi_code . split ( '\n' ) ;
@@ -516,7 +516,7 @@ function run_repl(err, rl) {
516
516
multiline = true ;
517
517
// we don't do indentation for paste bracket mode
518
518
// indentation will also not work for old Node.js
519
- // becase it's too problematice to make it right
519
+ // because it's too problematice to make it right
520
520
if ( is_brackets_mode ( ) || ! supports_paste_brackets ) {
521
521
rl . prompt ( ) ;
522
522
if ( is_emacs ) {
@@ -554,7 +554,7 @@ function run_repl(err, rl) {
554
554
const current_line = prefix + rl . line ;
555
555
let code = scheme ( string ) ;
556
556
if ( ! is_brackets_mode ( ) ) {
557
- // we remove traling newline from cmd
557
+ // we remove trailing newline from cmd
558
558
let code_above = cmd && scheme ( cmd . substring ( 0 , cmd . length - 1 ) ) ;
559
559
if ( char_before_cursor ( ) === ')' ) {
560
560
const substring = rl . line . substring ( 0 , rl . cursor ) ;
@@ -593,7 +593,7 @@ function run_repl(err, rl) {
593
593
setTimeout ( function ( ) {
594
594
// we force triggering rl._writeToOutput function
595
595
// so we have the change to syntax highlight the command line
596
- // this nees to happen on next tick so the string have time
596
+ // this needs to happen on next tick so the string have time
597
597
// to updated with a given key
598
598
rl . _refreshLine ( ) ;
599
599
} , 0 ) ;
0 commit comments