asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

highlight `AS` keyword #39

Open kasperk81 opened 1 year ago

kasperk81 commented 1 year ago

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

princemaple commented 1 year ago

Try Dockerfile (with Bash) syntax?

kasperk81 commented 1 year ago

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 ...)

princemaple commented 1 year ago

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.