From 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d Mon Sep 17 00:00:00 2001 From: Aramis Razzaghipour Date: Fri, 28 May 2021 09:25:32 +1000 Subject: Add `public` semantic token modifier for public items --- .../test_data/highlight_doctest.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 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 79a285107..1f2f83a08 100644 --- a/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html +++ b/crates/ide/src/syntax_highlighting/test_data/highlight_doctest.html @@ -63,7 +63,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd // KILLER WHALE /// Ishmael."; /// ``` - pub const bar: bool = true; + pub const bar: bool = true; /// Constructs a new `Foo`. /// @@ -73,7 +73,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd /// # #![allow(unused_mut)] /// let mut foo: Foo = Foo::new(); /// ``` - pub const fn new() -> Foo { + pub const fn new() -> Foo { Foo { bar: true } } @@ -107,7 +107,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd /// ```sh /// echo 1 /// ``` - pub fn foo(&self) -> bool { + pub fn foo(&self) -> bool { true } } @@ -119,10 +119,10 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd /// /// [`Item`]: module::Item /// [mix_and_match]: ThisShouldntResolve -pub fn all_the_links() {} +pub fn all_the_links() {} -pub mod module { - pub struct Item; +pub mod module { + pub struct Item; } /// ``` @@ -148,7 +148,7 @@ 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() {} +pub fn mix_and_match() {} /** It is beyond me why you'd use these when you got /// @@ -157,7 +157,7 @@ It is beyond me why you'd use these when you got /// ``` [`block_comments2`] tests these with indentation */ -pub fn block_comments() {} +pub fn block_comments() {} /** Really, I don't get it @@ -166,4 +166,4 @@ It is beyond me why you'd use these when you got /// ``` [`block_comments`] tests these without indentation */ -pub fn block_comments2() {} \ No newline at end of file +pub fn block_comments2() {} \ No newline at end of file -- cgit v1.2.3