|
|
@ -1,42 +1,48 @@
|
|
|
|
(string_array "," @punctuation.delimiter)
|
|
|
|
(string_array "," @punctuation.delimiter)
|
|
|
|
(string_array ["[" "]"] @punctuation.bracket)
|
|
|
|
(string_array ["[" "]"] @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
|
|
(arg_command "ARG" @keyword)
|
|
|
|
[
|
|
|
|
(build_command "BUILD" @keyword)
|
|
|
|
"ARG"
|
|
|
|
(cache_command "CACHE" @keyword)
|
|
|
|
"AS LOCAL"
|
|
|
|
(cmd_command "CMD" @keyword)
|
|
|
|
"BUILD"
|
|
|
|
(copy_command "COPY" @keyword)
|
|
|
|
"CACHE"
|
|
|
|
(do_command "DO" @keyword)
|
|
|
|
"CMD"
|
|
|
|
(entrypoint_command "ENTRYPOINT" @keyword)
|
|
|
|
"COPY"
|
|
|
|
(env_command "ENV" @keyword)
|
|
|
|
"DO"
|
|
|
|
(expose_command "EXPOSE" @keyword)
|
|
|
|
"ENTRYPOINT"
|
|
|
|
(from_command "FROM" @keyword)
|
|
|
|
"ENV"
|
|
|
|
(from_dockerfile_command "FROM DOCKERFILE" @keyword)
|
|
|
|
"EXPOSE"
|
|
|
|
(function_command "FUNCTION" @keyword)
|
|
|
|
"FROM DOCKERFILE"
|
|
|
|
(git_clone_command "GIT CLONE" @keyword)
|
|
|
|
"FROM"
|
|
|
|
(host_command "HOST" @keyword)
|
|
|
|
"FUNCTION"
|
|
|
|
(import_command "IMPORT" @keyword)
|
|
|
|
"GIT CLONE"
|
|
|
|
(label_command "LABEL" @keyword)
|
|
|
|
"HOST"
|
|
|
|
(let_command "LET" @keyword)
|
|
|
|
"IMPORT"
|
|
|
|
(project_command "PROJECT" @keyword)
|
|
|
|
"LABEL"
|
|
|
|
(run_command "RUN" @keyword)
|
|
|
|
"LET"
|
|
|
|
(save_artifact_command ["SAVE ARTIFACT" "AS LOCAL"] @keyword)
|
|
|
|
"PROJECT"
|
|
|
|
(save_image_command "SAVE IMAGE" @keyword)
|
|
|
|
"RUN"
|
|
|
|
(set_command "SET" @keyword)
|
|
|
|
"SAVE ARTIFACT"
|
|
|
|
(user_command "USER" @keyword)
|
|
|
|
"SAVE IMAGE"
|
|
|
|
(version_command "VERSION" @keyword)
|
|
|
|
"SET"
|
|
|
|
(volume_command "VOLUME" @keyword)
|
|
|
|
"USER"
|
|
|
|
(with_docker_command "WITH DOCKER" @keyword)
|
|
|
|
"VERSION"
|
|
|
|
(workdir_command "WORKDIR" @keyword)
|
|
|
|
"VOLUME"
|
|
|
|
|
|
|
|
"WORKDIR"
|
|
|
|
|
|
|
|
] @keyword
|
|
|
|
|
|
|
|
|
|
|
|
(for_command ["FOR" "IN" "END"] @keyword.control.repeat)
|
|
|
|
(for_command ["FOR" "IN" "END"] @keyword.control.repeat)
|
|
|
|
|
|
|
|
|
|
|
|
(if_command ["IF" "END"] @keyword.control.conditional)
|
|
|
|
(if_command ["IF" "END"] @keyword.control.conditional)
|
|
|
|
(elif_block ["ELSE IF"] @keyword.control.conditional)
|
|
|
|
(elif_block ["ELSE IF"] @keyword.control.conditional)
|
|
|
|
(else_block ["ELSE"] @keyword.control.conditional)
|
|
|
|
(else_block ["ELSE"] @keyword.control.conditional)
|
|
|
|
|
|
|
|
|
|
|
|
(import_command ["IMPORT" "AS"] @keyword.control.import)
|
|
|
|
(import_command ["IMPORT" "AS"] @keyword.control.import)
|
|
|
|
|
|
|
|
|
|
|
|
(try_command ["TRY" "FINALLY" "END"] @keyword.control.exception)
|
|
|
|
(try_command ["TRY" "FINALLY" "END"] @keyword.control.exception)
|
|
|
|
(wait_command ["WAIT" "END"] @keyword.control)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(wait_command ["WAIT" "END"] @keyword.control)
|
|
|
|
|
|
|
|
(with_docker_command ["WITH DOCKER" "END"] @keyword.control)
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
|
(comment)
|
|
|
|
(comment)
|
|
|
@ -65,10 +71,4 @@
|
|
|
|
(build_arg) @variable
|
|
|
|
(build_arg) @variable
|
|
|
|
(options (_) @variable.parameter)
|
|
|
|
(options (_) @variable.parameter)
|
|
|
|
|
|
|
|
|
|
|
|
(options (_ "=" @operator))
|
|
|
|
"=" @operator
|
|
|
|
(build_arg "=" @operator)
|
|
|
|
|
|
|
|
(arg_command "=" @operator)
|
|
|
|
|
|
|
|
(env_command "=" @operator)
|
|
|
|
|
|
|
|
(label "=" @operator)
|
|
|
|
|
|
|
|
(set_command "=" @operator)
|
|
|
|
|
|
|
|
(let_command "=" @operator)
|
|
|
|
|
|
|
|