fix: char literal not correctly syntax parsed.
This commit is contained in:
parent
498bc556e2
commit
eff6beba0a
|
@ -403,7 +403,8 @@ void CppSyntaxer::procAsciiChar()
|
||||||
while (mRun < mLineSize) {
|
while (mRun < mLineSize) {
|
||||||
if (mLine[mRun] =='\'') {
|
if (mLine[mRun] =='\'') {
|
||||||
mRun++;
|
mRun++;
|
||||||
break;
|
mRange.state = RangeState::rsUnknown;
|
||||||
|
return;
|
||||||
} if (mLine[mRun] == '\\') {
|
} if (mLine[mRun] == '\\') {
|
||||||
if (mRun+1>=mLineSize) {
|
if (mRun+1>=mLineSize) {
|
||||||
mRun++;
|
mRun++;
|
||||||
|
@ -417,8 +418,6 @@ void CppSyntaxer::procAsciiChar()
|
||||||
}
|
}
|
||||||
mRun+=1;
|
mRun+=1;
|
||||||
}
|
}
|
||||||
if (mRun<mLineSize)
|
|
||||||
mRange.state = RangeState::rsUnknown;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppSyntaxer::procBraceClose()
|
void CppSyntaxer::procBraceClose()
|
||||||
|
|
Loading…
Reference in New Issue