-
Notifications
You must be signed in to change notification settings - Fork 161
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): made change to parsing logic so that it will stop when encountered a '=>' or ',' while having restrictions.stop_on_token turned on. (Parser::left_denotations): Same as above stopping parsing on above special tokens. (Parser::null_denotation): Same as above stopping parsing on above special tokens. * parse/rust-parse.h (struct ParseRestrictions): Made a field stop_on_token (default set to false) so that the above functionality is maintained.
- Loading branch information
1 parent
4564a4f
commit 1a61c40
Showing
2 changed files
with
21 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