camdencheek / tree-sitter-dockerfile

A tree-sitter grammar for Dockerfile
MIT License
73 stars 22 forks source link

support multiple parameters to ADD and COPY #44

Closed EricCrosson closed 1 year ago

EricCrosson commented 1 year ago

This commit adds support for parsing multiple parameters to both ADD and COPY commands.

For example, tree-sitter-dockerfile now correctly parses both of these lines from the dockerfile reference^1:

ADD --chown=myuser:mygroup --chmod=655 files* /somedir/
COPY --chown=myuser:mygroup --chmod=644 files* /somedir/

Closes #43

camdencheek commented 1 year ago

Looks great! Thanks for the contribution 🙂