<font class="Apple-style-span" face="arial, helvetica, sans-serif"><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Repeating my question:</font></div>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?<br>

</font>
<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 19:54, 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;">

<font face="arial, helvetica, sans-serif">I am able to get highlighting by simply copying part of PHP lang definition for <? ?> delimiters and whole PHP repository.</font><div><font face="arial, helvetica, sans-serif"><br>


</font></div><div><font face="arial, helvetica, sans-serif">Is there a way how to refer to PHP definitions? I hope it is possible, because having PHP + ruby + one more language </font><span style="font-family:arial, helvetica, sans-serif">will make it very messy.</span><div>


<font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">By the way, is there any human-friendly way to edit language definitions? The way how I see it now in BundleEditor makes me dizzy - small font, no highlighting,... it feels like a prehistorical Notepad, not TextMate  <br>


</font><div><div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 18:48, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On 7 Jun 2010, at 16:56, nuke wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you try it yourself please? Does it work for you?<br>
</blockquote>
<br></div>
As I mentioned, your grammar doesn’t do anything other than match PHP tags and include the PHP grammar, but it doesn’t assign any name/scope to the matched tags, so they shouldn’t be highlighted.<br>
<br>
I wouldn’t exactly call your grammar the simplest example since you match stuff w/o assigning a name and then include another grammar. Try the example from the manual.<br>
<br>
And press ⌃⇧P at various places in your document, this shows how TM parsed the current construct, *assuming* you actually assigned names to the parts matched.<div><div></div><div><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br>