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:
parent
6da7fd9aab
commit
2b162ef794
14 changed files with 219 additions and 85 deletions
|
@ -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; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue