Skip to content

Commit ae030c5

Browse files
committed
Begin vec() -> [] transition.
1 parent 9ac2948 commit ae030c5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/comp/front/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,13 +765,13 @@ fn parse_bottom_expr(parser p) -> @ast::expr {
765765
pf, p);
766766
hi = es.span.hi;
767767
ex = ast::expr_tup(es.node, p.get_ann());
768-
} else if (eat_word(p, "vec")) {
768+
} else if (p.peek() == token::LBRACKET) {
769+
p.bump();
769770
auto pf = parse_expr;
770771

771-
expect(p, token::LPAREN);
772772
auto mut = parse_mutability(p);
773773

774-
auto es = parse_seq_to_end[@ast::expr](token::RPAREN,
774+
auto es = parse_seq_to_end[@ast::expr](token::RBRACKET,
775775
some(token::COMMA),
776776
pf, hi, p);
777777
ex = ast::expr_vec(es, mut, p.get_ann());

src/snapshots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
T
2+
13
S 2011-05-12 b1d3364
24
linux-i386 7671ac0de19d9ea981616b3c58c1d48f1b43820a
35
macos-i386 bc7ee4d146ef6e0236afbd7cc4a9241582fd2952

0 commit comments

Comments
 (0)