Skip to content

Commit

Permalink
feat(languages): add support for *.Dockerfile file-types naming c…
Browse files Browse the repository at this point in the history
…onvention (helix-editor#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.
  • Loading branch information
RoloEdits authored Mar 3, 2024
1 parent 9267343 commit cc43e35
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit cc43e35

Please sign in to comment.