Skip to content

Commit e7d4a02

Browse files
committed
---
yaml --- r: 1380 b: refs/heads/master c: 890d027 h: refs/heads/master v: v3
1 parent 01498c5 commit e7d4a02

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
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: 59bce06a967b3806c3d874b8956857f0f01287e1
2+
refs/heads/master: 890d027b653edd1722b186a5723944e622736313

trunk/src/comp/front/ast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ tag expr_ {
164164
expr_field(@expr, ident, ann);
165165
expr_index(@expr, @expr, ann);
166166
expr_path(path, option.t[def], ann);
167+
expr_ext(vec[@expr], option.t[@expr], ann);
167168
}
168169

169170
type lit = spanned[lit_];

trunk/src/comp/front/parser.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,17 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr {
586586
ex = ast.expr_bind(e, es.node, ast.ann_none);
587587
}
588588

589+
case (token.POUND) {
590+
p.bump();
591+
auto pf = parse_expr;
592+
auto es = parse_seq[@ast.expr](token.LPAREN,
593+
token.RPAREN,
594+
some(token.COMMA),
595+
pf, p);
596+
hi = es.span;
597+
ex = ast.expr_ext(es.node, none[@ast.expr], ast.ann_none);
598+
}
599+
589600
case (_) {
590601
auto lit = parse_lit(p);
591602
hi = lit.span;

0 commit comments

Comments
 (0)