From 5a78d96d0ea1e9d71d8bfe999b4af7cd1b85cebe Mon Sep 17 00:00:00 2001 From: Lukas Tobias Wirth Date: Tue, 4 May 2021 13:51:57 +0200 Subject: Fix block comment intra doc link injection ranges --- crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html | 2 ++ crates/ide/src/syntax_highlighting/tests.rs | 2 ++ 2 files changed, 4 insertions(+) (limited to 'crates/ide') 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 638f42c2f..8d83ba206 100644 --- a/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html @@ -142,6 +142,7 @@ It is beyond me why you'd use these when you got /// ```rust let _ = example(&[1, 2, 3]); ``` +[`block_comments2`] tests these with indentation */ pub fn block_comments() {} @@ -150,5 +151,6 @@ It is beyond me why you'd use these when you got /// ```rust let _ = example(&[1, 2, 3]); ``` + [`block_comments`] tests these without indentation */ pub fn block_comments2() {} \ No newline at end of file diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs index 17cc6334b..b6e952b08 100644 --- a/crates/ide/src/syntax_highlighting/tests.rs +++ b/crates/ide/src/syntax_highlighting/tests.rs @@ -618,6 +618,7 @@ It is beyond me why you'd use these when you got /// ```rust let _ = example(&[1, 2, 3]); ``` +[`block_comments2`] tests these with indentation */ pub fn block_comments() {} @@ -626,6 +627,7 @@ pub fn block_comments() {} ```rust let _ = example(&[1, 2, 3]); ``` + [`block_comments`] tests these without indentation */ pub fn block_comments2() {} "# -- cgit v1.2.3