diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-17 18:20:25 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-17 18:20:25 +0000 |
commit | ec10835d604c534a0b0ad5fd3d8783e0bf123cbb (patch) | |
tree | 61d2cafcd79503591022c4c58f51b7a097dc4ea6 /crates/ide/src/syntax_highlighting/tests.rs | |
parent | 4fa56e3ab10ce3214cae2fdef1973eef406180ce (diff) | |
parent | 37964f9fef5e07684f4ff68142908f6266419faa (diff) |
Merge #8069
8069: Inject highlight into block doc comments r=Veykril a=Veykril
bors r+
Closes https://github.com/rust-analyzer/rust-analyzer/issues/6873
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tests.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tests.rs | 18 |
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 | /// ``` |
559 | pub fn mix_and_match() {} | 559 | pub fn mix_and_match() {} |
560 | |||
561 | /** | ||
562 | It is beyond me why you'd use these when you got /// | ||
563 | ```rust | ||
564 | let _ = example(&[1, 2, 3]); | ||
565 | ``` | ||
566 | */ | ||
567 | pub fn block_comments() {} | ||
568 | |||
569 | /** | ||
570 | Really, I don't get it | ||
571 | ```rust | ||
572 | let _ = example(&[1, 2, 3]); | ||
573 | ``` | ||
574 | */ | ||
575 | pub 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"], |