Add punctuation highlighting for highlighting punctuation in doctests, fix highlighting in doctests

This commit is contained in:
Paul Daniel Faria
2020-06-22 10:28:07 -04:00
parent e137d9accb
commit d8230acd84
14 changed files with 220 additions and 217 deletions

View File

@@ -150,9 +150,7 @@ pub(super) fn highlight_doc_comment(
let (analysis, tmp_file_id) = Analysis::from_single_file(text);
stack.push();
for mut h in analysis
.with_db(|db| super::highlight(db, tmp_file_id, None, true, Some(HighlightTag::Operator)))
.unwrap()
for mut h in analysis.with_db(|db| super::highlight(db, tmp_file_id, None, true, true)).unwrap()
{
// Determine start offset and end offset in case of multi-line ranges
let mut start_offset = None;