mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 09:49:19 +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
|
begin
|
||||||
Recognise(ttInherited);
|
Recognise(ttInherited);
|
||||||
|
|
||||||
if not (fcTokenList.FirstSolidTokenType in Operators + [ttSemicolon]) then
|
if not (fcTokenList.FirstSolidTokenType in Operators + BlockExitWords + [ttSemicolon, ttCloseBracket, ttComma]) then
|
||||||
begin
|
begin
|
||||||
RecogniseDesignator;
|
RecogniseDesignator;
|
||||||
if fcTokenList.FirstSolidTokenType = ttOpenBracket then
|
if fcTokenList.FirstSolidTokenType = ttOpenBracket then
|
||||||
|
@ -367,6 +367,10 @@ const
|
|||||||
ttWhile, ttFor, ttRepeat, ttUntil, ttWith,
|
ttWhile, ttFor, ttRepeat, ttUntil, ttWith,
|
||||||
ttAsm, ttCase, ttInitialization, ttFinalization];
|
ttAsm, ttCase, ttInitialization, ttFinalization];
|
||||||
|
|
||||||
|
{ prior statement don't need ';' }
|
||||||
|
BlockExitWords: TTokenTypeSet = [ttTo, ttThen, ttElse, ttEnd, ttDo, ttUntil,
|
||||||
|
ttFinally, ttExcept, ttOtherwise];
|
||||||
|
|
||||||
PropertyDirectives: TTokenTypeSet =
|
PropertyDirectives: TTokenTypeSet =
|
||||||
{ the basics }
|
{ the basics }
|
||||||
[ttRead, ttWrite,
|
[ttRead, ttWrite,
|
||||||
|
Loading…
Reference in New Issue
Block a user