Due to the selection of the current file's language by file extension the plugin is not able to work when a file has a different extension than the standard one of the programming language. This is often the case when using frameworks: e.g. a Drupal Theme File is a PHP file with the file extension .theme but syntax highlighting etc. still are able to treat it as a PHP file.
Therefore the language detection mechanism should also or even primarily check by the syntax highlighting selected, through it is very common that a developer would set the correct language when opening a non-standard-extension. Afaik the syntax highlighting selection in atom (footer) is a core feature.
Due to the selection of the current file's language by file extension the plugin is not able to work when a file has a different extension than the standard one of the programming language. This is often the case when using frameworks: e.g. a Drupal Theme File is a
PHP
file with the file extension.theme
but syntax highlighting etc. still are able to treat it as a PHP file.Therefore the language detection mechanism should also or even primarily check by the syntax highlighting selected, through it is very common that a developer would set the correct language when opening a non-standard-extension. Afaik the syntax highlighting selection in atom (footer) is a core feature.