wesbos / cobalt2

Tweaked and refined Sublime Text theme based on the original cobalt.
1.57k stars 156 forks source link

Help with HTML attribute syntax highlighting #173

Open panphora opened 5 years ago

panphora commented 5 years ago

Hi, I've been running into the strangest bug with the syntax highlighting of HTML attributes...

Expected behavior

HTML attributes (e.g. href, class, type) should be yellow, like in this screenshot:

Screenshot 2019-06-06 22 25 34

Actual behavior

HTML attributes are blue (i.e. #9EFFFF), just like the HTML tag names:

Screenshot 2019-06-06 22 32 04

Steps to reproduce the problem

After this bug popped up with a version of Sublime with a lot of packages and themes, I decided to start with a fresh install. So, my steps were as follows:

  1. Uninstall Sublime Text 3 (and delete the directory ~/Library/Application Support/Sublime Text 3/)
  2. Restart my computer
  3. Reinstall Sublime Text 3
  4. Add the Cobalt 2 Theme through Package Control (it's currently my only package)

These are my only custom settings:

"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme",
"theme": "Cobalt2.sublime-theme",  

Strategies I've already tried

Specifications

Getting this to work would really help me. I'm currently working on a project that requires a lot of custom data- attributes and being able to tell them apart from the rest of the code at a glance would be very nice.

Any help would be greatly appreciated!!

panphora commented 5 years ago

I had to switch to a different theme in order to get HTML attribute highlighting working correctly. Any help on this would be awesome.