asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

Dockerfile with bash misses some bash commands #41

Closed alison985 closed 10 months ago

alison985 commented 10 months ago
RUN apt update && \
apt-get install -y vim

will only highlight the second line as bash. But apt update && \ is also bash and is not highlighted.

princemaple commented 10 months ago

I cannot reproduce the error. However I got the opposite behavior and it's expected:

image

To fix this, simply indent the second line:

image

alison985 commented 10 months ago

Indent, got it. Thank you!