Docker.tmbundle icon indicating copy to clipboard operation
Docker.tmbundle copied to clipboard

highlight `AS` keyword

Open kasperk81 opened this issue 1 year ago • 3 comments

consider a multistage dockerfile:

FROM foo AS bar

RUN echo "hello from bar"

FROM baz
COPY --from=bar / /

i expect AS to be same color as RUN

kasperk81 avatar Apr 03 '23 18:04 kasperk81

Try Dockerfile (with Bash) syntax?

princemaple avatar Apr 06 '23 07:04 princemaple

it's used by linguist to highlight syntax on github https://github.com/github/linguist/blob/master/.gitmodules#L34 how we should change that to highlight all supported keywords alike? (FROM, AS, RUN, COPY ...)

kasperk81 avatar Apr 06 '23 13:04 kasperk81

Oh the TM file. https://github.com/asbjornenge/Docker.tmbundle/blob/master/Syntaxes/Dockerfile.tmLanguage we have to update this file. I only maintain the sublime version. Someone has to send a pr to modify the TM language.

princemaple avatar Apr 06 '23 13:04 princemaple