tree-sitter-dockerfile icon indicating copy to clipboard operation
tree-sitter-dockerfile copied to clipboard

A tree-sitter grammar for Dockerfile

Results 29 tree-sitter-dockerfile issues
Sort by recently updated
recently updated
newest added

The [RUN](https://docs.docker.com/engine/reference/builder/#run) instruction now supports options. This PR adds support for any future option, in addition to those officially supported at this time (`--mount`, `--network`, `--security`). The value of the...

There seems to be a parsing error here: ![Screenshot 2022-10-20 at 12 58 19](https://user-images.githubusercontent.com/7228095/196930862-a8a773a3-2608-490c-989e-47d08597a5a5.png) And the corresponding treesitter-playground buffer: ![Screenshot 2022-10-20 at 12 58 47](https://user-images.githubusercontent.com/7228095/196930967-6aecd699-c386-4e0e-b167-bab9af7bf534.png)

sorry if this is already known ``` RUN echo "foo" \ echo "feh" ### no syntax hereafter due to space after \ above ```

This change adds a Makefile and bindings to more easily build static/dynamic libraries for use in C-based languages. The implementation is intended to be as generic as possible, to make...

The ENV "Alternative Syntax" mentioned in https://docs.docker.com/engine/reference/builder/#env allows values to have spaces and span multiple lines. This is an example highlight before the grammar change: ![highlight_before](https://user-images.githubusercontent.com/579665/190172507-2f5e42c5-5c89-4b7c-952b-3591c8c5f466.png) Notice it breaks after...

Attempting to parse the file ```dockerfile LABEL A=$B ``` where the file contents do not contain a newline results in a segfault. If I run with `-d`, I get the...

The following causes an error: ```dockerfile RUN \ # comment echo foo ``` Whereas none of the following do: ```dockerfile RUN echo foo \ # comment echo foo ``` ```dockerfile...

Hi! Awesome work with this! I know it's relatively hot-off-the-press, but could we get [Docker Heredoc](https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/) support?

The Dockerfile reference includes an `escape` directive which lets you set the escape character for the file. This appears to be [fairly widely used](https://sourcegraph.com/search?q=context:global+file:Dockerfile%24+escape%3D&patternType=literal), particularly for Windows Dockerfiles. However, it...