about summary refs log tree commit diff
path: root/src/comp/syntax/print/pp.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 22:37:22 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 23:17:34 -0800
commit04a2887f8791bb080b4e76a55949a7c1954dbb97 (patch)
treef072b2cc1e0b41270041a3a10a4fc313d3fa1a89 /src/comp/syntax/print/pp.rs
parentca7cfbe3d0251766217e5d4e559903e655e7549b (diff)
downloadrust-04a2887f8791bb080b4e76a55949a7c1954dbb97.tar.gz
rust-04a2887f8791bb080b4e76a55949a7c1954dbb97.zip
Remove '.' after nullary tags in patterns
Does what it says on the tin.

The next commit will remove support for this syntax.
Diffstat (limited to 'src/comp/syntax/print/pp.rs')
-rw-r--r--src/comp/syntax/print/pp.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/comp/syntax/print/pp.rs b/src/comp/syntax/print/pp.rs
index eea0bfbcfec..455e9d916c9 100644
--- a/src/comp/syntax/print/pp.rs
+++ b/src/comp/syntax/print/pp.rs
@@ -68,8 +68,8 @@ fn tok_str(t: token) -> str {
       STRING(s, len) { ret #fmt["STR(%s,%d)", s, len]; }
       BREAK(_) { ret "BREAK"; }
       BEGIN(_) { ret "BEGIN"; }
-      END. { ret "END"; }
-      EOF. { ret "EOF"; }
+      END { ret "END"; }
+      EOF { ret "EOF"; }
     }
 }
 
@@ -236,7 +236,7 @@ impl printer for printer {
     fn pretty_print(t: token) {
         #debug("pp [%u,%u]", self.left, self.right);
         alt t {
-          EOF. {
+          EOF {
             if !self.scan_stack_empty {
                 self.check_stack(0);
                 self.advance_left(self.token[self.left],
@@ -256,7 +256,7 @@ impl printer for printer {
             self.size[self.right] = -self.right_total;
             self.scan_push(self.right);
           }
-          END. {
+          END {
             if self.scan_stack_empty {
                 #debug("pp END/print [%u,%u]", self.left, self.right);
                 self.print(t, 0);
@@ -378,7 +378,7 @@ impl printer for printer {
                     self.check_stack(k - 1);
                 }
               }
-              END. {
+              END {
                 // paper says + not =, but that makes no sense.
                 self.size[self.scan_pop()] = 1;
                 self.check_stack(k + 1);
@@ -428,7 +428,7 @@ impl printer for printer {
                 self.print_stack += [{offset: 0, pbreak: fits}];
             }
           }
-          END. {
+          END {
             #debug("print END -> pop END");
             assert (vec::len(self.print_stack) != 0u);
             vec::pop(self.print_stack);
@@ -436,17 +436,17 @@ impl printer for printer {
           BREAK(b) {
             let top = self.get_top();
             alt top.pbreak {
-              fits. {
+              fits {
                 #debug("print BREAK in fitting block");
                 self.space -= b.blank_space;
                 self.indent(b.blank_space);
               }
-              broken(consistent.) {
+              broken(consistent) {
                 #debug("print BREAK in consistent block");
                 self.print_newline(top.offset + b.offset);
                 self.space = self.margin - (top.offset + b.offset);
               }
-              broken(inconsistent.) {
+              broken(inconsistent) {
                 if L > self.space {
                     #debug("print BREAK w/ newline in inconsistent");
                     self.print_newline(top.offset + b.offset);
@@ -466,7 +466,7 @@ impl printer for printer {
             self.space -= len;
             self.write_str(s);
           }
-          EOF. {
+          EOF {
             // EOF should never get here.
             fail;
           }