Skip to content

Commit 41cf043

Browse files
authored
Detect .git/modules/*/config as language git-config (#15295)
These files are config files for Git submodules
1 parent d12a48a commit 41cf043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

languages.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-regex", rev = "e1cf
22402240
[[language]]
22412241
name = "git-config"
22422242
scope = "source.gitconfig"
2243-
file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }]
2243+
file-types = ["gitconfig", { glob = ".gitmodules" }, { glob = "gitconfig" }, { glob = ".gitconfig" }, { glob = ".git/config" }, { glob = ".config/git/config" }, { glob = ".git/modules/*/config" }]
22442244
injection-regex = "git-config"
22452245
comment-token = "#"
22462246
indent = { tab-width = 4, unit = "\t" }

0 commit comments

Comments
 (0)