Skip to content

Commit 3057790

Browse files
committed
Rename 'contextual' keywords to 'temporary'
1 parent 287114a commit 3057790

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/libsyntax/parse/token.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,15 @@ fn mk_fake_ident_interner() -> ident_interner {
362362
/**
363363
* All the valid words that have meaning in the Rust language.
364364
*
365-
* Rust keywords are either 'contextual', 'restricted', or 'strict'.
366-
* Contextual keywords may be used as identifiers because their appearance in
367-
* the grammar is unambiguous. Restricted keywords may not appear in positions
368-
* that might otherwise contain _value identifiers_. Strict keywords may not
369-
* appear as identifiers.
365+
* Rust keywords are either 'temporary', 'restricted', or 'strict'. Temporary
366+
* keywords are contextual and may be used as identifiers anywhere. They are
367+
* expected to disappear from the grammar soon. Restricted keywords may not
368+
* appear in positions that might otherwise contain _value identifiers_.
369+
* Strict keywords may not appear as identifiers at all.
370370
*/
371371
fn keyword_table() -> HashMap<~str, ()> {
372372
let keywords = str_hash();
373-
for contextual_keyword_table().each_key |word| {
373+
for temporary_keyword_table().each_key |word| {
374374
keywords.insert(word, ());
375375
}
376376
for restricted_keyword_table().each_key |word| {
@@ -386,7 +386,7 @@ fn keyword_table() -> HashMap<~str, ()> {
386386
}
387387

388388
/// Keywords that may be used as identifiers
389-
fn contextual_keyword_table() -> HashMap<~str, ()> {
389+
fn temporary_keyword_table() -> HashMap<~str, ()> {
390390
let words = str_hash();
391391
let keys = ~[
392392
~"self", ~"static",

0 commit comments

Comments
 (0)