romannurik / SlidesCodeHighlighter

A little web app that helps you copy+paste syntax-highlighted code into slide decks.
https://romannurik.github.io/SlidesCodeHighlighter/
Apache License 2.0
1.06k stars 92 forks source link

Kotlin colors underscores differently in constants #26

Closed odbol closed 4 years ago

odbol commented 4 years ago

Enter this code:

val vibrator = context.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator

Observed:

The underscore "_" in "VIBRATOR_SERVICE" is yellow when the rest of the symbol is white.

Expected:

The entire symbol "VIBRATOR_SERVICE" should all be one color (white).

romannurik commented 4 years ago

hm weird... but you may want to file this in this repo since that's the highlighter we use