Add punctuation highlighting for highlighting punctuation in doctests, fix highlighting in doctests
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user