santaclose / ImGuiColorTextEdit

Colorizing text editor for ImGui
MIT License
67 stars 18 forks source link

Syntax Highlighting stops working when case sensitivity is toggled #22

Open HACKE-RC opened 6 months ago

HACKE-RC commented 6 months ago

When creating a language definition, after setting up all the keywords and identifiers, if I set the mCaseSensitive member of the LanguageDefinition struct to true (assuming my keywords and identifiers are in lowercase) the syntax highlighting works perfectly, as shown below: image

But, when I switch it to false, I expect it to highlight both the uppercase and lowercase identifiers in the same way, but it does not do that and syntax highlighting just stops working, as shown below: image

I suspect it has something to do with this line: image

But I'm not entirely sure.