27 #include <QCSVHighlighter> 28 #include <QSyntaxStyle> 37 m_delimiter(QRegularExpression(
","))
39 Q_INIT_RESOURCE(qcodeeditor_resources);
49 auto matchIterator = m_delimiter.globalMatch(text);
51 while (matchIterator.hasNext())
53 auto match = matchIterator.next();
56 match.capturedStart(),
57 match.capturedLength(),
QRegularExpression m_delimiter
QSyntaxStyle * syntaxStyle() const
Method for getting syntax style.
Class, that descrubes highlighter with syntax style.
QTextCharFormat getFormat(QString name) const
Method for getting format for property name.
static const char * match(MatchState *ms, const char *s, const char *p)
QCSVHighlighter(QTextDocument *document=nullptr)
Constructor.
void highlightBlock(const QString &text) override