Warning, file /education/cantor/src/backends/maxima/maximahighlighter.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: 2009 Alexander Rieder <alexanderrieder@gmail.com> 0004 */ 0005 0006 #ifndef _MAXIMAHIGHLIGHTER_H 0007 #define _MAXIMAHIGHLIGHTER_H 0008 0009 #include <QRegularExpression> 0010 0011 #include "defaulthighlighter.h" 0012 class MaximaSession; 0013 0014 class MaximaHighlighter : public Cantor::DefaultHighlighter 0015 { 0016 Q_OBJECT 0017 public: 0018 MaximaHighlighter( QObject* parent, MaximaSession* session); 0019 ~MaximaHighlighter() override = default; 0020 0021 protected: 0022 void highlightBlock(const QString &text) override; 0023 0024 QString nonSeparatingCharacters() const override; 0025 0026 private: 0027 QRegularExpression commentStartExpression; 0028 QRegularExpression commentEndExpression; 0029 }; 0030 0031 #endif /* _MAXIMAHIGHLIGHTER_H */