Skip to content

Commit 731b370

Browse files
committed
---
yaml --- r: 829 b: refs/heads/master c: 3aaae2a h: refs/heads/master i: 827: 81f2d99 v: v3
1 parent b9947ca commit 731b370

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-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: eec259f625311932c47829bd7c978f9670ef6fea
2+
refs/heads/master: 3aaae2a881ed0e8c74a4a5b36e4fa4624d48eda0

trunk/src/comp/front/parser.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,19 @@ io fn parse_bottom_expr(parser p) -> @ast.expr {
268268
auto n = parse_name(p, i);
269269
hi = n.span;
270270
ex = ast.expr_name(n, none[ast.def], none[@ast.ty]);
271+
alt (p.peek()) {
272+
case (token.LPAREN) {
273+
// Call expr.
274+
auto pf = parse_expr;
275+
auto es = parse_seq[@ast.expr](token.LPAREN,
276+
token.RPAREN,
277+
some(token.COMMA),
278+
pf, p);
279+
ex = ast.expr_call(@spanned(lo, hi, ex),
280+
es.node, none[@ast.ty]);
281+
hi = es.span;
282+
}
283+
}
271284
}
272285

273286
case (token.LPAREN) {

0 commit comments

Comments
 (0)