Apparently, it is an issue of PHP only. The following language definition highlights Ruby and Serpent languages in my text, but not PHP insertions! What the hell is wrong here?
{ scopeName = 'source.phpruby.serpent'; fileTypes = ( 'serpent', 'serpent.php', 'serpent.erb' ); patterns = ( { begin = '<?(php|=)?'; end = '?>'; patterns = ( { include = 'source.php'; } ); }, { begin = '<%'; end = '%>'; patterns = ( { include = 'source.ruby'; } ); }, { include = 'source.serpent'; }, ); }
On Tue, Jun 8, 2010 at 14:10, nuke sila.razuma@gmail.com wrote:
I am sorry for the confusion. In the last question (see below) I mean, that I create a new language definition for highlighting some text format with php/ruby insertions in TextMate. I don't care now how it looks in BundleEditor (that was another question).
On Tue, Jun 8, 2010 at 13:46, Tobias Jung newsgr@tobiasjung.net wrote:
nuke sila.razuma@gmail.com wrote (Mon, 7 Jun 2010 22:57:01 +0200):
Repeating my question: Thanks to your answers, I can now highlight PHP insertions in my custom language by copying the repository and delimiters pattern from PHP
language
definition. However, I would like to avoid this unnecessary duplication.
Is
it possible to simply refer the PHP definitions without copying them to
my
language?
Well, install the "Edit in TextMate" input manager...
Kind regards, Tobias Jung