-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gccrs: Changes made to ensure that '=>' token is parsed properly
gcc/rust/ChangeLog: * parse/rust-parse-impl.h (Parser::parse_expr): Updated parsing logic to stop on encountering '=>' or ',' while having restrictions.stop_on_token turned on. (Parser::left_denotations): Updated to stop parsing on the special tokens mentioned above. (Parser::null_denotation): Updated to stop parsing on the special tokens mentioned above. * parse/rust-parse.h (struct ParseRestrictions): Added a field stop_on_token (default false) to maintain the above functionality.
- Loading branch information
1 parent
4564a4f
commit e7e7360
Showing
2 changed files
with
22 additions
and
0 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
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