diff options
| author | John Clements <clements@racket-lang.org> | 2013-05-08 15:27:29 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-06-05 12:01:36 -0700 |
| commit | d7638f9dba5cef5c4db7b9008196ede4450d8521 (patch) | |
| tree | ca96d50b78c7defd451ef9807a7f7554acc3436f /src/libsyntax/parse/parser.rs | |
| parent | 77c2c0900f975e1fa9179c3e7492d62656734295 (diff) | |
| download | rust-d7638f9dba5cef5c4db7b9008196ede4450d8521.tar.gz rust-d7638f9dba5cef5c4db7b9008196ede4450d8521.zip | |
change to newer macro escape mechanism, using uints in more places
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 23e3f145398..4635db0e10f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2628,6 +2628,13 @@ impl Parser { // to the macro clause of parse_item_or_view_item. This // could use some cleanup, it appears to me. + // whoops! I now have a guess: I'm guessing the "parens-only" + // rule here is deliberate, to allow macro users to use parens + // for things that should be parsed as stmt_mac, and braces + // for things that should expand into items. Tricky, and + // somewhat awkward... and probably undocumented. Of course, + // I could just be wrong. + check_expected_item(self, item_attrs); // Potential trouble: if we allow macros with paths instead of |
