Skip to content

Commit

Permalink
Simplify highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
bensadeh committed Sep 24, 2023
1 parent b19cc5c commit 48f87d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/highlighters/keyword.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn highlight_keywords(color: &str, input: &str, keyword_regex: &Regex, border: b
if border {
keyword_regex
.replace_all(input, |cap: &regex::Captures| {
format!("{} {}{}{} {}", color, &cap[0], color::RESET, color, color::RESET)
format!("{} {} {}", color, &cap[0], color::RESET)
})
.to_string()
} else {
Expand Down

0 comments on commit 48f87d9

Please sign in to comment.