From 0b14a264cca0e600260f0de018dd71d2a89125b1 Mon Sep 17 00:00:00 2001 From: JianjunLiu Date: Tue, 11 Apr 2023 15:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一ini语法 --- designer/utslsynmemo.tsf | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/designer/utslsynmemo.tsf b/designer/utslsynmemo.tsf index 95a671a..4a08f7a 100644 --- a/designer/utslsynmemo.tsf +++ b/designer/utslsynmemo.tsf @@ -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; + begin + v.FFColor := c1; break; + end else + begin + v.FFColor := c2; end end end