Make doc comment highlight injection configurable

This commit is contained in:
Lukas Wirth 2022-08-22 13:44:07 +02:00
parent 9a201873b8
commit 9700c95ced
4 changed files with 22 additions and 4 deletions

View file

@ -31,6 +31,7 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo
specialize_punctuation: true,
specialize_operator: true,
operator: true,
inject_doc_comment: true,
syntactic_name_ref_highlighting: false,
},
file_id,

View file

@ -12,6 +12,7 @@ const HL_CONFIG: HighlightConfig = HighlightConfig {
specialize_punctuation: true,
specialize_operator: true,
operator: true,
inject_doc_comment: true,
syntactic_name_ref_highlighting: false,
};