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
510 B
C++
23 lines
510 B
C++
/*
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Export.h>
|
|
#include <LibSyntax/Highlighter.h>
|
|
|
|
namespace JS {
|
|
|
|
class JS_API SyntaxHighlighter : public Syntax::Highlighter {
|
|
public:
|
|
SyntaxHighlighter() = default;
|
|
virtual ~SyntaxHighlighter() override = default;
|
|
|
|
virtual Syntax::Language language() const override { return Syntax::Language::JavaScript; }
|
|
virtual void rehighlight(Palette const&) override;
|
|
};
|
|
|
|
}
|