From 89790fa40c094999de51581fc2aa925a6036f1d1 Mon Sep 17 00:00:00 2001 From: Rolo Date: Thu, 29 Feb 2024 20:38:39 -0800 Subject: [PATCH] feat(languages): add support for `*.Dockerfile` `file-types` naming convention Current `file-types` only supports up to a `Dockerfile.frontend` naming scheme. With these changes `frontend.Dockerfile` now gives proper highlights and lsp actions. --- languages.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index a2c10d1145578..0d80655d0fd5f 100644 --- a/languages.toml +++ b/languages.toml @@ -1493,7 +1493,16 @@ name = "dockerfile" scope = "source.dockerfile" injection-regex = "docker|dockerfile" roots = ["Dockerfile", "Containerfile"] -file-types = [{ glob = "Dockerfile*" }, { glob = "dockerfile*" }, { glob = "Containerfile*" }, { glob = "containerfile*" }] +file-types = [ + "Dockerfile", + { glob = "Dockerfile*" }, + "dockerfile", + { glob = "dockerfile*" }, + "Containerfile", + { glob = "Containerfile*" }, + "containerfile", + { glob = "containerfile*" }, +] comment-token = "#" indent = { tab-width = 2, unit = " " } language-servers = [ "docker-langserver" ]