diff options
author | Paul Daniel Faria <[email protected]> | 2020-06-22 15:28:07 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-23 17:11:33 +0100 |
commit | d8230acd84dc931f72b9dd32b8fbc2aa887d8b4b (patch) | |
tree | 29b4dea638978cd7043a7d6e5b0dbab3d7d84fdd /crates/ra_ide/src/lib.rs | |
parent | e137d9accb0ad73e1794e55a76c18ed4c8ca85e9 (diff) |
Add punctuation highlighting for highlighting punctuation in doctests, fix highlighting in doctests
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 22203b4a3..31bd6cf03 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, None)) | 446 | self.with_db(|db| syntax_highlighting::highlight(db, file_id, None, false, 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, None) | 452 | syntax_highlighting::highlight(db, frange.file_id, Some(frange.range), false, false) |
453 | }) | 453 | }) |
454 | } | 454 | } |
455 | 455 | ||