[TxMt] "language" problem
Allan Odgaard
throw-away-2 at macromates.com
Sun Mar 9 09:35:36 UTC 2008
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'; };
};
}
);
},
More information about the textmate
mailing list