mirror of
https://github.com/RGBCube/serenity
synced 2025-07-04 12:07:35 +00:00
LibGUI: Add underlines to highlighting
This commit is contained in:
parent
b58893cfe1
commit
6d89f48dd8
6 changed files with 25 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue