diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-11-21 16:07:53 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-11-21 16:00:09 +0000 |
commit | 7475b073fb8084cf1304cea8a1781e74204a0a11 (patch) | |
tree | a341ec5993c7f3d4f0cd441fa82661b5c901baad /src/plugins/cppeditor/testcases | |
parent | b298c981f8b294d9c681304297549ed024f07c3f (diff) |
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 <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/testcases')
-rw-r--r-- | src/plugins/cppeditor/testcases/highlightingtestcase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"( +))"; |