[SVN] Adding ZPT scope to the HTML Bundle ok?

Tom Lazar tom at tomster.org
Mon Feb 5 17:52:14 UTC 2007


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
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>
>



Tom Lazar
http://tomster.org





More information about the textmate-dev mailing list