blob: 7a267f4cc7ffed468a2721ce6daecbb3d429ac09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#pragma once
#include <texteditor/syntaxhighlighter.h>
namespace GLSL {
class Token;
}
namespace EffectComposer {
class SyntaxHighlighter : public TextEditor::SyntaxHighlighter
{
using Super = TextEditor::SyntaxHighlighter;
public:
SyntaxHighlighter();
protected:
void highlightBlock(const QString &text) override;
private:
void highlightToken(const GLSL::Token &token);
};
} // namespace EffectComposer
|