diff options
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 4 |
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 | ||