dempfi / ayu

🎨🖌 Modern Sublime Text theme
MIT License
4.29k stars 322 forks source link

syntax highlighting broken in yaml as of build ST4142 #273

Open DavidHe1127 opened 2 years ago

DavidHe1127 commented 2 years ago

The issue was seen and reported. And I'm not sure if a change needs to be made to fix it in ayu packages - see this. Therefore, I created this issue for you guys to have a further look and confirm.

danielskowronski commented 1 year ago

Sublime team probably won't fix that soon - https://github.com/sublimehq/Packages/issues/3288 is still open...

It's a matter of adding a new rule to colour scheme, for example in Ayu Dark assuming keys should be coloured as keywords:

{
  "name": "Mapping Key Names",
  "scope": "meta.property-name,meta.mapping.key string.quoted.double, meta.mapping.key string",
  "foreground": "#ff8f40"
}

Updated scope to catch JSON as well.