don't highlight '\' at line end as error

This commit is contained in:
Roy Qu 2022-05-05 09:58:55 +08:00
parent cd4bfdfa23
commit 2e66a3163c
1 changed files with 6 additions and 2 deletions

View File

@ -978,8 +978,12 @@ void SynEditCppHighlighter::slashProc()
void SynEditCppHighlighter::backSlashProc()
{
mTokenId = TokenKind::Symbol;
mExtTokenId = ExtTokenKind::BackSlash;
if (mLine[mRun+1]==0) {
mTokenId = TokenKind::Symbol;
mExtTokenId = ExtTokenKind::BackSlash;
} else {
mTokenId = TokenKind::Unknown;
}
mRun+=1;
}