diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-07-09 14:37:48 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-09 14:37:48 -0700 |
| commit | c26d02557e77ef02bf897563a38867ff0da3fc2a (patch) | |
| tree | 4f37e678d3b138386b7b9549081f266a12259d42 /src/libsyntax | |
| parent | 9afc8be04b7fb2927fa33d41f8618ca7fb9285bb (diff) | |
| download | rust-c26d02557e77ef02bf897563a38867ff0da3fc2a.tar.gz rust-c26d02557e77ef02bf897563a38867ff0da3fc2a.zip | |
Switch 'cont' to 'again' everywhere. Close #2229.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/simplext.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/ext/simplext.rs b/src/libsyntax/ext/simplext.rs index 2f811891711..c9355f05e38 100644 --- a/src/libsyntax/ext/simplext.rs +++ b/src/libsyntax/ext/simplext.rs @@ -767,7 +767,7 @@ fn add_new_extension(cx: ext_ctxt, sp: span, arg: ast::mac_arg, for clauses.each |c| { alt use_selectors_to_bind(c.params, arg) { some(bindings) { ret transcribe(cx, bindings, c.body); } - none { cont; } + none { again; } } } cx.span_fatal(sp, "no clauses match macro invocation"); diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index bd164402c1d..d351d492fb0 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -56,7 +56,7 @@ fn strip_doc_comment_decoration(comment: str) -> str { let mut i = max.get_default(uint::max_value); for lines.each |line| { if line.trim().is_empty() { - cont; + again; } for line.each_chari |j, c| { if j >= i { diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 467f1896979..600aa9f4c42 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -310,7 +310,7 @@ fn scan_digits(rdr: string_reader, radix: uint) -> str { let mut rslt = ""; loop { let c = rdr.curr; - if c == '_' { bump(rdr); cont; } + if c == '_' { bump(rdr); again; } alt char::to_digit(c, radix) { some(d) { str::push_char(rslt, c); diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index ba31a610f27..6a166591887 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1140,7 +1140,7 @@ class parser { } _ { self.unexpected(); } } - cont; + again; } if self.expr_is_complete(e) { break; } alt copy self.token { |
