fix: wrong color for #include underline

This commit is contained in:
Roy Qu 2024-03-03 19:25:53 +08:00
parent 43658bc873
commit c8cc88844a
1 changed files with 5 additions and 0 deletions

View File

@ -1179,6 +1179,11 @@ void Editor::onGetEditingAreas(int line, QSynedit::EditingAreaList &areaList)
p->beginX = pos1+2; p->beginX = pos1+2;
p->endX = pos2+1; p->endX = pos2+1;
p->type = QSynedit::EditingAreaType::eatUnderLine; p->type = QSynedit::EditingAreaType::eatUnderLine;
if (syntaxer()) {
p->color = syntaxer()->identifierAttribute()->foreground();
} else {
p->color = foregroundColor();
}
areaList.append(p); areaList.append(p);
} }
} }