The block PHP rule only matched a PHP open-tag if it was the first thing on the line, so <div><?php echo foo would be scoped as a single-line. Changed: U trunk/Bundles/HTML.tmbundle/Syntaxes/HTML.plist