On Feb 5, 2007, at 4:09 PM, Charilaos Skiadas wrote:

On Feb 5, 2007, at 9:58 AM, Tom Lazar wrote:

yes, in fact i include both, but depending on in which order, i either get one or the other to work... strange

not strange at all, since they match pretty similar things, and whoever gets there first matches first, not leaving the other a chance.

But since your syntax is not true html, you should probably not include the text.html grammar. Naming your grammar as you have now should be sufficient for most html commands and snippets to work, since they just look for a scope selector of text.html, and your grammar's top level scope contains that.

To put it simply, don't confuse scope selectors and rules. They are related, but not the same.

talk about an eye opener! suddenly it all makes sense ;-) also, by now including `xml.text.strict` i also get the desired highlighting of invalid xml:

http://dev.plone.org/collective/changeset/36850

my (work) life just got a great great deal better,

thanks!

tom


Haris



_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev





Tom Lazar
http://tomster.org



_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev

Reply via email to