From bfb0e7edb002d30e46c0ab38c2e9e337cf676ea0 Mon Sep 17 00:00:00 2001 From: JianjunLiu Date: Wed, 22 Feb 2023 11:09:00 +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 修正js语法高亮问题 --- designer/utslsynmemo.tsf | 3 ++- funcext/tvclib/tslvcl.tsf | 26 ++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/designer/utslsynmemo.tsf b/designer/utslsynmemo.tsf index e335e4f..eee4823 100644 --- a/designer/utslsynmemo.tsf +++ b/designer/utslsynmemo.tsf @@ -607,7 +607,8 @@ type TTslSynHighLighter = class(TSynHighLighter) begin vi := s[idx]; viod := ord(vi); - if vi="<" and ( e-b)>2 and s[idx+1:idx+3]="!--" then + //if vi="<" and ( e-b)>2 and s[idx+1:idx+3]="!--" then + if vi="<" and ( e-idx)>2 and s[idx+1:idx+3]="!--" then begin //FindRightChars SetJsToken(tokens,"