From e56d3abb0ac76ea6e94333b7b70de092d309a912 Mon Sep 17 00:00:00 2001
From: Ben Brown <ben@demerara.io>
Date: Sat, 15 Mar 2025 18:10:24 +0000
Subject: [PATCH] languages: Also include `gitconfig` as an extension (#13115)

This is useful for maintaining syntax highlighting when editing git
config files which have been included via `include` or `includeIf`.
---
 languages.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/languages.toml b/languages.toml
index 8eae5a51..87413344 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1843,7 +1843,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-regex", rev = "e1cf
 [[language]]
 name = "git-config"
 scope = "source.gitconfig"
-file-types = [{ glob = ".gitmodules" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }]
+file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }]
 injection-regex = "git-config"
 comment-token = "#"
 indent = { tab-width = 4, unit = "\t" }