Repository: sharkdp/bat (language: rust)

Issue:
Support for CITATION.cff aka citation files from GitHub
Hi,
  I would like to suggest supporting `.cff` files which are the file format for GitHub citation (`CITATION.cff`).  According to [Citation File Format (CFF)](https://citation-file-format.github.io/about/#:~:text=Citation%20File%20Format%20is%20a,%2Fcitation%2Dfile%2Dformat.),
```
Citation File Format is a human- and machine-readable file format in [YAML 1.2](http://www.yaml.org/spec/1.2/spec.html) which provides citation metadata for software.
```

### cff Example

```yaml
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Lisa"
  given-names: "Mona"
  orcid: "https://orcid.org/0000-0000-0000-0000"
- family-names: "Bot"
  given-names: "Hew"
  orcid: "https://orcid.org/0000-0000-0000-0000"
title: "My Research Software"
version: 2.0.4
doi: 10.5281/zenodo.1234
date-released: 2017-12-18
url: "https://github.com/github-linguist/linguist"
```

### Resources

* [What is a CITATION.cff file?](https://citation-file-format.github.io/)
* [The Citation File Format lets you provide citation metadata for software or datasets in plaintext files that are easy to read by both humans and machines.](https://github.com/citation-file-format/citation-file-format)
* [About CITATION files on Github](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files)
* [Sublime HQ - [YAML] Add CITATION.cff file extension](https://github.com/sublimehq/Packages/pull/3947)


Discussion / hints:
A small note:

The [citation file format schema](https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md) mentions that they must be valid YAML 1.2.

This could be achieved by adding a syntax mapping from `.cff` to `.yaml`.
Can I take a try at this? I'm new to the project and would like something to work on. 
Sure 🙂 it may make sense to look at recent PRs adding syntax mappings to see how it has been done before, let us know if you need any pointers/help 🙂
Great, thank you!

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9e24e02398..1dd80c485a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -63,6 +63,7 @@
 - Associate Wireguard config `/etc/wireguard/*.conf`, see #2874 (@cyqsimon)
 - Add support for [CFML](https://www.adobe.com/products/coldfusion-family.html), see #3031 (@brenton-at-pieces)
 - Map `*.mkd` files to `Markdown` syntax, see issue #3060 and PR #3061 (@einfachIrgendwer0815)
+- Add syntax mapping for CITATION.cff, see #3103 (@Ugzuzg)
 - Add syntax mapping for kubernetes config files #3049 (@cyqsimon)
 - Adds support for pipe delimiter for CSV #3115 (@pratik-m)
 - Add syntax mapping for `/etc/pacman.conf` #2961 (@cyqsimon)
diff --git a/src/syntax_mapping/builtins/common/50-citation.toml b/src/syntax_mapping/builtins/common/50-citation.toml
new file mode 100644
index 0000000000..aa06b5b9ae
--- /dev/null
+++ b/src/syntax_mapping/builtins/common/50-citation.toml
@@ -0,0 +1,2 @@
+[mappings]
+"YAML" = ["CITATION.cff"]


Test patch: