mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-27 19:51:03 +00:00
A future patch will port LibSyntax away from UTF-32. The less code that needs to be ported, the easier that will be.
23 lines
521 B
C++
23 lines
521 B
C++
/*
|
|
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibSyntax/Highlighter.h>
|
|
#include <LibWeb/Export.h>
|
|
|
|
namespace Web::CSS {
|
|
|
|
class WEB_API SyntaxHighlighter : public Syntax::Highlighter {
|
|
public:
|
|
SyntaxHighlighter() = default;
|
|
virtual ~SyntaxHighlighter() override = default;
|
|
|
|
virtual Syntax::Language language() const override { return Syntax::Language::CSS; }
|
|
virtual void rehighlight(Palette const&) override;
|
|
};
|
|
|
|
}
|