Skip to content

Commit

Permalink
Change doc backtick color to cyan (#2469)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Nov 17, 2024
1 parent a73c097 commit 520cf91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions tests/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
}

0 comments on commit 520cf91

Please sign in to comment.