From b1fbcc8a6e0a49a0486621e6d477ccb4ae11d714 Mon Sep 17 00:00:00 2001 From: John Higgins Date: Wed, 2 Aug 2023 00:04:55 -0700 Subject: [PATCH] fix for issue #2633 --- CHANGELOG.md | 1 + src/syntax_mapping.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 375935c9..b05bf87e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index e18b5642..cc69f927 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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