From 1f15f01efa7f4a87c21b179ad4c82be73f5bbdd3 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Thu, 11 May 2023 15:02:55 -0700 Subject: [PATCH] Add .gitattributes to syntax highlight bst files as yaml Add a `.gitattributes` file to suggest GitHub Linguist to treat `.bst` files and `project.conf` file anywhere in the project as YAML for the purposes of syntax highlighting. If we agree with this change, we can also add something in our documentation to suggest users to add something similar to their projects. Although that suggestion will depend on the Git hosting service used. GitHub and GitLab both support overrides via `.gitattributes` file but use different keywords. See: * https://github.com/github-linguist/linguist/blob/master/docs/overrides.md#using-gitattributes * https://docs.gitlab.com/ee/user/project/highlighting.html#override-syntax-highlighting-for-a-file-type --- tests/.gitattributes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/.gitattributes diff --git a/tests/.gitattributes b/tests/.gitattributes new file mode 100644 index 000000000..16fa56eab --- /dev/null +++ b/tests/.gitattributes @@ -0,0 +1,2 @@ +*.bst linguist-language=yaml +project.conf linguist-language=yaml