mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
@@ -1321,6 +1321,11 @@ fn next(&mut self) -> Option<Self::Item> {
|
||||
}
|
||||
}
|
||||
|
||||
// Workaround for CRLF newline.
|
||||
if line.ends_with('\r') {
|
||||
line.pop();
|
||||
}
|
||||
|
||||
Some((self.kind, line))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
// rustfmt-newline_style: Windows
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
summary_test! {
|
||||
tokenize_recipe_interpolation_eol,
|
||||
"foo: # some comment
|
||||
{{hello}}
|
||||
",
|
||||
"foo: \
|
||||
{{hello}} \
|
||||
{{ahah}}",
|
||||
"N:#$>^{N}$<.",
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// rustfmt-newline_style: Windows
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
summary_test! {
|
||||
tokenize_recipe_interpolation_eol,
|
||||
"foo: # some comment
|
||||
{{hello}}
|
||||
",
|
||||
"foo: \
|
||||
{{hello}} \
|
||||
{{ahah}}",
|
||||
"N:#$>^{N}$<.",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user