add QCodeEditor
This commit is contained in:
parent
bccee9bd36
commit
2f3069a388
316 changed files with 98016 additions and 0 deletions
24
external/QCodeEditor/include/internal/QHighlightBlockRule.hpp
vendored
Normal file
24
external/QCodeEditor/include/internal/QHighlightBlockRule.hpp
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
// Qt
|
||||
#include <QRegularExpression>
|
||||
#include <QString>
|
||||
|
||||
struct QHighlightBlockRule
|
||||
{
|
||||
QHighlightBlockRule() :
|
||||
startPattern(),
|
||||
endPattern(),
|
||||
formatName()
|
||||
{}
|
||||
|
||||
QHighlightBlockRule(QRegularExpression start, QRegularExpression end, QString format) :
|
||||
startPattern(std::move(start)),
|
||||
endPattern(std::move(end)),
|
||||
formatName(std::move(format))
|
||||
{}
|
||||
|
||||
QRegularExpression startPattern;
|
||||
QRegularExpression endPattern;
|
||||
QString formatName;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue