From f8c700027e374486f5dd4bfb22b03532181a2d74 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:17:08 +0800 Subject: [PATCH 1/2] Add `os-release` syntax mapping --- src/syntax_mapping.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 5e65507033..44e1cf454c 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -63,6 +63,12 @@ impl<'a> SyntaxMapping<'a> { MappingTarget::MapTo("Bourne Again Shell (bash)"), ) .unwrap(); + mapping + .insert( + "os-release", + MappingTarget::MapTo("Bourne Again Shell (bash)"), + ) + .unwrap(); mapping .insert("*.pac", MappingTarget::MapTo("JavaScript (Babel)")) .unwrap(); From 8e866babfcba2727d7868fc80cd2f499f5cb3ef5 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:25:02 +0800 Subject: [PATCH 2/2] Write changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0be1eb11e..4f1d0f8fc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ ## Syntaxes +- Associate `os-release` with `bash` syntax, see #2587 (@cyqsimon) + ## Themes ## `bat` as a library