Does anyone know how exactly php files are scoped text.html.basic?
I believed that you would need to include the text.html.basic scope in the PHP.tmLanguage file like so:
<dict>
<key>include</key>
<string>text.html.basic</string>
</dict>
But I don’t see that anywhere in the base of the PHP.tmLanguage file.
I also see this bit in the comments:
<array>
<!-- .php files are actually opened with HTML.tmLanguage, this is just a bit of trickery to make it look like PHP.tmLanguage is used to open them -->
<string>php</string>
</array>
So are .php files actually opened by HTML.tmLanguage and if so, how does this “trickery” work?