diff --git a/Cargo.lock b/Cargo.lock index 6ba476c9d8..e63ba6d685 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2466,7 +2466,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.2.0" -source = "git+https://github.com/nushell/reedline?branch=main#4da6a82ae6851bd5e4f072381f9fc57ee8813fd2" +source = "git+https://github.com/nushell/reedline?branch=main#e512512dd4af9f3aad19c0f045f03b0b1680eb99" dependencies = [ "chrono", "crossterm", diff --git a/crates/nu-parser/src/lex.rs b/crates/nu-parser/src/lex.rs index 75dc811d8f..ef2ddde4a1 100644 --- a/crates/nu-parser/src/lex.rs +++ b/crates/nu-parser/src/lex.rs @@ -112,7 +112,7 @@ pub fn lex_item( break; } in_comment = true; - } else if c == b'\n' { + } else if c == b'\n' || c == b'\r' { in_comment = false; if is_item_terminator(&block_level, c, additional_whitespace, special_tokens) { break;