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:
parent
282a623853
commit
d57d7bea1c
4 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue