Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.293 kb
//! Escapes text sequences
export mk_pass;
fn mk_pass() -> Pass {
text_pass::mk_pass(~"escape", escape)
fn escape(s: ~str) -> ~str {
str::replace(s, ~"\\", ~"\\\\")
fn should_escape_backslashes() {
let s = ~"\\n";
let r = escape(s);
assert r == ~"\\\\n";
Jump to Line
Something went wrong with that request. Please try again.