It seems that when examining the scope of a PHP file, whose extension is .php
, and whose syntax is correctly recognised as PHP
, Sublime will still report it as text.html.basic
(among others). This makes my HTML snippet always execute in it.
Since what I want is to make a snippet that has todo
as its tabTrigger
, to insert a commented out tag, obviously i need it to be different for the different filetypes (<!-- -->
or /* */
). But this way, the <!-- -->
comment gets inserted into the PHP file...
Is there an extra detail i'm missing, or is this a bug?