camdencheek / tree-sitter-dockerfile

A tree-sitter grammar for Dockerfile
MIT License
71 stars 20 forks source link

support multiple parameters to ADD and COPY #44

Closed EricCrosson closed 11 months ago

EricCrosson commented 11 months 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 11 months ago

Looks great! Thanks for the contribution 🙂