[SVN] Bundle commit 179

Chris Thomas chris at m-audio.com
Thu Feb 3 00:29:56 UTC 2005


On Feb 2, 2005, at 12:10 PM, Allan Odgaard wrote:

> Chris, I think keeping the language name explicit in the syntax files 
> rather have TM add it makes sense, because it allow for more 
> flexibility (e.g. if you want to “fool” it) and is also more 
> transparent. TextMate will however add “.$” to each name, that way one 
> can match:
>    sourcecode.c.$    // only C
>    sourcecode.c.*    // all below C, including C
>
> And when typing this identifier, “.*” should probably also be 
> implicit, so generally one would just do:
>    sourcecode.c      // all below C, including C

OK. I need to track down the language that doesn't have the language 
appended and fix it, then. I know there's at least one.

> For top level we could use sourcecode, text and markup.

I'd be tempted to shorten "sourcecode" to "source". Q: Where do 
makefiles and diff and iCalendar fit in?

> I'm not sure how to tackle the next part, mostly I'm thinking of C 
> which is:
>
>    c.source
>    c.header
>    c++.source
>    c++.header
>    objectice-c.source
>    objectice-c.header
>    objectice-c++.source
>    objectice-c++.header
>
> And in most cases, one want the same style/settings for all these, so 
> they should have a shared parent, but one level below sourcecode 
> preferably.
>
> So maybe (not sure if the header/source distinction needs to be made):
>    sourcecode.c
>    sourcecode.c.objective-c
>    sourcecode.c.c++
>    sourcecode.c.c++.objective-c

Looks fine to me. You'd then be able to select on 
"sourcecode(.*)objective-c$" for strictly ObjC stuff?

You may want to be able to distinguish between headers and sources from 
commands and snippets -- but it may be better to wait and see if 
there's a need.

Chris




More information about the textmate-dev mailing list