From 33f5e8a47d6ec8ed0053b5220076e693f97d214d Mon Sep 17 00:00:00 2001 From: JianjunLiu Date: Fri, 7 Jul 2023 18:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正解析死循环问题 --- designer/utslcodeeditor.tsf | 1 + designer/utslvclsyntaxparser.tsf | 10 ++++++++-- funcext/tvclib/utslvclpage.tsf | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/designer/utslcodeeditor.tsf b/designer/utslcodeeditor.tsf index 1fe9d16..5f09788 100644 --- a/designer/utslcodeeditor.tsf +++ b/designer/utslcodeeditor.tsf @@ -1000,6 +1000,7 @@ type TExecuteEditer=class(TCustomControl) //ִ s := replacetext(s,"$(CURRENT_DIRECTORY)",dir); s := replacetext(s,"$(SEARCH_PATH)",owner.getlibpathstr()); s := replacetext(s,"$(TSL_EXE)",gettslexe()); + len := length(s); return s; end function doSaveCurrentName(); diff --git a/designer/utslvclsyntaxparser.tsf b/designer/utslvclsyntaxparser.tsf index efda20c..344217a 100644 --- a/designer/utslvclsyntaxparser.tsf +++ b/designer/utslvclsyntaxparser.tsf @@ -39,7 +39,7 @@ type tslparser = class(tslparserbase) // end function tkopok(); begin - return FCurrentPos>0 and FCurrentPos=0 and FCurrentPos