Angular JS syntax highlight inconsistent?


#1

Why does the new syntax hghlighting for Angular JS (especially as attributes) work in some places but not others?

See below:

The top-most ng-click scopes as:

But the one in the LI is


#2

Unrelated, but how do you get the current scope, this way ?


#3

It’s the editor:log-cursor-scope command. It logs the scope at the position of the cursor.


#4

command-option-p


#5

Any update on this? Against which package should I log an issue?


#6

Do you have a package installed that provides Angular-specific highlighting? If so, I would file the Issue there.


#7

This just “appeared” after a major Atom update (2.00? 2.10? whatever came out 5/28).

All of a sudden my documents started being “HTML Angular” documents, not “HTML”.

I changed no settings and added no packages.


#8

That’s interesting because as far as I can tell, the HTML (Angular) grammar is only provided by the angularjs package. (Which isn’t a pre-installed package.)


#9

Makes sense. I had no idea they added this feature. I logged a bug.