From d801a6693c3d475b3942f705d3ef48d7966bdf65 Mon Sep 17 00:00:00 2001 From: midnightexigent Date: Thu, 20 Oct 2022 14:13:56 +0000 Subject: Allow using path suffixes to associate language file-types (#2455) * feat(syntax): add strategy to associate file to language through pattern File path will match if it ends with any of the file types provided in the config. Also used this feature to add support for the .git/config and .ssh/config files * Add /etc/ssh/ssh_config to languages.toml * cargo xtask docgen * Update languages.md * Update languages.md * Update book/src/languages.md Co-authored-by: Ivan Tham * Update book/src/languages.md Co-authored-by: Ivan Tham Co-authored-by: Ivan Tham --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index 39b81731..ce3ba20a 100644 --- a/languages.toml +++ b/languages.toml @@ -1054,7 +1054,7 @@ 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"] +file-types = [".gitmodules", ".gitconfig", ".git/config", ".config/git/config"] injection-regex = "git-config" comment-token = "#" indent = { tab-width = 4, unit = "\t" } -- cgit v1.2.3-70-g09d2