diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-17 20:08:42 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-17 20:08:42 +0000 |
commit | bba474bb52e75baf4cabb3fc73f2a4c818816857 (patch) | |
tree | 6bb31b0325e8a7b9bef577901575a048344e8eb5 /crates/ide/src/syntax_highlighting/tests.rs | |
parent | ec10835d604c534a0b0ad5fd3d8783e0bf123cbb (diff) | |
parent | 9763f0a6bd0d576236ff126173d7df3462c22a52 (diff) |
Merge #8071
8071: Semantic highlight intradoclinks in documentation r=Veykril a=Veykril
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index cf0b86ad0..7b2922b0d 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs | |||
@@ -468,7 +468,7 @@ fn main() { | |||
468 | } | 468 | } |
469 | 469 | ||
470 | #[test] | 470 | #[test] |
471 | fn test_highlight_doctest() { | 471 | fn test_highlight_doc_comment() { |
472 | check_highlighting( | 472 | check_highlighting( |
473 | r#" | 473 | r#" |
474 | /// ``` | 474 | /// ``` |
@@ -533,6 +533,11 @@ impl Foo { | |||
533 | } | 533 | } |
534 | } | 534 | } |
535 | 535 | ||
536 | /// [`Foo`](Foo) is a struct | ||
537 | /// [`all_the_links`](all_the_links) is this function | ||
538 | /// [`noop`](noop) is a macro below | ||
539 | pub fn all_the_links() {} | ||
540 | |||
536 | /// ``` | 541 | /// ``` |
537 | /// noop!(1); | 542 | /// noop!(1); |
538 | /// ``` | 543 | /// ``` |