Skip to content

Commit

Permalink
feat(language): add Dockerfile (@rammba) (#5926)
Browse files Browse the repository at this point in the history
I've added support for Dockerfile "language" even if it's not the
language actually. All words added are listed in the [official
docs](https://docs.docker.com/reference/dockerfile/#overview). I've put
it to the other group of languages.

P.S. File name is `docker_file.json`, because when I name it
`dockerfile.json`, my VS Code detects it as an actual dockerfile. Let me
know if name should be changed.
  • Loading branch information
rammba authored Oct 7, 2024
1 parent 529d424 commit 006af5a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/static/languages/_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@
"twitch_emotes",
"git",
"typing_of_the_dead",
"league_of_legends"
"league_of_legends",
"docker_file"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions frontend/static/languages/_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,5 @@
,"xhosa"
,"code_cobol"
,"code_common_lisp"
,"docker_file"
]
25 changes: 25 additions & 0 deletions frontend/static/languages/docker_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "docker_file",
"noLazyMode": true,
"words": [
"ADD",
"ARG",
"AS",
"CMD",
"COPY",
"ENTRYPOINT",
"ENV",
"EXPOSE",
"FROM",
"HEALTHCHECK",
"LABEL",
"MAINTAINER",
"ONBUILD",
"RUN",
"SHELL",
"STOPSIGNAL",
"USER",
"VOLUME",
"WORKDIR"
]
}

0 comments on commit 006af5a

Please sign in to comment.