LibGUI: Add underlines to highlighting

This commit is contained in:
Oriko 2020-03-12 16:36:25 +02:00 committed by Andreas Kling
parent b58893cfe1
commit 6d89f48dd8
Notes: sideshowbarker 2024-07-19 08:20:43 +09:00
6 changed files with 25 additions and 2 deletions

View file

@ -56,7 +56,7 @@ void CppSyntaxHighlighter::rehighlight()
span.color = style.color;
span.font = style.font;
span.is_skippable = token.m_type == CppToken::Type::Whitespace;
span.data = (void*)token.m_type;
span.data = reinterpret_cast<void*>(token.m_type);
spans.append(span);
}
m_editor->document().set_spans(spans);