- enhancement: Support Raw string literal with LR/UR/uR/u8R prefix.
This commit is contained in:
parent
785614607c
commit
214b7cc0b8
1
NEWS.md
1
NEWS.md
|
@ -10,6 +10,7 @@ Red Panda C++ Version 3.2
|
|||
- fix: While Control is pressed, can't start Drag&Drop by mouse.
|
||||
- enhancement: Auto detect gdb ACP (by CyanoHao)
|
||||
- fix: When debugging project, the executing source file is not auto switched to. (#476)
|
||||
- enhancement: Support Raw string literal with LR/UR/uR/u8R prefix.
|
||||
|
||||
|
||||
Red Panda C++ Version 3.1
|
||||
|
|
|
@ -1628,6 +1628,14 @@ void CppSyntaxer::next()
|
|||
mRun+=2;
|
||||
mRange.state = RangeState::rsRawString;
|
||||
procRawString();
|
||||
} else if (mRun+2<mLineSize && (mLine[mRun] == 'L' || mLine[mRun] == 'u' || mLine[mRun]=='U') && mLine[mRun+1] == 'R' && mLine[mRun+2]=='\"') {
|
||||
mRun+=3;
|
||||
mRange.state = RangeState::rsRawString;
|
||||
procRawString();
|
||||
} else if (mRun+3<mLineSize && mLine[mRun] == 'u' && mLine[mRun+1] == '8' && mLine[mRun+2] == 'R' && mLine[mRun+3]=='\"') {
|
||||
mRun+=4;
|
||||
mRange.state = RangeState::rsRawString;
|
||||
procRawString();
|
||||
} else if (mRun+1<mLineSize && (mLine[mRun] == 'L' || mLine[mRun] == 'u' || mLine[mRun]=='U') && mLine[mRun+1]=='\"') {
|
||||
//qDebug()<<"*d-0-0*";
|
||||
mRun+=1;
|
||||
|
|
Loading…
Reference in New Issue