From 7475b073fb8084cf1304cea8a1781e74204a0a11 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 21 Nov 2023 16:07:53 +0100 Subject: CPlusPlus: Fix finding end of raw string literal The employed algorithm lacked proper backtracking, potentially causing us to miss the delimiter altogether. Change-Id: I7993c3c27d034925bd884e192779c85c54be9ec4 Reviewed-by: hjk --- src/plugins/cppeditor/testcases/highlightingtestcase.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/cppeditor/testcases') diff --git a/src/plugins/cppeditor/testcases/highlightingtestcase.cpp b/src/plugins/cppeditor/testcases/highlightingtestcase.cpp index d1ec061aa2..a9102ce457 100644 --- a/src/plugins/cppeditor/testcases/highlightingtestcase.cpp +++ b/src/plugins/cppeditor/testcases/highlightingtestcase.cpp @@ -44,3 +44,6 @@ static void parenTest() /* comment */ \ } while (false); } + +const char* s7 = R"( +))"; -- cgit v1.2.3