File indexing completed on 2024-05-12 15:50:01
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 0018 class AbstractHighlighterPrivate 0019 { 0020 public: 0021 AbstractHighlighterPrivate(); 0022 virtual ~AbstractHighlighterPrivate(); 0023 0024 void ensureDefinitionLoaded(); 0025 bool switchContext(StateData *data, const ContextSwitch &contextSwitch, const QStringList &captures); 0026 0027 Definition m_definition; 0028 Theme m_theme; 0029 }; 0030 0031 } 0032 0033 #endif