Add config for Dockerfile parser (#1288)

This commit is contained in:
Camden Cheek 2021-05-11 10:03:36 -06:00 committed by GitHub
parent 9e0f764b67
commit 40ffe75bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,50 @@
[
"FROM"
"AS"
"RUN"
"CMD"
"LABEL"
"EXPOSE"
"ENV"
"ADD"
"COPY"
"ENTRYPOINT"
"VOLUME"
"USER"
"WORKDIR"
"ARG"
"ONBUILD"
"STOPSIGNAL"
"HEALTHCHECK"
"SHELL"
"MAINTAINER"
"CROSS_BUILD"
] @keyword
[
":"
"@"
] @operator
(comment) @comment
(image_spec
(image_tag
":" @punctuation.special)
(image_digest
"@" @punctuation.special))
(double_quoted_string) @string
(expansion
[
"$"
"{"
"}"
] @punctuation.special
)
((variable) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))

View file

@ -0,0 +1,3 @@
(comment) @comment
(shell_command) @bash