fix: '::' not correctly highlighted
This commit is contained in:
parent
1301168135
commit
411c740d24
|
@ -418,13 +418,13 @@ void CppHighlighter::braceOpenProc()
|
||||||
void CppHighlighter::colonProc()
|
void CppHighlighter::colonProc()
|
||||||
{
|
{
|
||||||
mTokenId = TokenId::Symbol;
|
mTokenId = TokenId::Symbol;
|
||||||
|
|
||||||
if (mRun+1<mLineSize && mLine[mRun+1]==':') {
|
if (mRun+1<mLineSize && mLine[mRun+1]==':') {
|
||||||
mRun+=2;
|
mRun+=2;
|
||||||
mExtTokenId = ExtTokenId::ScopeResolution;
|
mExtTokenId = ExtTokenId::ScopeResolution;
|
||||||
}
|
} else {
|
||||||
mRun+=1;
|
mRun+=1;
|
||||||
mExtTokenId = ExtTokenId::Colon;
|
mExtTokenId = ExtTokenId::Colon;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CppHighlighter::commaProc()
|
void CppHighlighter::commaProc()
|
||||||
|
|
Loading…
Reference in New Issue