| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/reusable/jssyntaxhighlighter.h`/ |
| 2 | |
| 3 | #ifndef JSSYNTAXHIGHLIGHTER_H |
| 4 | #define JSSYNTAXHIGHLIGHTER_Hcxx . . $ `src/librssguard/gui/reusable/jssyntaxhighlighter.h:4:9`! |
| 5 | |
| 6 | #include <QRegularExpression> |
| 7 | #include <QSyntaxHighlighter> |
| 8 | |
| 9 | class JsSyntaxHighlightercxx . . $ JsSyntaxHighlighter# : public QSyntaxHighlightercxx . . $ QSyntaxHighlighter# { |
| 10 | Q_OBJECTcxx . . $ JsSyntaxHighlighter#qt_staticMetaObjectContent. |
| 11 | |
| 12 | public: |
| 13 | JsSyntaxHighlightercxx . . $ JsSyntaxHighlighter#JsSyntaxHighlighter(68d7deb16251beb9).(QTextDocumentcxx . . $ QTextDocument#* parent); |
| 14 | |
| 15 | QStringListcxx . . $ QStringList# jsKeywordscxx . . $ JsSyntaxHighlighter#jsKeywords(2b25566bdf736d18).() const; |
| 16 | |
| 17 | protected: |
| 18 | virtual void highlightBlockcxx . . $ JsSyntaxHighlighter#highlightBlock(3520e46b33348bf6).(const QStringcxx . . $ QString#& text) override; |
| 19 | |
| 20 | private: |
| 21 | struct HighlightingRulecxx . . $ JsSyntaxHighlighter#HighlightingRule# { |
| 22 | QRegularExpressioncxx . . $ QRegularExpression# m_patterncxx . . $ JsSyntaxHighlighter#HighlightingRule#m_pattern.; |
| 23 | QTextCharFormatcxx . . $ QTextCharFormat# m_formatcxx . . $ JsSyntaxHighlighter#HighlightingRule#m_format.; |
| 24 | }; |
| 25 | |
| 26 | QListcxx . . $ QList#<HighlightingRulecxx . . $ JsSyntaxHighlighter#HighlightingRule#> m_highlightingRulescxx . . $ JsSyntaxHighlighter#m_highlightingRules.; |
| 27 | |
| 28 | QRegularExpressioncxx . . $ QRegularExpression# m_commentStartExpressioncxx . . $ JsSyntaxHighlighter#m_commentStartExpression.; |
| 29 | QRegularExpressioncxx . . $ QRegularExpression# m_commentEndExpressioncxx . . $ JsSyntaxHighlighter#m_commentEndExpression.; |
| 30 | |
| 31 | QTextCharFormatcxx . . $ QTextCharFormat# m_keywordFormatcxx . . $ JsSyntaxHighlighter#m_keywordFormat.; |
| 32 | QTextCharFormatcxx . . $ QTextCharFormat# m_classFormatcxx . . $ JsSyntaxHighlighter#m_classFormat.; |
| 33 | QTextCharFormatcxx . . $ QTextCharFormat# m_singleLineCommentFormatcxx . . $ JsSyntaxHighlighter#m_singleLineCommentFormat.; |
| 34 | QTextCharFormatcxx . . $ QTextCharFormat# m_multiLineCommentFormatcxx . . $ JsSyntaxHighlighter#m_multiLineCommentFormat.; |
| 35 | QTextCharFormatcxx . . $ QTextCharFormat# m_quotationFormatcxx . . $ JsSyntaxHighlighter#m_quotationFormat.; |
| 36 | QTextCharFormatcxx . . $ QTextCharFormat# m_functionFormatcxx . . $ JsSyntaxHighlighter#m_functionFormat.; |
| 37 | }; |
| 38 | |
| 39 | #endif // JSSYNTAXHIGHLIGHTER_H |