Skip to content

Commit

Permalink
fix for issue sharkdp#2633
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmatthiggins committed Aug 2, 2023
1 parent 9bf74d6 commit b1fbcc8
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 b1fbcc8

Please sign in to comment.