mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 16:19:27 +02:00
Jedi Code Format: Support global properties. Issue #36548, patch from delfion.
git-svn-id: trunk@62790 -
This commit is contained in:
parent
688fb8cfe7
commit
940477566f
@ -781,7 +781,7 @@ begin
|
|||||||
|
|
||||||
}
|
}
|
||||||
while fcTokenList.FirstSolidTokenType in [ttConst, ttResourceString,
|
while fcTokenList.FirstSolidTokenType in [ttConst, ttResourceString,
|
||||||
ttType, ttVar, ttThreadVar, ttOpenSquareBracket, ttExports, ttOperator] + ProcedureWords do
|
ttType, ttVar, ttThreadVar, ttOpenSquareBracket, ttExports, ttOperator, ttProperty] + ProcedureWords do
|
||||||
RecogniseInterfaceDecl;
|
RecogniseInterfaceDecl;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -815,6 +815,11 @@ begin
|
|||||||
RecogniseAttributes;
|
RecogniseAttributes;
|
||||||
ttExports:
|
ttExports:
|
||||||
RecogniseExportsSection;
|
RecogniseExportsSection;
|
||||||
|
ttProperty:
|
||||||
|
begin
|
||||||
|
RecogniseProperty;
|
||||||
|
Recognise(ttSemicolon);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
raise TEParseError.Create('Expected const, type, var, procedure or function', lc);
|
raise TEParseError.Create('Expected const, type, var, procedure or function', lc);
|
||||||
end;
|
end;
|
||||||
@ -955,6 +960,12 @@ begin
|
|||||||
RecogniseProcedureDeclSection;
|
RecogniseProcedureDeclSection;
|
||||||
ttExports:
|
ttExports:
|
||||||
RecogniseExportsSection;
|
RecogniseExportsSection;
|
||||||
|
ttProperty:
|
||||||
|
begin
|
||||||
|
RecogniseProperty;
|
||||||
|
Recognise(ttSemicolon);
|
||||||
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
raise TEParseError.Create(
|
raise TEParseError.Create(
|
||||||
'Expected label, const, type, var, procedure or function', lc);
|
'Expected label, const, type, var, procedure or function', lc);
|
||||||
|
Loading…
Reference in New Issue
Block a user