I am able to get highlighting by simply copying part of PHP lang definition for <? ?> delimiters and whole PHP repository.

Is there a way how to refer to PHP definitions? I hope it is possible, because having PHP + ruby + one more language will make it very messy.

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  



On Mon, Jun 7, 2010 at 18:48, Allan Odgaard <mailinglist@textmate.org> wrote:
On 7 Jun 2010, at 16:56, nuke wrote:

Could you try it yourself please? Does it work for you?

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.

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.

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.



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate