about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorPaul Stansifer <paul.stansifer@gmail.com>2012-07-30 16:01:07 -0700
committerPaul Stansifer <paul.stansifer@gmail.com>2012-07-30 18:38:15 -0700
commita9cc5066ee61f20e7cc59141d5c7213a452a2778 (patch)
treee65d0e9b5a3d3abf723d596a32785b5655505af1 /src/libsyntax/parse/parser.rs
parent650fb06d68771828406f4f27e3af5db9c11311c5 (diff)
downloadrust-a9cc5066ee61f20e7cc59141d5c7213a452a2778.tar.gz
rust-a9cc5066ee61f20e7cc59141d5c7213a452a2778.zip
Change syntax extension syntax: `#m[...]` -> `m!{...}`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index ac130024546..1445dc30d10 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -273,13 +273,13 @@ class parser {
             let tps = p.parse_ty_params();
             let d = p.parse_ty_fn_decl(pur);
             let hi = p.last_span.hi;
-            #debug["parse_trait_methods(): trait method signature ends in \
+            debug!{"parse_trait_methods(): trait method signature ends in \
                     `%s`",
-                   token_to_str(p.reader, p.token)];
+                   token_to_str(p.reader, p.token)};
             alt p.token {
               token::SEMI {
                 p.bump();
-                #debug["parse_trait_methods(): parsing required method"];
+                debug!{"parse_trait_methods(): parsing required method"};
                 // NB: at the moment, visibility annotations on required
                 // methods are ignored; this could change.
                 required({ident: ident, attrs: attrs,
@@ -287,7 +287,7 @@ class parser {
                           span: mk_sp(lo, hi)})
               }
               token::LBRACE {
-                #debug["parse_trait_methods(): parsing provided method"];
+                debug!{"parse_trait_methods(): parsing provided method"};
                 let (inner_attrs, body) =
                     p.parse_inner_attrs_and_block(true);
                 let attrs = vec::append(attrs, inner_attrs);
@@ -632,7 +632,7 @@ class parser {
     }
 
     fn parse_path_with_tps(colons: bool) -> @path {
-        #debug["parse_path_with_tps(colons=%b)", colons];
+        debug!{"parse_path_with_tps(colons=%b)", colons};
 
         let lo = self.span.lo;
         let path = self.parse_path_without_tps();
@@ -1479,9 +1479,9 @@ class parser {
             // There may be other types of expressions that can
             // represent the callee in `for` and `do` expressions
             // but they aren't represented by tests
-            #debug("sugary call on %?", e.node);
+            debug!{"sugary call on %?", e.node};
             self.span_fatal(
-                lo, #fmt("`%s` must be followed by a block call", keyword));
+                lo, fmt!{"`%s` must be followed by a block call", keyword});
           }
         }
     }
@@ -2321,7 +2321,7 @@ class parser {
                 attrs = vec::append(attrs_remaining, attrs);
                 first = false;
             }
-            #debug["parse_mod_items: parse_item(attrs=%?)", attrs];
+            debug!{"parse_mod_items: parse_item(attrs=%?)", attrs};
             let vis = self.parse_visibility(private);
             alt self.parse_item(attrs, vis) {
               some(i) { vec::push(items, i); }
@@ -2330,7 +2330,7 @@ class parser {
                            token_to_str(self.reader, self.token) + ~"`");
               }
             }
-            #debug["parse_mod_items: attrs=%?", attrs];
+            debug!{"parse_mod_items: attrs=%?", attrs};
         }
 
         if first && attrs_remaining.len() > 0u {
@@ -2603,7 +2603,7 @@ class parser {
         let lo = self.span.lo;
         let first_ident = self.parse_ident();
         let mut path = ~[first_ident];
-        #debug("parsed view_path: %s", *first_ident);
+        debug!{"parsed view_path: %s", *first_ident};
         alt self.token {
           token::EQ {
             // x = foo::bar