From e9525627e68a153f66447367978b7bf3a9b1ff57 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Wed, 15 Dec 2021 07:17:02 +1100 Subject: [PATCH] Fix a couple crlf issues (#496) --- Cargo.lock | 2 +- crates/nu-parser/src/lex.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;