<font class="Apple-style-span" face="arial, helvetica, sans-serif">Apparently, it is an issue of PHP only. The following language definition highlights Ruby and Serpent languages in my text, but not PHP insertions! </font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; ">What the hell is wrong here?</span><div>

<div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><div><font class="Apple-style-span" color="#000099">{</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">        </font></span><font class="Apple-style-span" color="#000099">scopeName = 'source.phpruby.serpent';</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">     </font></span><font class="Apple-style-span" color="#000099">fileTypes = ( 'serpent', 'serpent.php', 'serpent.erb' );</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">     </font></span><font class="Apple-style-span" color="#000099">patterns = (</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">             </font></span><font class="Apple-style-span" color="#000099">{</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">       </font></span><font class="Apple-style-span" color="#000099">begin = '<\?(php|=)?';</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">                     </font></span><font class="Apple-style-span" color="#000099">end = '\?>';</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">                  </font></span><font class="Apple-style-span" color="#000099">patterns = ( { include = 'source.php'; } );</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">             </font></span><font class="Apple-style-span" color="#000099">},</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">               </font></span><font class="Apple-style-span" color="#000099">{</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">       </font></span><font class="Apple-style-span" color="#000099">begin = '<%';</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">                     </font></span><font class="Apple-style-span" color="#000099">end = '%>';</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">                   </font></span><font class="Apple-style-span" color="#000099">patterns = ( { include = 'source.ruby'; } );</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">             </font></span><font class="Apple-style-span" color="#000099">},</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">               </font></span><font class="Apple-style-span" color="#000099">{</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">       </font></span><font class="Apple-style-span" color="#000099">include = 'source.serpent'; },</font></div>

<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#000099">     </font></span><font class="Apple-style-span" color="#000099">);</font></div><div><font class="Apple-style-span" color="#000099">}</font></div>

<div><br></div><div><br></div></font><div class="gmail_quote">On Tue, Jun 8, 2010 at 14:10, nuke <span dir="ltr"><<a href="mailto:sila.razuma@gmail.com">sila.razuma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5"><div class="gmail_quote"><font face="arial, helvetica, sans-serif">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).<br>



</font><div><div></div><div>
<br><br><div class="gmail_quote">On Tue, Jun 8, 2010 at 13:46, Tobias Jung <span dir="ltr"><<a href="mailto:newsgr@tobiasjung.net" target="_blank">newsgr@tobiasjung.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



nuke <<a href="mailto:sila.razuma@gmail.com" target="_blank">sila.razuma@gmail.com</a>> wrote (Mon, 7 Jun 2010 22:57:01 +0200):<br>
<div><br>
> Repeating my question:<br>
> Thanks to your answers, I can now highlight PHP insertions in my custom<br>
> language by copying the repository and delimiters pattern from PHP language<br>
> definition. However, I would like to avoid this unnecessary duplication. Is<br>
> it possible to simply refer the PHP definitions without copying them to my<br>
> language?<br>
<br>
</div>Well, install the "Edit in TextMate" input manager...<br>
<br>
Kind regards,<br>
<font color="#888888">Tobias Jung<br>
</font><div><div></div><div><br><br></div></div></blockquote></div></div></div></div></div></div></blockquote></div></div></div></div>