libsyntax: Accept "1..3" as the preferred form of "1 to 3" in patterns

This commit is contained in:
Patrick Walton
2012-08-13 17:37:08 -07:00
parent 36d8682269
commit 55ee06b8ce
4 changed files with 11 additions and 10 deletions

View File

@@ -1512,7 +1512,7 @@ fn print_pat(s: ps, &&pat: @ast::pat) {
ast::pat_range(begin, end) => {
print_expr(s, begin);
space(s.s);
word_space(s, ~"to");
word(s.s, ~"..");
print_expr(s, end);
}
}