-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
As per https://docs.docker.com/reference/dockerfile/#format, the following are equivalent
RUN echo hello \
# comment
world
RUN echo hello \
worldHowever, in Zed, after such a comment, the syntax highlighting misbehaves. The way it turns out depends on the command before the comment, e.g. with
FROM alpine
RUN echo hello \
# comment
world
ENTRYPOINT [ "/bin/sh" ]the only issue is that the worldtoken is highlighted as a shell command, whereas with
FROM alpine
ENV A=1 \
# comment
B=2
ENTRYPOINT [ "/bin/sh" ]the ENTRYPOINT (and all later tokens) are not highlighted, except some special characters like @ and :