编辑器

修正js语法高亮问题
This commit is contained in:
JianjunLiu
2023-02-22 11:09:00 +08:00
parent fc0eb3e1cd
commit bfb0e7edb0
2 changed files with 20 additions and 9 deletions
+2 -1
View File
@@ -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,"<!--",idx+3,"/*");