Add multiline, whitespace-eating strings.

This commit is contained in:
Josh Matthews 2011-06-07 04:53:47 -04:00 committed by Marijn Haverbeke
parent 319156c8d1
commit df9cf0be9b
2 changed files with 18 additions and 0 deletions

View file

@ -632,6 +632,9 @@ fn next_token(&reader rdr) -> token::token {
case ('"') {
str::push_byte(accum_str, '"' as u8);
}
case ('\n') {
consume_whitespace(rdr);
}
case ('x') {
str::push_char(accum_str,