aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-attributes.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-05-08 20:58:59 -0400
committerCohenArthur <arthur.cohen@embecosm.com>2023-05-12 11:28:13 +0000
commit142b84e3c56252004348f57c0822dca39d437395 (patch)
treeb6f6cbf2603eebd3207331cd1914b4b028a754a3 /gcc/rust/util/rust-attributes.cc
parentdc809645295e424285cd05df655d8c0084e546b8 (diff)
downloadgcc-142b84e3c56252004348f57c0822dca39d437395.zip
gcc-142b84e3c56252004348f57c0822dca39d437395.tar.gz
gcc-142b84e3c56252004348f57c0822dca39d437395.tar.bz2
Handle keywords in macro fragments
gcc/rust/ChangeLog: * lex/rust-token.cc (token_id_is_keyword): New. (token_id_keyword_string): New. * lex/rust-token.h (token_id_is_keyword): New. (token_id_keyword_string): New. * expand/rust-macro-expand.cc (MacroExpander::match_fragment): Match keywords for ident fragment. * parse/rust-parse-impl.h (Parser::parse_identifier_or_keyword_token): Add. * parse/rust-parse.h (Parser::parse_identifier_or_keyword_token): Add. gcc/testsuite/ChangeLog: * rust/compile/macro-issue2192.rs: New test. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/util/rust-attributes.cc')
0 files changed, 0 insertions, 0 deletions