Introduce 'strict' keywords, that may not be used as idents anywhere
This commit is contained in:
parent
e0c232025c
commit
e7a01b7383
3 changed files with 42 additions and 4 deletions
|
@ -215,6 +215,7 @@ fn parser(sess: parse_sess, cfg: ast::crate_cfg,
|
|||
quote_depth: 0u,
|
||||
keywords: token::keyword_table(),
|
||||
restricted_keywords: token::restricted_keyword_table(),
|
||||
strict_keywords: token::strict_keyword_table(),
|
||||
obsolete_set: std::map::hashmap(),
|
||||
}
|
||||
}
|
||||
|
@ -235,6 +236,7 @@ struct parser {
|
|||
interner: interner<@~str>,
|
||||
keywords: hashmap<~str, ()>,
|
||||
restricted_keywords: hashmap<~str, ()>,
|
||||
strict_keywords: hashmap<~str, ()>,
|
||||
/// The set of seen errors about obsolete syntax. Used to suppress
|
||||
/// extra detail when the same error is seen twice
|
||||
obsolete_set: hashmap<ObsoleteSyntax, ()>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue