volt-sublime-textmate
volt-sublime-textmate copied to clipboard
Incorrect detecting of syntax highlighting
When I create a new PHP file (f.e. index.php) and paste some php code in it which starts with <?php this plugin seems to detect it as Volt and changes the syntax to HTML (Volt).
We work with hundreds of php files daily. For example: https://github.com/phalcon/cphalcon/tree/master/tests.
We have never faced such a problem over the last two years.
Well.. uninstalling this plugin solved my problem. But as I said, this only happens when PASTING php code into a new unsaved .php file. If I type the <?php manually to the top, this doesn't happen.
It's because of this:
https://github.com/phalcon/volt-sublime-textmate/blob/master/Volt/HTML%20(Volt).tmLanguage#L11
Removing the php part from there will resolve this.