QCXXHighlighter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 // QCodeEditor
4 #include <QStyleSyntaxHighlighter> // Required for inheritance
5 #include <QHighlightRule>
6 
7 // Qt
8 #include <QRegularExpression>
9 #include <QVector>
10 
11 class QSyntaxStyle;
12 
18 {
19  Q_OBJECT
20 public:
21 
26  explicit QCXXHighlighter(QTextDocument* document=nullptr);
27 
28 protected:
29  void highlightBlock(const QString& text) override;
30 
31 private:
32 
34 
35  QRegularExpression m_includePattern;
36  QRegularExpression m_functionPattern;
37  QRegularExpression m_defTypePattern;
38 
39  QRegularExpression m_commentStartPattern;
40  QRegularExpression m_commentEndPattern;
41 };
42 
QCXXHighlighter::m_commentEndPattern
QRegularExpression m_commentEndPattern
Definition: QCXXHighlighter.hpp:40
QCXXHighlighter::m_functionPattern
QRegularExpression m_functionPattern
Definition: QCXXHighlighter.hpp:36
QCXXHighlighter::highlightBlock
void highlightBlock(const QString &text) override
Definition: QCXXHighlighter.cpp:72
QCXXHighlighter::m_highlightRules
QVector< QHighlightRule > m_highlightRules
Definition: QCXXHighlighter.hpp:33
QVector< QHighlightRule >
QCXXHighlighter::m_defTypePattern
QRegularExpression m_defTypePattern
Definition: QCXXHighlighter.hpp:37
QCXXHighlighter::QCXXHighlighter
QCXXHighlighter(QTextDocument *document=nullptr)
Constructor.
QCXXHighlighter
Class, that describes C++ code highlighter.
Definition: QCXXHighlighter.hpp:17
QCXXHighlighter::m_includePattern
QRegularExpression m_includePattern
Definition: QCXXHighlighter.hpp:35
QStyleSyntaxHighlighter
Class, that descrubes highlighter with syntax style.
Definition: QStyleSyntaxHighlighter.hpp:12
QSyntaxStyle
Class, that describes Qt style parser for QCodeEditor.
Definition: QSyntaxStyle.hpp:13
QCXXHighlighter::m_commentStartPattern
QRegularExpression m_commentStartPattern
Definition: QCXXHighlighter.hpp:39


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45