1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00

Everywhere: Fix a bunch of typos

This commit is contained in:
Linus Groh 2022-05-29 11:50:10 +01:00 committed by Andreas Kling
parent f377951178
commit 173dcfb7cb
17 changed files with 23 additions and 23 deletions

View file

@ -107,7 +107,7 @@ static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, CodeC
return { palette.base_text(), false };
}
}
void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& pallete)
void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo> const& tokens_info, Gfx::Palette const& palette)
{
Vector<GUI::TextDocumentSpan> spans;
for (auto& token : tokens_info) {
@ -115,7 +115,7 @@ void SemanticSyntaxHighlighter::update_spans(Vector<CodeComprehension::TokenInfo
GUI::TextDocumentSpan span;
span.range.set_start({ token.start_line, token.start_column });
span.range.set_end({ token.end_line, token.end_column + 1 });
auto style = style_for_token_type(pallete, token.type);
auto style = style_for_token_type(palette, token.type);
span.attributes.color = style.color;
span.attributes.bold = style.bold;
span.is_skippable = token.type == CodeComprehension::TokenInfo::SemanticType::Whitespace;