1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibCpp: Use east const style in Lexer and SyntaxHighlighter

This commit is contained in:
Max Wipfli 2021-06-03 23:17:34 +02:00 committed by Ali Mohammad Pur
parent 282a623853
commit d57d7bea1c
4 changed files with 9 additions and 9 deletions

View file

@ -13,7 +13,7 @@
namespace Cpp {
static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, Cpp::Token::Type type)
static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, Cpp::Token::Type type)
{
switch (type) {
case Cpp::Token::Type::Keyword:
@ -55,7 +55,7 @@ bool SyntaxHighlighter::is_navigatable(void* token) const
return cpp_token == Cpp::Token::Type::IncludePath;
}
void SyntaxHighlighter::rehighlight(const Palette& palette)
void SyntaxHighlighter::rehighlight(Palette const& palette)
{
auto text = m_client->get_text();
Cpp::Lexer lexer(text);