[TxMt] CSV Language Bundle (can't get text.csv scope)
Allan Odgaard
throw-away-1 at macromates.com
Fri Feb 23 09:26:48 UTC 2007
On 22. Feb 2007, at 19:30, Fritz Anderson wrote:
> [...] I added a new bundle and named it CSV. Here is the language
> spec:
>
> =============
> { scopeName = 'text.csv';
> fileTypes = ( 'csv' );
> }
> =============
>
> [...] Clearly my language spec does not suffice to give the
> contents of a .csv file text.csv scope. I'm missing something. What
> is it?
I guess you uncovered a bug -- if the language grammar has no
patterns, it is effectively not used. So if you change your grammar
to the following, it will work as expected:
{ scopeName = 'text.csv';
fileTypes = ( 'csv' );
patterns = ( );
}
More information about the textmate
mailing list