tree-sitter-dockerfile
tree-sitter-dockerfile copied to clipboard
Whitespace after line continuation breaks syntax highlighting
sorry if this is already known
RUN echo "foo" \<space>
echo "feh"
### no syntax hereafter due to space after \ above
Would have never caught that!
Glad I found this.
encountered this too
It's actually pretty surprising to me that docker accepts that. In most other languages I've used, the backslash is escaping only the next character, which is not a newline in this case. In any case, fixed it in #49
It's actually pretty surprising to me that docker accepts that. In most other languages I've used, the backslash is escaping only the next character, which is not a newline in this case. In any case, fixed it in #49
I wouldn't be surprised if the Dockerfile parser trims whitespace off the end of each line.