about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-05-20 11:59:07 -0700
committerCorey Richardson <corey@octayn.net>2014-06-03 21:01:53 -0700
commit5343eb7e0cf576d690b6cfceb9c5ca6a4bfd8652 (patch)
tree72f7254b9f6f6a9da28c2276b6574b886fcbf995 /src/libsyntax
parent024df5c8a68928670f10cef45ca3064424016674 (diff)
downloadrust-5343eb7e0cf576d690b6cfceb9c5ca6a4bfd8652.tar.gz
rust-5343eb7e0cf576d690b6cfceb9c5ca6a4bfd8652.zip
Add comments for the token table
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 8263c7c6852..17a90ad1325 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -423,6 +423,10 @@ macro_rules! declare_special_idents_and_keywords {(
 static SELF_KEYWORD_NAME: Name = 1;
 static STATIC_KEYWORD_NAME: Name = 2;
 
+// NB: leaving holes in the ident table is bad! a different ident will get
+// interned with the id from the hole, but it will be between the min and max
+// of the reserved words, and thus tagged as "reserved".
+
 declare_special_idents_and_keywords! {
     pub mod special_idents {
         // These ones are statics