| 1 | #cxx . . $ `<file>/include/internal/QPythonHighlighter.hpp`/pragma once |
| 2 | |
| 3 | // QCodeEditor |
| 4 | #include <QStyleSyntaxHighlighter>cxx . . $ `<file>/include/QStyleSyntaxHighlighter`/ // Required for inheritance |
| 5 | #include <QHighlightRule>cxx . . $ `<file>/include/QHighlightRule`/ |
| 6 | #include <QHighlightBlockRule>cxx . . $ `<file>/include/QHighlightBlockRule`/ |
| 7 | |
| 8 | // Qt |
| 9 | #include <QRegularExpression> |
| 10 | #include <QVector> |
| 11 | |
| 12 | class QSyntaxStylecxx . . $ QSyntaxStyle#; |
| 13 | |
| 14 | /** |
| 15 | * @brief Class, that describes Glsl code |
| 16 | * highlighter. |
| 17 | */ |
| 18 | class QPythonHighlightercxx . . $ QPythonHighlighter# : public QStyleSyntaxHighlightercxx . . $ QStyleSyntaxHighlighter# |
| 19 | { |
| 20 | Q_OBJECTcxx . . $ QPythonHighlighter#tr(75d9f1c324b4579d). |
| 21 | public: |
| 22 | |
| 23 | /** |
| 24 | * @brief Constructor. |
| 25 | * @param document Pointer to document. |
| 26 | */ |
| 27 | explicit QPythonHighlightercxx . . $ QPythonHighlighter#QPythonHighlighter(68d7deb16251beb9).(QTextDocumentcxx . . $ QTextDocument#* document=nullptr); |
| 28 | |
| 29 | protected: |
| 30 | void highlightBlockcxx . . $ QPythonHighlighter#highlightBlock(3520e46b33348bf6).(const QStringcxx . . $ QString#& text) override; |
| 31 | |
| 32 | private: |
| 33 | |
| 34 | QVectorcxx . . $ QVector#<QHighlightRulecxx . . $ QHighlightRule#> m_highlightRulescxx . . $ QPythonHighlighter#m_highlightRules.; |
| 35 | QVectorcxx . . $ QVector#<QHighlightBlockRulecxx . . $ QHighlightBlockRule#> m_highlightBlockRulescxx . . $ QPythonHighlighter#m_highlightBlockRules.; |
| 36 | |
| 37 | QRegularExpressioncxx . . $ QRegularExpression# m_includePatterncxx . . $ QPythonHighlighter#m_includePattern.; |
| 38 | QRegularExpressioncxx . . $ QRegularExpression# m_functionPatterncxx . . $ QPythonHighlighter#m_functionPattern.; |
| 39 | QRegularExpressioncxx . . $ QRegularExpression# m_defTypePatterncxx . . $ QPythonHighlighter#m_defTypePattern.; |
| 40 | }; |
| 41 |