Skip to content

Commit 8f0e9ff

Browse files
committed
Long lines
1 parent a08919a commit 8f0e9ff

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,7 +2285,8 @@ impl parser {
22852285
let stmt = self.parse_stmt(initial_attrs);
22862286
initial_attrs = ~[];
22872287
match stmt.node {
2288-
stmt_expr(e, stmt_id) => { // Expression without semicolon:
2288+
stmt_expr(e, stmt_id) => {
2289+
// Expression without semicolon
22892290
match self.token {
22902291
token::SEMI => {
22912292
self.bump();
@@ -2297,9 +2298,11 @@ impl parser {
22972298
}
22982299
t => {
22992300
if classify::stmt_ends_with_semi(*stmt) {
2300-
self.fatal(~"expected `;` or `}` after \
2301-
expression but found `"
2302-
+ token_to_str(self.reader, t) + ~"`");
2301+
self.fatal(
2302+
~"expected `;` or `}` after \
2303+
expression but found `"
2304+
+ token_to_str(self.reader, t)
2305+
+ ~"`");
23032306
}
23042307
stmts.push(stmt);
23052308
}

0 commit comments

Comments
 (0)