mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 23:08:05 +02:00
Jedi code format: Fix issue #40981 inherited function calls.
(cherry picked from commit b37e92de41
)
This commit is contained in:
parent
41db711cbc
commit
a9137b980f
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user