From 6d8f046fd047bca5f476cb48ec42fa9ce4e1d11f Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 15 Mar 2023 12:35:00 +0000 Subject: LibGfx+Userland: Make TextAttributes::underline_style optional Rather than having a style AND a field saying whether to use the style, just make the style Optional. --- Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibWeb/HTML/SyntaxHighlighter') diff --git a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp index 7b94272def..782750ff46 100644 --- a/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp +++ b/Userland/Libraries/LibWeb/HTML/SyntaxHighlighter/SyntaxHighlighter.cpp @@ -153,7 +153,7 @@ void SyntaxHighlighter::rehighlight(Palette const& palette) token->start_position().column + token_start_offset, token->start_position().line, token->start_position().column + token_start_offset + token->tag_name().length(), - { palette.syntax_keyword(), {}, false, true }, + { palette.syntax_keyword(), {}, true }, token->is_start_tag() ? AugmentedTokenKind::OpenTag : AugmentedTokenKind::CloseTag); token->for_each_attribute([&](auto& attribute) { -- cgit v1.2.3