Commit graph

6 commits

Author SHA1 Message Date
tvrinssen 1bf9daef46
Support heredocs (#45)
This adds support for heredocs in Dockerfiles. This required adding an external scanner to store the required state.

Co-authored-by: Camden Cheek <camden@ccheek.com>
2024-04-19 14:08:28 -06:00
Martin Jambon d8defd6796 Disallow whitespace in some multi-fragment constructs.
This is more correct and more robust when rules are reordered, see
https://github.com/camdencheek/tree-sitter-dockerfile/issues/18 and
https://github.com/camdencheek/tree-sitter-dockerfile/issues/19
2022-04-04 19:08:03 -07:00
Martin Jambon 37f059a2aa Prevent '--platform=xxx' after 'FROM' from being mistaken for the image name 2022-01-05 00:02:15 -08:00
Camden Cheek c281dc9daa
Fix image alias 2021-05-10 17:17:50 -06:00
Camden Cheek 3055288ce1
Add support for replacement vars 2021-05-10 15:16:09 -06:00
Camden Cheek b1fbbe6612
Initial working 2021-05-09 20:11:30 -06:00