From 37964f9fef5e07684f4ff68142908f6266419faa Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 17 Mar 2021 18:59:54 +0100 Subject: Inject highlight into block doc comments --- .../test_data/highlight_doctest.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html') diff --git a/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html index 45817faf9..d792a23cf 100644 --- a/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html @@ -81,7 +81,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd /// comment */ /// /// let multi_line_string = "Foo - /// bar + /// bar\n /// "; /// /// ``` @@ -121,4 +121,20 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd #[cfg_attr(not(feature = "alloc"), doc = "```ignore")] /// let _ = example(&alloc::vec![1, 2, 3]); /// ``` -pub fn mix_and_match() {} \ No newline at end of file +pub fn mix_and_match() {} + +/** +It is beyond me why you'd use these when you got /// +```rust +let _ = example(&[1, 2, 3]); +``` + */ +pub fn block_comments() {} + +/** + Really, I don't get it + ```rust + let _ = example(&[1, 2, 3]); + ``` +*/ +pub fn block_comments2() {} \ No newline at end of file -- cgit v1.2.3