dlang-community / D-Scanner

Swiss-army knife for D source code
Boost Software License 1.0
242 stars 80 forks source link

feat(highlight): support multiple themes #925

Closed snprajwal closed 1 year ago

snprajwal commented 1 year ago

Fixes #924

Implementing this led me to discover a bug, although I don't know if it has already been reported - initialising AAs with inlined structs will not parse:

immutable Theme[string] themes = [ "gruvbox": { "#000000", "#ffffff", ... } ];

This errors out during lexing, with a pretty long list of errors.