diff options
author | Paul Daniel Faria <[email protected]> | 2020-06-18 14:37:22 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-23 17:08:04 +0100 |
commit | 351bba9bee136d856f987037b6ecffd0642d606f (patch) | |
tree | 50ef4af147ef3f539086aec02e274655552ee6ef /crates/ra_ide/src/lib.rs | |
parent | 0c12c4f9609ee72487af9b55a558b01af73ffe3e (diff) |
Add support for marking doctest items as distinct from normal code, add default tag to all doctest elements
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 ecac5134e..22203b4a3 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)) | 446 | self.with_db(|db| syntax_highlighting::highlight(db, file_id, None, false, None)) |
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) | 452 | syntax_highlighting::highlight(db, frange.file_id, Some(frange.range), false, None) |
453 | }) | 453 | }) |
454 | } | 454 | } |
455 | 455 | ||