Skip to content

Commit 9af38f5

Browse files
committed
fix grammar mistakes
1 parent 1312ed0 commit 9af38f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/lips.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function matched_token(code) {
456456
});
457457
}
458458

459-
// hightlight the open parentheses based on token metadata
459+
// highlight the open parentheses based on token metadata
460460
function mark_paren(code, token) {
461461
const re = /(\x1b\[[0-9;]*m)/;
462462
let str_len = 0, found;
@@ -482,7 +482,7 @@ function mark_paren(code, token) {
482482

483483
// function accept ANSI (syntax highlighted code) and
484484
// 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
486486
// is always correct
487487
function ansi_rewrite_above(ansi_code) {
488488
const lines = ansi_code.split('\n');
@@ -516,7 +516,7 @@ function run_repl(err, rl) {
516516
multiline = true;
517517
// we don't do indentation for paste bracket mode
518518
// 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
520520
if (is_brackets_mode() || !supports_paste_brackets) {
521521
rl.prompt();
522522
if (is_emacs) {
@@ -554,7 +554,7 @@ function run_repl(err, rl) {
554554
const current_line = prefix + rl.line;
555555
let code = scheme(string);
556556
if (!is_brackets_mode()) {
557-
// we remove traling newline from cmd
557+
// we remove trailing newline from cmd
558558
let code_above = cmd && scheme(cmd.substring(0, cmd.length - 1));
559559
if (char_before_cursor() === ')') {
560560
const substring = rl.line.substring(0, rl.cursor);
@@ -593,7 +593,7 @@ function run_repl(err, rl) {
593593
setTimeout(function() {
594594
// we force triggering rl._writeToOutput function
595595
// 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
597597
// to updated with a given key
598598
rl._refreshLine();
599599
}, 0);

0 commit comments

Comments
 (0)