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 | |
13 | namespace KSyntaxHighlighting |
14 | { |
15 | class ContextSwitch; |
16 | class StateData; |
17 | class State; |
18 | |
19 | class AbstractHighlighterPrivate |
20 | { |
21 | public: |
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 | |