diff --git a/cli/src/test.rs b/cli/src/test.rs index 9fdaec2d..1e73c640 100644 --- a/cli/src/test.rs +++ b/cli/src/test.rs @@ -898,6 +898,7 @@ fn parse_test_content(name: String, content: &str, file_path: Option) - // Remove trailing newline from the input. input.pop(); + #[cfg(target_os = "windows")] if input.last() == Some(&b'\r') { input.pop(); } diff --git a/test/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/corpus.txt b/test/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/corpus.txt index 749264c6..c69d0484 100644 --- a/test/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/corpus.txt +++ b/test/fixtures/test_grammars/anonymous_tokens_with_escaped_chars/corpus.txt @@ -19,7 +19,7 @@ anonymous tokens defined with LF escape sequence anonymous tokens defined with CR escape sequence ================================================= - + --- (first_rule)