Skip to content

Commit 5f81d6d

Browse files
committed
---
yaml --- r: 2563 b: refs/heads/master c: ae030c5 h: refs/heads/master i: 2561: 4a01705 2559: 5deb7d9 v: v3
1 parent 0ce84ba commit 5f81d6d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9ac29480cec8e9373d5ac3a1454c3a54a239f373
2+
refs/heads/master: ae030c5bf277e90b9aeea7e301fd3001f3a66b8d

trunk/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());

trunk/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)