fix: '::' not correctly highlighted
This commit is contained in:
parent
1301168135
commit
411c740d24
|
@ -418,14 +418,14 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
void CppHighlighter::commaProc()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue