Describe the bug
Dockerfile syntax highlighting is incorrect for continuations including comments.
To Reproduce
vim Dockerfile
Example Dockerfile:
FROM debian:10.3
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y curl grep sed unzip git sudo jq gettext \
# Azure CLI
&& cd /tmp \
&& curl -sL https://aka.ms/InstallAzureCLIDeb | bash \
# Clean-up Apt Caches
&& apt-get clean \
&& rm -rf /var/lib/apt/lists
Expected behavior
The comments shouldn't count towards the highlight behaviour of continuation lines in RUN
as Docker ignores comments for the purposes of continuing lines.
The above script works when using docker build .
and so the highlighting should also show this.
Environment (please complete the following information):
I'm not sure the environment matter with this but here it is:
vim --version
.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
@ElvenSpellmaker just out of curiosity - what happens if you escape the line break, i.e. add a \
at the end of the comment line? That might be a temporary workaround.
@ElvenSpellmaker just out of curiosity - what happens if you escape the line break, i.e. add a
\
at the end of the comment line? That might be a temporary workaround.
@mark2185 That does work as a temporary workaround it seems. 🙂
Runtime files are maintainer by their maintainers (see the top at the file). In this case, I believe it is @honza