Home Download Buy Blog Forum Support

tmLanguage and filename patterns

tmLanguage and filename patterns

Postby farfromrefuge on Tue Oct 20, 2009 1:29 pm

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

In the Cmake.tmLanguage you have
Code: Select all
<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
farfromrefuge
 
Posts: 38
Joined: Mon Oct 19, 2009 11:49 am

Re: tmLanguage and filename patterns

Postby jps on Wed Oct 21, 2009 8:46 pm

I've added this it the todo list, I'd like to see it too.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: tmLanguage and filename patterns

Postby farfromrefuge on Thu Oct 22, 2009 7:07 am

thanks
farfromrefuge
 
Posts: 38
Joined: Mon Oct 19, 2009 11:49 am

Re: tmLanguage and filename patterns

Postby jps on Fri Oct 23, 2009 12:15 pm

This should now be working fine in 20091023.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: tmLanguage and filename patterns

Postby vim on Fri Oct 23, 2009 1:38 pm

i suggest adding emakefile and Emakefile to the official erlang tmLanguage file.
Code: Select all
   <key>fileTypes</key>
   <array>
      <string>Emakefile</string>
      <string>emakefile</string>
      <string>erl</string>
      <string>hrl</string>
   </array>
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: tmLanguage and filename patterns

Postby jps on Fri Oct 23, 2009 1:42 pm

Will do
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 20 guests