dart-lang / dart-syntax-highlight

Tools and documentation for how Dart code is formatted
BSD 3-Clause "New" or "Revised" License
22 stars 11 forks source link

Add colouring for macros and augmentations #66

Closed DanTup closed 6 months ago

DanTup commented 6 months ago

This adds colouring for the new terms used in macros and augmentations.

The modifiers in the imports/library declarations are coloured the same way as import, library etc. and augmented is treated like super (I'm not completely sold on that, but otherwise it would just be uncoloured like other identifiers and I feel like it should stand out as being special).

image

(as usual, the colours may change a little if/when semantic tokens are available)

@jwren