clutcher / bh

Issue tracker for Better Highlights Intellij IDEA plugin
7 stars 0 forks source link

Changes in pattern recognition #131

Closed DenniLa2 closed 1 month ago

DenniLa2 commented 1 month ago

Hello

I have two templates: todo and todo!. Each has its own unique style. Previously, they were highlighted according to their respective styles. However, now they are both being highlighted with the style of todo. Is there a way to fix this? It's quite inconvenient. image Something strange was going on in our experiments. I've attached a video to show you.

https://github.com/user-attachments/assets/ff71be7d-6534-4dd8-9925-2955fba74e80

DenniLa2 commented 1 month ago

After saving the settings multiple times and restarting the IDE, the styles started to display correctly. image

clutcher commented 1 month ago

@DenniLa2 Are you already on latest 2024.1.32? Can you switch on it, as I made a huge changes in settings saving/persistence, which could fix or introduce that bug.

P.S. To make that thing working I used a small trick to sort tokens by length before saving. In such way I can eliminate explicity sorting on each hihglight pass (highlighting would be faster without explicit sorting on read). So if something is wrong it would be a bug on settings savings.