mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
string is not a keyword
This commit is contained in:
parent
7011094685
commit
b8cac1bb6b
5 changed files with 13 additions and 5 deletions
|
@ -178,6 +178,12 @@ impl<'a> Converter<'a> {
|
|||
rustc_lexer::TokenKind::Whitespace => WHITESPACE,
|
||||
|
||||
rustc_lexer::TokenKind::Ident if token_text == "_" => UNDERSCORE,
|
||||
rustc_lexer::TokenKind::Ident
|
||||
if ["async", "await", "dyn", "try"].contains(&token_text)
|
||||
&& !self.edition.at_least_2018() =>
|
||||
{
|
||||
IDENT
|
||||
}
|
||||
rustc_lexer::TokenKind::Ident
|
||||
if token_text == "gen" && !self.edition.at_least_2024() =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue