BalazsJako / ImGuiColorTextEdit

Colorizing text editor for ImGui
MIT License
1.42k stars 236 forks source link

only check for comments if the language definition has `mCommentStart` #150

Open bb1950328 opened 1 year ago

bb1950328 commented 1 year ago

If I don't define mCommentStart in my LanguageDefinition, everything is marked as comment. This PR fixes that by checking if mCommentStart is not empty.

(also simplified x == false to !x)