]> git.lizzy.rs Git - rust.git/commit
lex raw string literals, like r#"blah"#
authorBenjamin Herr <ben@0x539.de>
Wed, 2 Oct 2013 00:43:19 +0000 (02:43 +0200)
committerBenjamin Herr <ben@0x539.de>
Mon, 7 Oct 2013 23:44:05 +0000 (01:44 +0200)
commit904c6c43c4c59eceeebcd473e383ff86801a815c
treeeae3b6448240fe736779c93e87497b10da14f26a
parente007f947479fc65cbff0e365ee26d45a9aa908d4
lex raw string literals, like r#"blah"#

Raw string literals are lexed into regular string literals. This is okay
for them to "work" and be usable/testable, but the pretty-printer does
not know about them yet and will just emit regular string literals.
src/libsyntax/parse/lexer.rs
src/test/compile-fail/raw-str-delim.rs [new file with mode: 0644]
src/test/compile-fail/raw-str-unbalanced.rs [new file with mode: 0644]
src/test/compile-fail/raw-str-unterminated.rs [new file with mode: 0644]
src/test/run-pass/raw-str.rs [new file with mode: 0644]