[TxMt] Re: Not remembering syntax for certain filetypes

Allan Odgaard mailinglist at textmate.org
Wed Jul 13 08:47:26 UTC 2016


On 13 Jul 2016, at 9:47, George McGinley Smith wrote:

> […] I have the following:
>
> [ "templates/{**/,}*" attr.untitled ]
> fileType             = 'text.html.mustache'

This syntax should never have worked.

You need to either put a `.tm_properties` in each subfolder (templates, 
js, scss, and css) which has:

	[ attr.untitled ]
	fileType = «file type»

Or if you don’t mind targeting *all* files in each subfolder, you can 
leave out the `attr.untitled`, e.g.:

	[ templates/** ]
	fileType = 'text.html.mustache'

That said, it does seem like it would be nice to target both a file 
pattern and a scope selector, could possibly be done with `:` as 
separator, e.g.:

	[ templates/**:attr.untitled ]
	fileType = 'text.html.mustache'

I will consider such extension for a future update.

P.S. The `{**,}/*` syntax is redundant and `**` should match the same 
(though this might not have been the case in earlier versions of 
TextMate’s file pattern matcher).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160713/5c4f3016/attachment.html>


More information about the textmate mailing list