Skip to content

Commit 6dd8b28

Browse files
authored
Merge pull request #2638 from johnmatthiggins/master
fix for issue #2633
2 parents 9bf74d6 + b1fbcc8 commit 6dd8b28

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

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

1617
## Themes
1718

src/syntax_mapping.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ impl<'a> SyntaxMapping<'a> {
9090
.insert("Containerfile", MappingTarget::MapTo("Dockerfile"))
9191
.unwrap();
9292

93+
mapping
94+
.insert("*.ksh", MappingTarget::MapTo("Bourne Again Shell (bash)"))
95+
.unwrap();
96+
9397
// Nginx and Apache syntax files both want to style all ".conf" files
9498
// see #1131 and #1137
9599
mapping

0 commit comments

Comments
 (0)