mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 04:40:40 +01:00
Jedi Code Format: Fix strict private/protected after var declarations. Issue #38082, patch from Domingo Galmés.
git-svn-id: trunk@64140 -
This commit is contained in:
parent
292bf5f43a
commit
8e52758eb7
@ -1032,7 +1032,7 @@ begin
|
||||
leFirstTokenType := fcTokenList.FirstSolidTokenType;
|
||||
if pbNestedInClass then
|
||||
begin
|
||||
if (leFirstTokenType in ClassVisibility) then
|
||||
if leFirstTokenType in (ClassVisibility+[ttStrict]) then
|
||||
break;
|
||||
if leFirstTokenType in [ttClass,ttVar,ttThreadVar,ttConst,ttFunction,ttProcedure,ttOperator,ttConstructor,ttDestructor,ttProperty] then
|
||||
break;
|
||||
@ -1108,7 +1108,7 @@ begin
|
||||
|
||||
if pbNestedInClass then
|
||||
begin
|
||||
if (fcTokenList.FirstSolidTokenType in ClassVisibility) then
|
||||
if fcTokenList.FirstSolidTokenType in (ClassVisibility + [ttStrict]) then
|
||||
break;
|
||||
if fcTokenList.FirstSolidTokenType in [ttClass,ttVar,ttThreadVar, ttConst,ttFunction,ttProcedure,ttOperator,ttConstructor,ttDestructor,ttProperty] then
|
||||
break;
|
||||
@ -2320,7 +2320,7 @@ var
|
||||
begin
|
||||
leEndVarSection := END_VAR_SECTION;
|
||||
if pbClassVars then
|
||||
leEndVarSection := leEndVarSection + ClassVisibility;
|
||||
leEndVarSection := leEndVarSection + ClassVisibility + [ttStrict];
|
||||
|
||||
if pbClassVars and (fcTokenList.FirstSolidTokenType=ttClass) then
|
||||
begin
|
||||
|
||||
@ -267,7 +267,7 @@ end;
|
||||
{ true if the "AddGoodReturns" setting wants a return here }
|
||||
function NeedsGoodReturn(const pt, ptNext: TSourceToken): boolean;
|
||||
const
|
||||
CLASS_FOLLOW = [ttOf, ttHelper];
|
||||
CLASS_FOLLOW = [ttOf, ttHelper, ttAbstract, ttSealed];
|
||||
var
|
||||
lcNext: TSourceToken;
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user