Unnamed repository; edit this file 'description' to name the repository.
Detect .lfsconfig as git-config language (#16090)
.lfsconfig uses the same configuration file format as git, as documented here https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-config.adoc#lfsconfig Signed-off-by: Kristoffer Plagborg Bak Sørensen <[email protected]> Co-authored-by: Kristoffer Plagborg Bak Sørensen <[email protected]>
Kristoffer Plagborg Bak Sørensen 3 weeks ago
parent a473894 · commit 079a789
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 6d2cf900e..a5403e68b 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2299,7 +2299,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-regex", rev = "b2ac
[[language]]
name = "git-config"
scope = "source.gitconfig"
-file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }, { glob = ".git/modules/*/config" }, { glob = "config.worktree" }]
+file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }, { glob = ".git/modules/*/config" }, { glob = "config.worktree" }, { glob = ".lfsconfig" }]
injection-regex = "git-config"
comment-token = "#"
indent = { tab-width = 4, unit = "\t" }