diff options
| author | 2023-10-04 11:25:05 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | 29e92a939647612842b2f583ce0a43dd572b1345 (patch) | |
| tree | be091f42ad1c2ff70d670bd8bba597b9bbf8aae1 /src/modules/editor/ScriptEditorImplementation.h | |
| parent | Qt6 is stricter when casting numericals and chars. Add an explicit cast/conve... (diff) | |
| download | KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.gz KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.tar.bz2 KVIrc-29e92a939647612842b2f583ce0a43dd572b1345.zip | |
Port from QRegExp (unavailable on qt6) to KviRegExp, based on QRegularExpression
Method str_kvs_fnc_split() had to be replaced with the original version, since the newer one relied on Qt5's QStringRef
Diffstat (limited to 'src/modules/editor/ScriptEditorImplementation.h')
| -rw-r--r-- | src/modules/editor/ScriptEditorImplementation.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/editor/ScriptEditorImplementation.h b/src/modules/editor/ScriptEditorImplementation.h index 35ee28ba9..e92a4f87f 100644 --- a/src/modules/editor/ScriptEditorImplementation.h +++ b/src/modules/editor/ScriptEditorImplementation.h @@ -26,6 +26,7 @@ #include "KviScriptEditor.h" #include "KviSelectors.h" +#include "KviRegExp.h" #include <QCompleter> #include <QLabel> @@ -123,13 +124,13 @@ public: private: struct KviScriptHighlightingRule { - QRegExp pattern; + KviRegExp pattern; QTextCharFormat format; }; QVector<KviScriptHighlightingRule> highlightingRules; - QRegExp commentStartExpression; - QRegExp commentEndExpression; + KviRegExp commentStartExpression; + KviRegExp commentEndExpression; QTextCharFormat bracketFormat; QTextCharFormat punctuationFormat; |
