mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Unleash macro 2.0 in hightlight and more
This commit is contained in:
parent
a193666361
commit
4520002b63
12 changed files with 49 additions and 31 deletions
|
@ -438,7 +438,7 @@ fn to_symbol(node: &SyntaxNode) -> Option<(SmolStr, SyntaxNodePtr, TextRange)> {
|
|||
ast::TypeAlias(it) => decl(it),
|
||||
ast::Const(it) => decl(it),
|
||||
ast::Static(it) => decl(it),
|
||||
ast::MacroRules(it) => decl(it),
|
||||
ast::Macro(it) => decl(it),
|
||||
ast::Union(it) => decl(it),
|
||||
_ => None,
|
||||
}
|
||||
|
@ -458,6 +458,7 @@ fn to_file_symbol(node: &SyntaxNode, file_id: FileId) -> Option<FileSymbol> {
|
|||
CONST => FileSymbolKind::Const,
|
||||
STATIC => FileSymbolKind::Static,
|
||||
MACRO_RULES => FileSymbolKind::Macro,
|
||||
MACRO_DEF => FileSymbolKind::Macro,
|
||||
UNION => FileSymbolKind::Union,
|
||||
kind => unreachable!("{:?}", kind),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue