Warning, file /education/cantor/src/backends/python/pythonhighlighter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-License-Identifier: GPL-2.0-or-later 0003 SPDX-FileCopyrightText: 2013 Filipe Saraiva <filipe@kde.org> 0004 */ 0005 0006 #ifndef _PYTHONHIGHLIGHTER_H 0007 #define _PYTHONHIGHLIGHTER_H 0008 0009 #include <QRegularExpression> 0010 0011 #include "defaulthighlighter.h" 0012 class PythonSession; 0013 0014 class PythonHighlighter : public Cantor::DefaultHighlighter 0015 { 0016 Q_OBJECT 0017 0018 public: 0019 explicit PythonHighlighter(QObject* parent, PythonSession* session); 0020 ~PythonHighlighter() override = default; 0021 0022 protected: 0023 void highlightBlock(const QString& text) override; 0024 0025 private: 0026 QRegularExpression commentStartExpression; 0027 QRegularExpression commentEndExpression; 0028 }; 0029 0030 #endif /* _PYTHONHIGHLIGHTER_H */