about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-02-26 10:15:29 -0800
committerJohn Clements <clements@racket-lang.org>2013-02-26 10:36:55 -0800
commit08b6057538b9bb81bb71db632344ed0312e57f5f (patch)
tree66bf782f1ab3f8e6194f4d156bf384be2f4d3858 /src/libsyntax/parse/token.rs
parent5e319fb2827903d6cb0c0d9d0af638c3f9503c81 (diff)
downloadrust-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.rs4
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),