diff --git a/NEWS.md b/NEWS.md index eb1d8494..09499b80 100644 --- a/NEWS.md +++ b/NEWS.md @@ -17,6 +17,7 @@ Red Panda C++ Version 2.23 - fix: GNU assembly files (.s) are not shown in the files view. - fix: "typedef struct" that don't have definition of the struct is not correctly parsed. - enhancement: correctly highlight multiline raw string literals. + - enhancement: correctly highlight multiline string literals. - change: remove "Assembly" color scheme item (it's not used anymore). - fix: crash when parsing files containing inline assembly code. - fix: crash when source files contains macro definitions like "#define cfun (cfun + 0)" diff --git a/libs/qsynedit/qsynedit/syntaxer/cpp.cpp b/libs/qsynedit/qsynedit/syntaxer/cpp.cpp index 9881fae8..8c82f8f0 100644 --- a/libs/qsynedit/qsynedit/syntaxer/cpp.cpp +++ b/libs/qsynedit/qsynedit/syntaxer/cpp.cpp @@ -1530,6 +1530,8 @@ int CppSyntaxer::getTokenPos() void CppSyntaxer::next() { mTokenPos = mRun; + if (mLineSize == 0 && mRange.state == RangeState::rsString) + mRange.state=RangeState::rsUnknown; do { if (mRun>=mLineSize) { procNull();