Changeset View
Changeset View
Standalone View
Standalone View
src/backends/maxima/maximahighlighter.h
Show All 28 Lines | 28 | { | |||
---|---|---|---|---|---|
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | public: | 30 | public: | ||
31 | MaximaHighlighter( QObject* parent, MaximaSession* session); | 31 | MaximaHighlighter( QObject* parent, MaximaSession* session); | ||
32 | ~MaximaHighlighter() override = default; | 32 | ~MaximaHighlighter() override = default; | ||
33 | 33 | | |||
34 | protected: | 34 | protected: | ||
35 | void highlightBlock(const QString &text) override; | 35 | void highlightBlock(const QString &text) override; | ||
36 | 36 | | |||
37 | Cantor::DefaultHighlighter::Section findNextCodeSection(const QString& text, Cantor::DefaultHighlighter::Section previous) override; | ||||
38 | | ||||
37 | QString nonSeparatingCharacters() const override; | 39 | QString nonSeparatingCharacters() const override; | ||
38 | private Q_SLOTS: | 40 | private Q_SLOTS: | ||
39 | void addUserVariables(const QStringList variables); | 41 | void addUserVariables(const QStringList variables); | ||
40 | void removeUserVariables(const QStringList variables); | 42 | void removeUserVariables(const QStringList variables); | ||
41 | 43 | | |||
42 | void addUserFunctions(const QStringList functions); | 44 | void addUserFunctions(const QStringList functions); | ||
43 | void removeUserFunctions(const QStringList functions); | 45 | void removeUserFunctions(const QStringList functions); | ||
44 | 46 | | |||
45 | private: | 47 | private: | ||
46 | QRegExp commentStartExpression; | 48 | QRegExp commentStartExpression; | ||
47 | QRegExp commentEndExpression; | 49 | QRegExp commentEndExpression; | ||
48 | }; | 50 | }; | ||
49 | 51 | | |||
50 | #endif /* _MAXIMAHIGHLIGHTER_H */ | 52 | #endif /* _MAXIMAHIGHLIGHTER_H */ |