mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add lifetime matcher
This commit is contained in:
parent
59b6cc780b
commit
313854c728
4 changed files with 25 additions and 2 deletions
|
@ -157,7 +157,10 @@ fn convert_tt(
|
|||
);
|
||||
}
|
||||
} else {
|
||||
let child = if token.kind().is_keyword() || token.kind() == IDENT {
|
||||
let child: tt::TokenTree = if token.kind().is_keyword()
|
||||
|| token.kind() == IDENT
|
||||
|| token.kind() == LIFETIME
|
||||
{
|
||||
let relative_range = token.range() - global_offset;
|
||||
let id = token_map.alloc(relative_range);
|
||||
let text = token.text().clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue