about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-07-09 14:37:48 -0700
committerGraydon Hoare <graydon@mozilla.com>2012-07-09 14:37:48 -0700
commitc26d02557e77ef02bf897563a38867ff0da3fc2a (patch)
tree4f37e678d3b138386b7b9549081f266a12259d42 /src/libsyntax/parse
parent9afc8be04b7fb2927fa33d41f8618ca7fb9285bb (diff)
downloadrust-c26d02557e77ef02bf897563a38867ff0da3fc2a.tar.gz
rust-c26d02557e77ef02bf897563a38867ff0da3fc2a.zip
Switch 'cont' to 'again' everywhere. Close #2229.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/comments.rs2
-rw-r--r--src/libsyntax/parse/lexer.rs2
-rw-r--r--src/libsyntax/parse/parser.rs2
3 files changed, 3 insertions, 3 deletions
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 {