2024-04-03 03:30:15 +02:00
|
|
|
(string_array "," @punctuation.delimiter)
|
|
|
|
(string_array ["[" "]"] @punctuation.bracket)
|
|
|
|
|
2024-04-17 13:15:16 +02:00
|
|
|
[
|
|
|
|
"ARG"
|
|
|
|
"AS LOCAL"
|
|
|
|
"BUILD"
|
|
|
|
"CACHE"
|
|
|
|
"CMD"
|
|
|
|
"COPY"
|
|
|
|
"DO"
|
|
|
|
"ENTRYPOINT"
|
|
|
|
"ENV"
|
|
|
|
"EXPOSE"
|
|
|
|
"FROM DOCKERFILE"
|
|
|
|
"FROM"
|
|
|
|
"FUNCTION"
|
|
|
|
"GIT CLONE"
|
|
|
|
"HOST"
|
|
|
|
"IMPORT"
|
|
|
|
"LABEL"
|
|
|
|
"LET"
|
|
|
|
"PROJECT"
|
|
|
|
"RUN"
|
|
|
|
"SAVE ARTIFACT"
|
|
|
|
"SAVE IMAGE"
|
|
|
|
"SET"
|
|
|
|
"USER"
|
|
|
|
"VERSION"
|
|
|
|
"VOLUME"
|
|
|
|
"WORKDIR"
|
|
|
|
] @keyword
|
2024-04-03 03:30:15 +02:00
|
|
|
|
|
|
|
(for_command ["FOR" "IN" "END"] @keyword.control.repeat)
|
2024-04-17 13:15:16 +02:00
|
|
|
|
2024-04-03 03:30:15 +02:00
|
|
|
(if_command ["IF" "END"] @keyword.control.conditional)
|
|
|
|
(elif_block ["ELSE IF"] @keyword.control.conditional)
|
|
|
|
(else_block ["ELSE"] @keyword.control.conditional)
|
2024-04-17 13:15:16 +02:00
|
|
|
|
2024-04-03 03:30:15 +02:00
|
|
|
(import_command ["IMPORT" "AS"] @keyword.control.import)
|
2024-04-17 13:15:16 +02:00
|
|
|
|
2024-04-03 03:30:15 +02:00
|
|
|
(try_command ["TRY" "FINALLY" "END"] @keyword.control.exception)
|
|
|
|
|
2024-04-17 13:15:16 +02:00
|
|
|
(wait_command ["WAIT" "END"] @keyword.control)
|
|
|
|
(with_docker_command ["WITH DOCKER" "END"] @keyword.control)
|
2024-04-03 03:30:15 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
(comment)
|
|
|
|
(line_continuation_comment)
|
|
|
|
] @comment
|
|
|
|
|
|
|
|
(line_continuation) @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
(target_ref)
|
|
|
|
(target_artifact)
|
|
|
|
(function_ref)
|
|
|
|
] @function
|
|
|
|
|
|
|
|
(target (identifier) @function)
|
|
|
|
|
|
|
|
[
|
|
|
|
(double_quoted_string)
|
|
|
|
(single_quoted_string)
|
|
|
|
] @string
|
|
|
|
(unquoted_string) @string.special
|
|
|
|
(escape_sequence) @constant.character.escape
|
|
|
|
|
|
|
|
(variable) @variable
|
|
|
|
(expansion ["$" "{" "}" "(" ")"] @punctuation.special)
|
|
|
|
(build_arg) @variable
|
|
|
|
(options (_) @variable.parameter)
|
|
|
|
|
2024-04-17 13:15:16 +02:00
|
|
|
"=" @operator
|