[TxMt] "language" problem

Steven Ross nowhiding at gmail.com
Mon Mar 10 16:29:48 UTC 2008


ah, that would explain it... thanks, that will get me moving in the right
direction

On Sun, Mar 9, 2008 at 5:35 AM, Allan Odgaard <throw-away-2 at macromates.com>
wrote:

> On 8 Mar 2008, at 00:27, Steven Ross wrote:
>
> > Hmm for some reason this doesn't work either... strange.
>
> Are you aware of the single-line matching limitation of language
> grammars?
>
> So if 'cffunction' and 'name' are not on the same lines, you cannot
> match it with just a single rule.
>
> What you can do is something like:
>
>     { begin = '<cffunction'; end = '>';
>       patterns = (
>         { match = 'name=(["''])(.*?)\1';
>           captures = {
>             2 = { name = 'entity.name.function'; };
>           };
>         }
>       );
>      },
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



-- 
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] 267-482-4364
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20080310/c02c299b/attachment.html>


More information about the textmate mailing list