fisheva / Eva-Theme

A comfortable and semantic theme.
https://marketplace.visualstudio.com/items?itemName=fisheva.eva-theme
MIT License
451 stars 38 forks source link

false syntax highlight color in dart #26

Closed fajaryanw closed 4 years ago

fajaryanw commented 5 years ago

Issue Type: Bug

I create a .dart file. use Eva Light Theme.

add code like this :

class Game {

  static int width = 10;
  static int height = 20;
  static int cellsize = 30;

  static int linesCleared;

  static List<List<int>> boardState;
  static List<int> rowState;
}

at line 9 static List<List<int>> boardState;. last >> in blue color. it should in purple color.

dart

fisheva commented 5 years ago

Thanks for your issue! But, unfortunately, the problem is that VSCode recognizes ">>" as a whole, not two ">", so their scope values are different. I can't set the colors of the two scope values to be the same to make here the same. So this bug can't be solved at the theme level. It's a bug of VSCode character recognition algorithm.

Press "Ctrl+Shift+P" (Windows) or "Cmd+Shift+P" (Mac) and select "Inspect TM Scopes" to view the scope values of all codes. image image Actually, both of their scope values are wrong, they are not "comparison" nor "bitwise", they should be "brace" like "()" or "[ ]". I hope the VSCode team can fix such bugs someday.