aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/tests.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs
index a5ef2d29b..cf0b86ad0 100644
--- a/crates/ide/src/syntax_highlighting/tests.rs
+++ b/crates/ide/src/syntax_highlighting/tests.rs
@@ -516,7 +516,7 @@ impl Foo {
516 /// comment */ 516 /// comment */
517 /// 517 ///
518 /// let multi_line_string = "Foo 518 /// let multi_line_string = "Foo
519 /// bar 519 /// bar\n
520 /// "; 520 /// ";
521 /// 521 ///
522 /// ``` 522 /// ```
@@ -557,6 +557,22 @@ macro_rules! noop {
557/// let _ = example(&alloc::vec![1, 2, 3]); 557/// let _ = example(&alloc::vec![1, 2, 3]);
558/// ``` 558/// ```
559pub fn mix_and_match() {} 559pub fn mix_and_match() {}
560
561/**
562It is beyond me why you'd use these when you got ///
563```rust
564let _ = example(&[1, 2, 3]);
565```
566 */
567pub fn block_comments() {}
568
569/**
570 Really, I don't get it
571 ```rust
572 let _ = example(&[1, 2, 3]);
573 ```
574*/
575pub fn block_comments2() {}
560"# 576"#
561 .trim(), 577 .trim(),
562 expect_file!["./test_data/highlight_doctest.html"], 578 expect_file!["./test_data/highlight_doctest.html"],