On Fri, Jul 9, 2010 at 08:02, Allan Odgaard wrote:
We made the PHP grammar itself match the construct, so with your grammar, those bits have been consumed by the including grammar, and the included PHP grammar will therefor be a no-op.
The reason we made it this way was so that the PHP grammar can sort of work when used as the root grammar, since lots of users insist on using it that way, despite our efforts¹ to educate ;)
¹ http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight
Com a ajuda de Deus, entendi meu erro e consegui fazer uma definição de trabalho (pelo menos destacando!):
{ scopeName = 'source.phpruby.serpent';
fileTypes = ( 'serpent', 'serpent.php', 'serpent.erb' );
patterns = (
{ begin = '<\?(php|=|)';
end = '\?>';
include = 'source.php';
},
{ begin = '<%';
end = '%>';
patterns = ( { include = 'source.ruby'; } );
},
{ include = 'source.serpent'; },
);
}