- enhancement: correctly highlight multiline string literals that has empty lines.

This commit is contained in:
Roy Qu 2023-07-11 21:02:40 +08:00
parent 7ad6a64150
commit 45c191bae4
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ Red Panda C++ Version 2.23
- fix: GNU assembly files (.s) are not shown in the files view. - 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. - 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 raw string literals.
- enhancement: correctly highlight multiline string literals.
- change: remove "Assembly" color scheme item (it's not used anymore). - change: remove "Assembly" color scheme item (it's not used anymore).
- fix: crash when parsing files containing inline assembly code. - fix: crash when parsing files containing inline assembly code.
- fix: crash when source files contains macro definitions like "#define cfun (cfun + 0)" - fix: crash when source files contains macro definitions like "#define cfun (cfun + 0)"

View File

@ -1530,6 +1530,8 @@ int CppSyntaxer::getTokenPos()
void CppSyntaxer::next() void CppSyntaxer::next()
{ {
mTokenPos = mRun; mTokenPos = mRun;
if (mLineSize == 0 && mRange.state == RangeState::rsString)
mRange.state=RangeState::rsUnknown;
do { do {
if (mRun>=mLineSize) { if (mRun>=mLineSize) {
procNull(); procNull();