From 9d2e78ebf14061a8d00072ad94f71ae4acaffd3d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 11 Dec 2024 15:16:14 +0100 Subject: [PATCH] CppEditor: Fix test string The raw string literal syntax is awesome. Change-Id: Icd2677b40393eb66014755ef411473b236e6b19f Reviewed-by: Christian Stenger --- src/plugins/cppeditor/cpphighlighter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp index cf41b6fbf01..dedd644f64b 100644 --- a/src/plugins/cppeditor/cpphighlighter.cpp +++ b/src/plugins/cppeditor/cpphighlighter.cpp @@ -836,7 +836,7 @@ class CodeFoldingTest : public QObject private slots: void test() { - const QByteArray content = R"(cpp // 0,0 + const QByteArray content = R"cpp( // 0,0 int main() { // 1,0 #if 0 // 1,1 if (true) { // 1,1 @@ -852,7 +852,7 @@ int main() { // 1,0 #endif // 1,1 } // 0,0 // 0,0 -cpp)"; +)cpp"; TemporaryDir temporaryDir; QVERIFY(temporaryDir.isValid()); CppTestDocument testDocument("file.cpp", content);