We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55bd802 commit 20c034eCopy full SHA for 20c034e
lib/rouge/lexers/rust.rb
@@ -253,7 +253,7 @@ def macro_closed?
253
state :string do
254
rule %r/"/, Str, :pop!
255
rule escapes, Str::Escape
256
- rule %r/[^"\\]+/m, Str
+ rule %r/([^"\\]+|\\\n[ \t\r\n]*)/m, Str
257
end
258
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