diff options
| author | John Clements <clements@racket-lang.org> | 2013-02-26 10:15:29 -0800 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-02-26 10:36:55 -0800 |
| commit | 08b6057538b9bb81bb71db632344ed0312e57f5f (patch) | |
| tree | 66bf782f1ab3f8e6194f4d156bf384be2f4d3858 /src/libsyntax/parse/token.rs | |
| parent | 5e319fb2827903d6cb0c0d9d0af638c3f9503c81 (diff) | |
| download | rust-08b6057538b9bb81bb71db632344ed0312e57f5f.tar.gz rust-08b6057538b9bb81bb71db632344ed0312e57f5f.zip | |
Macros now leave scope
Macro scope is now delimited by function, block, and module boundaries, except for modules that are marked with #[macro_escape], which allows macros to escape.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index f145e433fa7..207f6d49915 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -87,7 +87,9 @@ pub enum Token { LIT_STR(ast::ident), /* Name components */ - // an identifier contains an "is_mod_name" boolean. + // an identifier contains an "is_mod_name" boolean, + // indicating whether :: follows this token with no + // whitespace in between. IDENT(ast::ident, bool), UNDERSCORE, LIFETIME(ast::ident), |
