Allan Odgaard | 3 Jan 2012 23:17
Favicon

Re: "Scope" within a .tm_properties file?

On 01/01/2012, at 20.59, Charles Turner wrote:

> […] it'd be great to say something like this:
> 
> [ "cocoa/*" ]
> fileType = "source.forth"
> 
> ["cocoa/*.{txt, prf}"]
> fileType = "text.plain"

Except for the whitespace errors in second section, it should work, i.e.:

    [ "cocoa/*" ]
    fileType = "source.forth"

    [ "cocoa/*.{txt,prf}" ]
    fileType = "text.plain"

You can however also do:

    [ "!cocoa/*.*" ]
    fileType = "source.forth"

That then targets only files without extension.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate


Gmane