lib/rouge/lexers/rust.rb in rouge-3.3.0 vs lib/rouge/lexers/rust.rb in rouge-3.4.0
- old
+ new
@@ -54,10 +54,10 @@
delim_map = { '[' => ']', '(' => ')', '{' => '}' }
id = /[a-z_]\w*/i
hex = /[0-9a-f]/i
escapes = %r(
- \\ ([nrt'\\] | x#{hex}{2} | u#{hex}{4} | U#{hex}{8})
+ \\ ([nrt'"\\0] | x#{hex}{2} | u#{hex}{4} | U#{hex}{8})
)x
size = /8|16|32|64/
state :start_line do
mixin :whitespace