kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

Last line - Format failed - Syntax errors #70

Closed shawinder closed 1 year ago

shawinder commented 5 years ago

In following example, Last line is throwing the formatting error and can be fixed by changing <? } ?> to <?php } ?>. Please fix to support it without manually doing an update.

<?php
if(1==1){
    // Do Something
} else {
?>
<html>
<body>
Body content
</body>
</html>
<? } ?>  // This line throws formatting error