-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Add behaviour. In Attribute visitor, recognize doc from comment and handle it. * ast/rust-ast.h: Changes Attribute constructor and add a boolean in the class for doc comments. * lex/rust-token.cc (Token::as_string): Return the correct string for the new DOC_STRING_LITERAL token. * lex/rust-token.h (enum PrimitiveCoreType): Add two tokens : DOC_STRING_LITERAL and DOC_END, for pretty-printing purposes. Also modify the string of two previous tokens. * parse/rust-parse-impl.h (Parser::parse_inner_attribute): Updates the Attribute constructor call. (Parser::parse_outer_attribute): Same as above. Signed-off-by: lucas.plantrose <[email protected]>
- Loading branch information
1 parent
6708d35
commit 91d4c03
Showing
5 changed files
with
72 additions
and
34 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
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