A dockerfile like the following is tolerated by docker but not by tree-sitter-dockerfile:
FROM ubuntu
# blanks (spaces or tabs) after the backslash:
RUN \
echo hello
I don't see it documented at https://docs.docker.com/reference/dockerfile/#format
It is unusual for users to expect this to work but it happens by accident and their dockerfiles work as intended, so we may have to support it.
This was reported here: https://github.com/semgrep/semgrep/issues/9539
A dockerfile like the following is tolerated by
docker
but not by tree-sitter-dockerfile:I don't see it documented at https://docs.docker.com/reference/dockerfile/#format It is unusual for users to expect this to work but it happens by accident and their dockerfiles work as intended, so we may have to support it.