• markup any < (regardless of what is followed) as invalid (in the HTML 
grammar), since this is the last rule, all known valid constructs are already 
matched — by doing it this way, we know for sure that including the HTML 
grammar when the next character is a <, will at least eat that single character
• in markdown, when including HTML for when the next character is <, apply the 
end-pattern (of look-behind on >) last (applyEndPatternLast) so e.g. a 
construct like: <TD></TD> want’t make the middle ‘><’ to into infinite (zero 
width) matching
• in markdown, change ([ ]?) to ([ ])?, that way, the match does not register 
(as a capture) if there is no space (rather than register as a zero-width 
capture)

Changed:
U   trunk/Bundles/HTML.tmbundle/Syntaxes/HTML.plist
U   trunk/Bundles/Markdown.tmbundle/Syntaxes/Markdown.plist

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

Reply via email to