File indexing completed on 2024-05-12 04:02:16

0001 /*
0002     SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H
0008 #define KSYNTAXHIGHLIGHTING_ABSTRACTHIGHLIGHTER_P_H
0009 
0010 #include "definition.h"
0011 #include "theme.h"
0012 
0013 namespace KSyntaxHighlighting
0014 {
0015 class ContextSwitch;
0016 class StateData;
0017 class State;
0018 
0019 class AbstractHighlighterPrivate
0020 {
0021 public:
0022     AbstractHighlighterPrivate();
0023     virtual ~AbstractHighlighterPrivate();
0024 
0025     void ensureDefinitionLoaded();
0026     bool switchContext(StateData *&data, const ContextSwitch &contextSwitch, QStringList &&captures, State &state, bool &isSharedData);
0027 
0028     Definition m_definition;
0029     Theme m_theme;
0030 };
0031 
0032 }
0033 
0034 #endif