[TxMt] "swallow" key in language definition rule?

Allan Odgaard throw-away-1 at macromates.com
Sat Feb 25 09:23:06 UTC 2006


On 25/2/2006, at 7:53, Corey O'Connor wrote:

> What is the meaning of the "swallow" key for language rules?  I
> searched the archives, wiki and documentation but I couldn't find a
> good definition. Did I miss something?

It’s deprecated. But it is shorthand for having one sub-rule, e.g.:

    {  begin = '"'; end = '"';
       swallow = '\\.';
    }

Is the same as:

    {  begin = '"'; end = '"';
       patterns = (
          { match = '\\.'; }
       );
    }




More information about the textmate mailing list