1/*
2 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#ifndef KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H
8#define KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H
9
10#include "definition.h"
11#include "theme.h"
12
13namespace KSyntaxHighlighting
14{
15class ContextSwitch;
16class StateData;
17class State;
18
19class AbstractHighlighterPrivate
20{
21public:
22 AbstractHighlighterPrivate();
23 virtual ~AbstractHighlighterPrivate();
24
25 void ensureDefinitionLoaded();
26 bool switchContext(StateData *&data, const ContextSwitch &contextSwitch, QStringList &&captures, State &state, bool &isSharedData);
27
28 Definition m_definition;
29 Theme m_theme;
30};
31
32}
33
34#endif
35

source code of syntax-highlighting/src/lib/abstracthighlighter_p.h