Can you use wildcards in customFileTypes


#1

I’d like to do this:

customFileTypes:
  'source.dockerfile': [
    'Dockerfile*'
  ]

But it doesn’t seem to recognize the wildcard at the end


#2

I wanted to test RegExp in order to answer your post, but then I noticed that all the files starting with Dockerfile were already recognized as Docker files. Can you maybe give more specific example for a name you’d like to use?


#3

we have several files named Dockerfile-foo or Dockerfile-bar. using the snippet above, they are not recognized. It seems as if the wildcard isn’t recognized


#4

From the language-docker README:

Highlighting based on wildcards is not supported in Atom. You can use package file-types with this in you config.cson to enable it.

 "file-types": {
   "^Dockerfile\\..*$": "source.dockerfile"
 }