From 5b627a6583918dee33467acb51067cb297ffa135 Mon Sep 17 00:00:00 2001 From: Manuel Mendez <708570+mmlb@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:22:07 -0500 Subject: [PATCH] Add .envrc.local and .envrc.private to env file-types These files are commonly used in .envrc with the source_env or source_env_if_exists functions. The direnv stdlib shows an example with .envrc.private and my use of sourcegraph showed .envrc, .envrc.local, and .envrc.private as the most popular basenames for these files. It would be nice to have the common files highlighted without having to extend the config locally. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index b2c2a7ef8037..dd849c477f3a 100644 --- a/languages.toml +++ b/languages.toml @@ -2362,7 +2362,7 @@ source = { git = "https://github.com/hh9527/tree-sitter-wit", rev = "c917790ab9a [[language]] name = "env" scope = "source.env" -file-types = [".env", ".env.local", ".env.development", ".env.production", ".env.dist", ".envrc"] +file-types = [".env", ".env.local", ".env.development", ".env.production", ".env.dist", ".envrc", ".envrc.local", ".envrc.private"] injection-regex = "env" comment-token = "#" indent = { tab-width = 4, unit = "\t" }