diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-09-07 14:50:47 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-09-07 16:12:15 -0700 |
| commit | f0eae8f1c19a051ab750383e479f979c32d4598a (patch) | |
| tree | f4ac6cb0637579d32aeb3dc7d9174dc5a6b3efce /src/libsyntax | |
| parent | 3078830934ba5596e7eac86825636b49451e40e3 (diff) | |
| download | rust-f0eae8f1c19a051ab750383e479f979c32d4598a.tar.gz rust-f0eae8f1c19a051ab750383e479f979c32d4598a.zip | |
Convert field terminators to commas. Stop parsing semis.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/qquote.rs | 8 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/ext/qquote.rs b/src/libsyntax/ext/qquote.rs index 4ebd3eafe3d..638e46a9cdb 100644 --- a/src/libsyntax/ext/qquote.rs +++ b/src/libsyntax/ext/qquote.rs @@ -15,10 +15,10 @@ use io::*; use codemap::span; struct gather_item { - lo: uint; - hi: uint; - e: @ast::expr; - constr: ~str; + lo: uint, + hi: uint, + e: @ast::expr, + constr: ~str } type aq_ctxt = @{lo: uint, gather: DVec<gather_item>}; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1425831fa6e..015399e62b1 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2731,7 +2731,7 @@ struct parser { !self.token_is_pound_or_doc_comment(self.token) { let a_var = self.parse_instance_var(vis); match self.token { - token::SEMI | token::COMMA => { + token::COMMA => { self.bump(); } token::RBRACE => {} |
