Is it possible to create grammer that matches filetypes with a Regular Expression?


#1

I’m using Docker and if a repository includes multiple Dockerfile files then the convention is to name them Dockerfile.foo.

I could only find that grammars support file extension matching or whole file name.

Now I’d like to be able to define a regex or a glob pattern to grammar filetypes to achieve the wanted result :slight_smile:


#2

Not yet unfortunately…you might want to subscribe to https://github.com/atom/first-mate/issues/64 for updates.