mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-21 07:26:11 +02:00
EditorOptions: more fixes to finding default color (non pas highlighter)
git-svn-id: trunk@21192 -
This commit is contained in:
parent
619493579b
commit
c38d807c36
@ -2927,10 +2927,10 @@ begin
|
|||||||
if MappedAttriName = '' then
|
if MappedAttriName = '' then
|
||||||
for aha := Low(TAdditionalHilightAttribute)
|
for aha := Low(TAdditionalHilightAttribute)
|
||||||
to High(TAdditionalHilightAttribute) do
|
to High(TAdditionalHilightAttribute) do
|
||||||
if AnsiCompareText(GetAdditionalAttributeName(aha), AttriName) = 0 then
|
if AnsiCompareText(GetAdditionalAttributeName(aha), AttriName) = 0 then begin
|
||||||
MappedAttriName :=
|
MappedAttriName := AttriName; // all special line color attributes can be mapped 1:1
|
||||||
AttriName// all special line color attributes can be mapped 1:1
|
break;
|
||||||
;
|
end;
|
||||||
if MappedAttriName <> '' then
|
if MappedAttriName <> '' then
|
||||||
DefaultSyn := DefaultPascalSyn
|
DefaultSyn := DefaultPascalSyn
|
||||||
else
|
else
|
||||||
@ -2939,11 +2939,9 @@ begin
|
|||||||
j := DefaultSyn.AttrCount - 1;
|
j := DefaultSyn.AttrCount - 1;
|
||||||
while (j >= 0) do
|
while (j >= 0) do
|
||||||
begin
|
begin
|
||||||
if AnsiCompareText(StrToValidXMLName(DefaultSyn.Attribute[j].Name),
|
if AnsiCompareText(DefaultSyn.Attribute[j].StoredName, MappedAttriName) = 0 then
|
||||||
MappedAttriName) = 0 then
|
|
||||||
begin
|
begin
|
||||||
CopyHiLightAttributeValues(DefaultSyn.Attribute[j],
|
CopyHiLightAttributeValues(DefaultSyn.Attribute[j], Syn.Attribute[i]);
|
||||||
Syn.Attribute[i]);
|
|
||||||
break;
|
break;
|
||||||
end;
|
end;
|
||||||
dec(j);
|
dec(j);
|
||||||
|
Loading…
Reference in New Issue
Block a user