parent
d8b6e56c3c
commit
0b14a264cc
|
|
@ -1417,29 +1417,48 @@ type TINISynHigLighter = class(TSynHighLighter)
|
|||
begin
|
||||
if r[0].FValue="[" then
|
||||
begin
|
||||
if hightercolor then c := hightercolor.sysfunccolor();
|
||||
else c := 0xE22B8A;
|
||||
for i,v in r do
|
||||
begin
|
||||
v.FFColor := 0xE22B8A;
|
||||
v.FFColor := c;
|
||||
end
|
||||
end else
|
||||
if r[0].FValue in array(";","!","#") then
|
||||
begin
|
||||
if hightercolor then c := hightercolor.commentcolor();
|
||||
else c := 0x80CD43;
|
||||
for i,v in r do
|
||||
begin
|
||||
v.FFColor := 0x80CD43; //#43CD80
|
||||
v.FFColor := c; //#43CD80
|
||||
end
|
||||
end else
|
||||
if r[0].FValue = "@" then
|
||||
begin
|
||||
r[0].FFColor := 0x0000FF;
|
||||
if hightercolor then c := hightercolor.keycolor();
|
||||
else c := 0x0000FF;
|
||||
r[0].FFColor := c;
|
||||
end else
|
||||
begin
|
||||
if hightercolor then
|
||||
begin
|
||||
c1 := hightercolor.strcolor();
|
||||
c2 := hightercolor.keycolor();
|
||||
end
|
||||
else
|
||||
begin
|
||||
c1 := 0x0000F0;
|
||||
c2 := 0xf0f0f0;
|
||||
end
|
||||
for i,v in r do
|
||||
begin
|
||||
if v.FValue="=" then
|
||||
begin
|
||||
v.FFColor := 0x0000F0;
|
||||
v.FFColor := c1;
|
||||
break;
|
||||
end else
|
||||
begin
|
||||
v.FFColor := c2;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue