aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoloEdits2024-03-03 17:56:18 +0000
committerGitHub2024-03-03 17:56:18 +0000
commitcc43e3521ed94e9d6e77c719c14073d3e7217c97 (patch)
treea6a69a1b342350e4faac039a12aad2598893c3f6
parent9267343830228490d379c90537ff1a6e4bba1260 (diff)
feat(languages): add support for `*.Dockerfile` `file-types` naming convention (#9772)
Current `file-types` only supports up to a `Dockerfile.frontend` naming scheme. With these changes `frontend.Dockerfile` now gives proper highlights and lsp actions.
-rw-r--r--languages.toml15
1 files changed, 14 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 7d859c2e..49672a30 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1494,7 +1494,20 @@ 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" },
+ { glob = "Dockerfile.*" },
+ "dockerfile",
+ { glob = "dockerfile" },
+ { glob = "dockerfile.*" },
+ "Containerfile",
+ { glob = "Containerfile" },
+ { glob = "Containerfile.*" },
+ "containerfile",
+ { glob = "containerfile" },
+ { glob = "containerfile.*" },
+]
comment-token = "#"
indent = { tab-width = 2, unit = " " }
language-servers = [ "docker-langserver" ]