mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/HTML: Expose HTML syntax highlighter's token kinds
This will be used for outputting the highlighted document as HTML.
This commit is contained in:
parent
07f0d9209a
commit
a231435321
|
|
@ -14,16 +14,6 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
enum class AugmentedTokenKind : u32 {
|
||||
AttributeName,
|
||||
AttributeValue,
|
||||
OpenTag,
|
||||
CloseTag,
|
||||
Comment,
|
||||
Doctype,
|
||||
__Count,
|
||||
};
|
||||
|
||||
bool SyntaxHighlighter::is_identifier(u64 token) const
|
||||
{
|
||||
if (!token)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,16 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
enum class AugmentedTokenKind : u32 {
|
||||
AttributeName,
|
||||
AttributeValue,
|
||||
OpenTag,
|
||||
CloseTag,
|
||||
Comment,
|
||||
Doctype,
|
||||
__Count,
|
||||
};
|
||||
|
||||
class SyntaxHighlighter : public Syntax::Highlighter {
|
||||
public:
|
||||
SyntaxHighlighter() = default;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user