aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
authorPaul Daniel Faria <[email protected]>2020-06-23 14:17:53 +0100
committerPaul Daniel Faria <[email protected]>2020-06-23 17:13:50 +0100
commit2a56323537442958008d0fddd78e33df425b11a9 (patch)
treeee3a7043c21df2aab8be6b7bb2ab83dd6fe4b84f /crates/ra_ide/src/lib.rs
parentd8230acd84dc931f72b9dd32b8fbc2aa887d8b4b (diff)
Update injection mechanism and stop injecting through highlight element, switch to more general new highlight tag, generic
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 31bd6cf03..ecac5134e 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -443,13 +443,13 @@ impl Analysis {
443 443
444 /// Computes syntax highlighting for the given file 444 /// Computes syntax highlighting for the given file
445 pub fn highlight(&self, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> { 445 pub fn highlight(&self, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> {
446 self.with_db(|db| syntax_highlighting::highlight(db, file_id, None, false, false)) 446 self.with_db(|db| syntax_highlighting::highlight(db, file_id, None, false))
447 } 447 }
448 448
449 /// Computes syntax highlighting for the given file range. 449 /// Computes syntax highlighting for the given file range.
450 pub fn highlight_range(&self, frange: FileRange) -> Cancelable<Vec<HighlightedRange>> { 450 pub fn highlight_range(&self, frange: FileRange) -> Cancelable<Vec<HighlightedRange>> {
451 self.with_db(|db| { 451 self.with_db(|db| {
452 syntax_highlighting::highlight(db, frange.file_id, Some(frange.range), false, false) 452 syntax_highlighting::highlight(db, frange.file_id, Some(frange.range), false)
453 }) 453 })
454 } 454 }
455 455