Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlight AS keyword #39

Open
kasperk81 opened this issue Apr 3, 2023 · 3 comments
Open

highlight AS keyword #39

kasperk81 opened this issue Apr 3, 2023 · 3 comments

Comments

@kasperk81
Copy link

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
Copy link
Collaborator

Try Dockerfile (with Bash) syntax?

@kasperk81
Copy link
Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants