about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-06-25 20:34:49 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-06-29 15:19:52 +0300
commite03948ef3e19ff90066ca366bf76c390d7a42bc5 (patch)
treedcbabd39f56a901eeb0f9758b887bc398c9b6c2e /src/libsyntax/parse/token.rs
parent7acce3724d6ba5cb84d6eef6d6847f8573a1fe5a (diff)
downloadrust-e03948ef3e19ff90066ca366bf76c390d7a42bc5.tar.gz
rust-e03948ef3e19ff90066ca366bf76c390d7a42bc5.zip
Make `$crate` a keyword
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 77db604c56e..d6a4dc2ee96 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -327,7 +327,8 @@ impl Token {
         match self.ident() {
             Some(id) => id.name == keywords::Super.name() ||
                         id.name == keywords::SelfValue.name() ||
-                        id.name == keywords::SelfType.name(),
+                        id.name == keywords::SelfType.name() ||
+                        id.name == keywords::DollarCrate.name(),
             None => false,
         }
     }