1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

LibSyntax+TextEditor: Move Highlighter::language_string() out of class

This commit is contained in:
Karol Kosek 2022-12-19 19:13:18 +01:00 committed by Tim Flynn
parent 3c2227ceed
commit b00865bce5
3 changed files with 4 additions and 3 deletions

View file

@ -32,6 +32,8 @@ struct TextStyle {
bool const bold { false };
};
StringView language_to_string(Language);
class Highlighter {
AK_MAKE_NONCOPYABLE(Highlighter);
AK_MAKE_NONMOVABLE(Highlighter);
@ -40,7 +42,6 @@ public:
virtual ~Highlighter() = default;
virtual Language language() const = 0;
StringView language_string(Language) const;
virtual Optional<StringView> comment_prefix() const = 0;
virtual Optional<StringView> comment_suffix() const = 0;
virtual void rehighlight(Palette const&) = 0;