Skip to content

Commit

Permalink
deprecated --build-arg is used as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Mar 17, 2024
1 parent e8112e4 commit dd06e8c
Show file tree
Hide file tree
Showing 5 changed files with 42,745 additions and 43,567 deletions.
23 changes: 15 additions & 8 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ module.exports = grammar({
repeat(
field(
"option",
choice($.auto_skip, $.allow_privileged, $.pass_args, $.platform)
choice(
$.auto_skip,
$.allow_privileged,
$.build_arg_deprecated,
$.pass_args,
$.platform
)
)
),
choice($.target_ref, $._string),
Expand Down Expand Up @@ -598,13 +604,14 @@ module.exports = grammar({
),
build_arg: ($) =>
seq(
choice(
seq(
token(prec(5, "--")),
field("name", alias($._immediate_variable, $.variable))
),
token(prec(5, "--build-arg"))
),
token(prec(5, "--")),
field("name", alias($._immediate_variable, $.variable)),
choice(token.immediate(" "), token.immediate("=")),
field("value", $._string)
),
build_arg_deprecated: ($) =>
seq(
token(prec(5, "--build-arg")),
choice(token.immediate(" "), token.immediate("=")),
field("value", $._string)
),
Expand Down
94 changes: 60 additions & 34 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dd06e8c

Please sign in to comment.