Jedi code format: Fix issue #40981 inherited function calls.

(cherry picked from commit b37e92de41)
This commit is contained in:
DomingoGP 2024-06-02 15:18:52 +02:00
parent 41db711cbc
commit a9137b980f
2 changed files with 5 additions and 1 deletions

View File

@ -2876,7 +2876,7 @@ begin
begin
Recognise(ttInherited);
if not (fcTokenList.FirstSolidTokenType in Operators + [ttSemicolon]) then
if not (fcTokenList.FirstSolidTokenType in Operators + BlockExitWords + [ttSemicolon, ttCloseBracket, ttComma]) then
begin
RecogniseDesignator;
if fcTokenList.FirstSolidTokenType = ttOpenBracket then

View File

@ -367,6 +367,10 @@ const
ttWhile, ttFor, ttRepeat, ttUntil, ttWith,
ttAsm, ttCase, ttInitialization, ttFinalization];
{ prior statement don't need ';' }
BlockExitWords: TTokenTypeSet = [ttTo, ttThen, ttElse, ttEnd, ttDo, ttUntil,
ttFinally, ttExcept, ttOtherwise];
PropertyDirectives: TTokenTypeSet =
{ the basics }
[ttRead, ttWrite,