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