- enhancement: Beautify display for spaces and linebreaks.

This commit is contained in:
Roy Qu 2024-02-28 21:07:07 +08:00
parent 5eff32cee9
commit 0f654bdf75
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Red Panda C++ Version 2.27
- enhancement: Migrate external calls from command string to argv array to improve safety and security.
- enhancement: Support POSIX shell-like escaping in user inputs for compiler arguments.
- fix: (Hopefully) properly escape filenames and arguments in makefile generation.
- enhancement: Beautify display for spaces and linebreaks.
Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors.

View File

@ -1261,6 +1261,8 @@ void CppSyntaxer::procString()
if (mLine[mRun]=='"') {
mRun++;
break;
} else if (mLine[mRun]==' ' || mLine[mRun]=='\t') {
return;
} else if (mLine[mRun]=='\\') {
if (mRun == mLineSize-1) {
mRun++;
@ -1306,12 +1308,13 @@ void CppSyntaxer::procString()
void CppSyntaxer::procStringStart()
{
mTokenId = TokenId::String;
mRange.state = RangeState::rsString;
mRun += 1;
if (mRun>=mLineSize) {
mRange.state = RangeState::rsUnknown;
return;
}
procString();
//procString();
}
void CppSyntaxer::procTilde()