[TxMt] Re: Recursive parsing?

Allan Odgaard mailinglist at textmate.org
Thu Apr 16 09:52:18 UTC 2009


On 9 Apr 2009, at 11:10, Andreas Pardeike wrote:

> [...]
> 		{	include = 'text.html.basic'; },
>
> I get syntax coloring for the html scope, but not for php.

Because when you include the HTML grammar, you delegate all further  
parsing (of tags) to this grammar, i.e. your custom <php> tags are  
then parsed by the included grammar.

Afraid you’ll have to role your own (full) grammar for this custom  
language (or edit the HTML grammar to skip parsing <php> tags).




More information about the textmate mailing list