Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syntax: Divide keywords into contextual/restricted. No bad words
- Loading branch information
Showing
4 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ fn new_parser(sess: parse_sess, cfg: ast::crate_cfg, rdr: lexer::reader, | |
reader: rdr, | ||
binop_precs: prec::binop_prec_table(), | ||
keywords: token::keyword_table(), | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marijnh
Contributor
|
||
bad_expr_words: token::bad_expr_word_table()} | ||
restricted_keywords: token::restricted_keyword_table()} | ||
} | ||
|
||
fn new_parser_from_source_str(sess: parse_sess, cfg: ast::crate_cfg, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This table does not seem to be used. What is it for?