aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-11-16 16:20:49 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-30 12:36:45 +0100
commit2c843a047dd3c596b4daabe247e52e1d6475e4d6 (patch)
tree80c1c2e8003d2caa7bcbad706e10bdd84c165e1c /gcc/rust/Make-lang.in
parent28652f21e5560123c658d3e11d638957cb344641 (diff)
downloadgcc-2c843a047dd3c596b4daabe247e52e1d6475e4d6.zip
gcc-2c843a047dd3c596b4daabe247e52e1d6475e4d6.tar.gz
gcc-2c843a047dd3c596b4daabe247e52e1d6475e4d6.tar.bz2
gccrs: Introduce a proper keyword list
The old "keyword" list was used for the lexer, and could therefore not be used with keyword spanning over multiple tokens as those tokens should remain lexed as is. Hence the introduction of a new list macro for keyword exclusive tasks. This also means we can no longer match a token id for each keyword. The token id map has been renamed to keep it's properties. gcc/rust/ChangeLog: * lex/rust-lex.cc (Lexer::classify_keyword): Update keyword map name. * lex/rust-token.h (enum PrimitiveCoreType): Remove some deprecated comments. * util/rust-keyword-values.cc (get_keywords): Update the keyword map name. (RS_TOKEN): Define as empty (RS_TOKEN_KEYWORD_2015): Add the emission value. (RS_TOKEN_KEYWORD_2018): Likewise. * util/rust-keyword-values.h (RS_KEYWORD_LIST): Introduce the keyword list. (RS_TOKEN_KEYWORD_2018): Define multiple new keywords. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions