Skip to content

Commit

Permalink
Add comments for the token table
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Jun 4, 2014
1 parent 024df5c commit 5343eb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsyntax/parse/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5343eb7

Please sign in to comment.