leomillon / uuid-generator-plugin

An IntelliJ Idea plugin to generate UUID (Universally Unique Identifier), ULID (Universally Unique Lexicographically Sortable Identifier) and CUID (Collision Resistant Unique Identifier)
MIT License
34 stars 13 forks source link

UUID not gray when commented #177

Open ChristopheQuintard opened 1 year ago

ChristopheQuintard commented 1 year ago

When code is commented in Intellij, it is gray and no part is bold. When the UUID plugin is installed, UUID are always colored and bold. image

leomillon commented 1 year ago

Hello!

Thanks for the report, it's indeed a problem with the current implementation: I parsed the code content without any specific language information just to be able to match any UUID format in it.

The good thing about this method is that it's working everywhere for everyone! The drawback is that it's very hard with this method to known what's the context "around" the found UUID.

To be honest: