From 29e92a939647612842b2f583ce0a43dd572b1345 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 4 Oct 2023 11:25:05 +0200 Subject: 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 --- src/modules/editor/ScriptEditorImplementation.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/modules/editor/ScriptEditorImplementation.h') 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 #include @@ -123,13 +124,13 @@ public: private: struct KviScriptHighlightingRule { - QRegExp pattern; + KviRegExp pattern; QTextCharFormat format; }; QVector highlightingRules; - QRegExp commentStartExpression; - QRegExp commentEndExpression; + KviRegExp commentStartExpression; + KviRegExp commentEndExpression; QTextCharFormat bracketFormat; QTextCharFormat punctuationFormat; -- cgit v1.3.1-10-gc9f91