fix: '::' not correctly highlighted

This commit is contained in:
Roy Qu 2022-10-21 15:46:57 +08:00
parent 1301168135
commit 411c740d24
1 changed files with 3 additions and 3 deletions

View File

@ -418,13 +418,13 @@ void CppHighlighter::braceOpenProc()
void CppHighlighter::colonProc()
{
mTokenId = TokenId::Symbol;
if (mRun+1<mLineSize && mLine[mRun+1]==':') {
mRun+=2;
mExtTokenId = ExtTokenId::ScopeResolution;
} else {
mRun+=1;
mExtTokenId = ExtTokenId::Colon;
}
mRun+=1;
mExtTokenId = ExtTokenId::Colon;
}
void CppHighlighter::commaProc()