Skip to content

Commit

Permalink
Merge pull request sharkdp#2638 from johnmatthiggins/master
Browse files Browse the repository at this point in the history
fix for issue sharkdp#2633
  • Loading branch information
sharkdp authored Aug 2, 2023
2 parents 9bf74d6 + b1fbcc8 commit 6dd8b28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon)
- Associate `Containerfile` with `Dockerfile` syntax, see #2606 (@einfachIrgendwer0815)
- Associate `ksh` files with `bash` syntax, see #2633 (@johnmatthiggins)

## Themes

Expand Down
4 changes: 4 additions & 0 deletions src/syntax_mapping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ impl<'a> SyntaxMapping<'a> {
.insert("Containerfile", MappingTarget::MapTo("Dockerfile"))
.unwrap();

mapping
.insert("*.ksh", MappingTarget::MapTo("Bourne Again Shell (bash)"))
.unwrap();

// Nginx and Apache syntax files both want to style all ".conf" files
// see #1131 and #1137
mapping
Expand Down

0 comments on commit 6dd8b28

Please sign in to comment.