BalazsJako / ImGuiColorTextEdit

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

Fix a bug where multiline comments weren't being highlighted if the beginning of the multiline comment contained the same characters as a single line comment #130

Closed DeathEgg closed 1 year ago

DeathEgg commented 3 years ago

This specifically effects Lua:

-- This is a single line comment. It's handled fine.

--[[ This is a multi-line comment.
Because of the bug, only the first line
is highlighted as a comment currently.]]