mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
More clever highlighting, incl draft for structs
This commit is contained in:
parent
ed89b0638b
commit
43d5a49653
10 changed files with 159 additions and 414 deletions
|
@ -464,7 +464,7 @@ impl Analysis {
|
|||
|
||||
/// Computes syntax highlighting for the given file.
|
||||
pub fn highlight_as_html(&self, file_id: FileId) -> Cancelable<String> {
|
||||
self.with_db(|db| syntax_highlighting::highlight_as_html(db, file_id))
|
||||
self.with_db(|db| syntax_highlighting::highlight_as_html(db, file_id, true))
|
||||
}
|
||||
|
||||
/// Computes completions at the given position.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue