mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
LibGUI: Add underlines to highlighting
This commit is contained in:
parent
b58893cfe1
commit
6d89f48dd8
Notes:
sideshowbarker
2024-07-19 08:20:43 +09:00
Author: https://github.com/oriko1010
Commit: 6d89f48dd8
Pull-request: https://github.com/SerenityOS/serenity/pull/1429
Reviewed-by: https://github.com/awesomekling
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