mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-19 00:23:58 +00:00
12 lines
305 B
Rust
12 lines
305 B
Rust
use ra_syntax::AstNode;
|
|
use ra_db::SourceDatabase;
|
|
|
|
use crate::{
|
|
FileId, HighlightedRange,
|
|
db::RootDatabase,
|
|
};
|
|
|
|
pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Vec<HighlightedRange> {
|
|
let source_file = db.parse(file_id);
|
|
ra_ide_api_light::highlight(source_file.syntax())
|
|
}
|