I’ve noticed that a wide number of Atom packages seem to always use editor.getGrammar().name to limit scope, instead of editor.getGrammar().scopeName.
This is a big problem, as testing only against grammar name disregards nested scopes (e.g. text.html.someTemplatingLang). From my recollection, Textmate/Sublime packages always seemed to get this right, but it seems widespread in Atom packages.
I’m wondering if there is a reason for this, or if the packages should simply be changed?
Some examples of these issues: