LibGUI: Convert INISyntaxHighlighter to east-const
This commit is contained in:
parent
1f7e363b74
commit
cd92b73845
Notes:
sideshowbarker
2024-07-17 21:57:31 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/cd92b738456 Pull-request: https://github.com/SerenityOS/serenity/pull/11502
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, IniToken::Type type)
|
static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, IniToken::Type type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case IniToken::Type::LeftBracket:
|
case IniToken::Type::LeftBracket:
|
||||||
|
@ -36,7 +36,7 @@ bool IniSyntaxHighlighter::is_identifier(u64 token) const
|
||||||
return ini_token == GUI::IniToken::Type::Name;
|
return ini_token == GUI::IniToken::Type::Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void IniSyntaxHighlighter::rehighlight(const Palette& palette)
|
void IniSyntaxHighlighter::rehighlight(Palette const& palette)
|
||||||
{
|
{
|
||||||
auto text = m_client->get_text();
|
auto text = m_client->get_text();
|
||||||
IniLexer lexer(text);
|
IniLexer lexer(text);
|
||||||
|
|
|
@ -18,7 +18,7 @@ public:
|
||||||
virtual bool is_identifier(u64) const override;
|
virtual bool is_identifier(u64) const override;
|
||||||
|
|
||||||
virtual Syntax::Language language() const override { return Syntax::Language::INI; }
|
virtual Syntax::Language language() const override { return Syntax::Language::INI; }
|
||||||
virtual void rehighlight(const Palette&) override;
|
virtual void rehighlight(Palette const&) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual Vector<MatchingTokenPair> matching_token_pairs_impl() const override;
|
virtual Vector<MatchingTokenPair> matching_token_pairs_impl() const override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue