-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Describe the bug
dprint-plugin-dockerfile version: 0.3.0
Input Code
RUN \
# Print Hello World!
echo 'Hello World!'
Expected Output
RUN \
# Print Hello World!
echo 'Hello World!'
Actual Output
❌ Error:
[ERROR] Error formatting text. Error: unable to parse Dockerfile: unexpected token comment
RUN \
# Print Hello World!
echo 'Hello World!'
Additional Information
if I move the comment up or down, it'll work fine but it breaks only when the comment sits under RUN \
directly
# Print Hello World!
RUN \
echo 'Hello World!' \
# Print Hello World!
echo 'Hello World!'
Output:
# Print Hello World!
RUN echo 'Hello World!' \
# Print Hello World!
echo 'Hello World!'
Metadata
Metadata
Assignees
Labels
No labels