diff --git a/src/color.rs b/src/color.rs index ba437effeb..953b8ae9b4 100644 --- a/src/color.rs +++ b/src/color.rs @@ -67,7 +67,7 @@ impl Color { } pub(crate) fn doc_backtick(self) -> Self { - self.restyle(Style::new().fg(White).on(Black)) + self.restyle(Style::new().fg(Cyan)) } pub(crate) fn error(self) -> Self { diff --git a/tests/list.rs b/tests/list.rs index f7ea7528af..53a1c7372c 100644 --- a/tests/list.rs +++ b/tests/list.rs @@ -452,7 +452,7 @@ fn backticks_highlighted() { .stdout( " Available recipes: - recipe \u{1b}[34m#\u{1b}[0m \u{1b}[34mComment \u{1b}[0m\u{1b}[40;37m``\u{1b}[0m\u{1b}[34m \u{1b}[0m\u{1b}[40;37m`with backticks`\u{1b}[0m\u{1b}[34m and trailing text\u{1b}[0m + recipe \u{1b}[34m#\u{1b}[0m \u{1b}[34mComment \u{1b}[0m\u{1b}[36m``\u{1b}[0m\u{1b}[34m \u{1b}[0m\u{1b}[36m`with backticks`\u{1b}[0m\u{1b}[34m and trailing text\u{1b}[0m ") .run(); } @@ -470,7 +470,7 @@ fn unclosed_backticks() { .stdout( " Available recipes: - recipe \u{1b}[34m#\u{1b}[0m \u{1b}[34mComment \u{1b}[0m\u{1b}[40;37m`with unclosed backick\u{1b}[0m + recipe \u{1b}[34m#\u{1b}[0m \u{1b}[34mComment \u{1b}[0m\u{1b}[36m`with unclosed backick\u{1b}[0m ") .run(); }