aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorMichael Davis2022-01-09 14:10:20 +0000
committerGitHub2022-01-09 14:10:20 +0000
commite0a99ae51ac099e30dc1039f9ac1059bba90a806 (patch)
treecb7d6f44c637b35c9cb7dcd744b643b2a2387a7c /languages.toml
parent97e12f5c5a26cbbc2eddffd91a2e506403d4d453 (diff)
add tree-sitter-git-config (#1426)
* add tree-sitter-git-config * add todo comment for improving filetype check
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index afee20aa..0a19bb04 100644
--- a/languages.toml
+++ b/languages.toml
@@ -545,3 +545,13 @@ scope = "source.regex"
injection-regex = "regex"
file-types = ["regex"]
roots = []
+
+[[language]]
+name = "git-config"
+scope = "source.gitconfig"
+roots = []
+# TODO: allow specifying file-types as a regex so we can read directory names (e.g. `.git/config`)
+file-types = [".gitmodules", ".gitconfig"]
+injection-regex = "git-config"
+comment-token = "#"
+indent = { tab-width = 4, unit = "\t" }