1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

LibGUI: Use themes for syntax highlighting

This commit is contained in:
Oriko 2020-03-16 01:05:06 +02:00 committed by Andreas Kling
parent 6da7fd9aab
commit 2b162ef794
14 changed files with 219 additions and 85 deletions

View file

@ -29,6 +29,7 @@
#include <AK/Noncopyable.h>
#include <AK/WeakPtr.h>
#include <LibGUI/TextDocument.h>
#include <LibGfx/Palette.h>
namespace GUI {
@ -51,7 +52,7 @@ public:
virtual ~SyntaxHighlighter();
virtual SyntaxLanguage language() const = 0;
virtual void rehighlight() = 0;
virtual void rehighlight(Gfx::Palette) = 0;
virtual void highlight_matching_token_pair();
virtual bool is_identifier(void*) const { return false; };