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.
This commit is contained in:
parent
9267343830
commit
cc43e3521e
1 changed files with 14 additions and 1 deletions
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue