Sublime Forum

tmLanguage and filename patterns

#1

I added the tmLanguage for CMake files. Cmake files are either .cmake files or files named CMakeLists.txt

In the Cmake.tmLanguage you have

<key>fileTypes</key> <array> <string>CMakeLists.txt</string> <string>cmake</string> </array>
But ST does see it for CMakeLists.txt files. I suppose it looks for that string as an extension.

Could we have support for that kind of filename patterns?

Thanks

0 Likes

#2

I’ve added this it the todo list, I’d like to see it too.

0 Likes

#3

thanks

0 Likes

#4

This should now be working fine in 20091023.

0 Likes

#5

i suggest adding emakefile and Emakefile to the official erlang tmLanguage file.

<key>fileTypes</key> <array> <string>Emakefile</string> <string>emakefile</string> <string>erl</string> <string>hrl</string> </array>

0 Likes

#6

Will do

0 Likes