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


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