Go to file
Eric Crosson c9351d9009 support multiple parameters to ADD and COPY
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]:

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

Closes #43

[^1]: https://docs.docker.com/engine/reference/builder/
2023-10-09 18:40:56 -05:00
bindings SPM support 2022-12-03 07:44:28 -05:00
corpus support multiple parameters to ADD and COPY 2023-10-09 18:40:56 -05:00
examples Add example 2021-05-11 08:48:53 -06:00
queries Set up config for 'tree-sitter highlight' and update highlight rules for strings 2023-06-23 14:12:34 -07:00
src support multiple parameters to ADD and COPY 2023-10-09 18:40:56 -05:00
.gitignore SPM support 2022-12-03 07:44:28 -05:00
binding.gyp Initial working 2021-05-09 20:11:30 -06:00
Cargo.toml docs: fix repository in Cargo.toml 2022-01-13 09:55:30 +01:00
grammar.js support multiple parameters to ADD and COPY 2023-10-09 18:40:56 -05:00
LICENSE Add MIT license 2021-05-11 20:01:30 -06:00
Makefile Makefile 2022-09-29 08:12:12 -04:00
package.json bump tree-sitter-cli version 2023-09-28 09:05:26 -06:00
Package.swift SPM support 2022-12-03 07:44:28 -05:00
README.md Update README.md 2021-06-29 08:36:36 -06:00

tree-sitter-dockerfile

Dockerfile grammar for tree-sitter.

An action shot of highlighting in neovim: Screen Shot 2021-06-29 at 08 35 19