mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Cleanup
This commit is contained in:
parent
dd0c3c41b9
commit
d06733efeb
3 changed files with 3 additions and 7 deletions
|
@ -141,7 +141,7 @@ fn convert_literal(l: &tt::Literal) -> TtToken {
|
|||
}
|
||||
|
||||
fn convert_ident(ident: &tt::Ident) -> TtToken {
|
||||
let kind = if let Some('\'') = ident.text.chars().next() {
|
||||
let kind = if ident.text.starts_with('\'') {
|
||||
LIFETIME
|
||||
} else {
|
||||
SyntaxKind::from_keyword(ident.text.as_str()).unwrap_or(IDENT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue