.uppweb: cpp highlighting fix

git-svn-id: svn://ultimatepp.org/upp/trunk@15625 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-12-28 10:48:16 +00:00
parent 4a74b60dd4
commit d76dddb60a
2 changed files with 4 additions and 1 deletions

View file

@ -58,7 +58,10 @@ String CppAsQtf(const String& str)
if(strchr("!+-*^/%~&|=[]:?<>.#", *s))
qtf << "[@B `" << *s << "]";
else
if((byte)*s < 128)
qtf << '`' << *s;
else
qtf << *s;
}
s++;
}

View file

@ -1142,7 +1142,7 @@ CONSOLE_APP_MAIN
sid.Cat(*idStr);
else {
int id = ScanInt(sid);
if (IsNull(id))
if (IsNull(id))
fullTitle << "/" << sid;
else {
if (id < 0 || id >= tt.GetCount()) {