We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55bd802 commit 1fc0afaCopy full SHA for 1fc0afa
lib/rouge/lexers/rust.rb
@@ -253,6 +253,7 @@ def macro_closed?
253
state :string do
254
rule %r/"/, Str, :pop!
255
rule escapes, Str::Escape
256
+ rule %r/\\\n[ \t\r\n]*/, Str::Escape
257
rule %r/[^"\\]+/m, Str
258
end
259
spec/visual/samples/rust
@@ -38,6 +38,9 @@ println!(r###"r##"r#""#"##"###);
38
println!(r#"
39
"New line in a raw string"
40
"#);
41
+println!("String continuation\
42
+
43
+ escape");
44
45
trait Iterable<A> {
46
fn iterate(&self, blk: impl FnMut(&A) -> bool);
0 commit comments