asbjornenge / Docker.tmbundle

Dockerfile syntax
MIT License
75 stars 27 forks source link

Added first line detection for #16 #18

Closed andyneff closed 6 years ago

andyneff commented 6 years ago

It looks like submline-syntax only supports extension and first_line_match.

extension was already set to Dockerfile, which covers (.*\.)?[dD]ockerfile, but not [d|D]ockerfile\..+.

I added first line starts with either ^FROM or ^ARG. This won't work for people who put comments first, but that is the limit of what I know how about sublime-syntax ;)

asbjornenge commented 6 years ago

LGTM! 🎉

@andyneff you are added as collaborator, so feel free to merge when you see fit 👍