mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-18 14:59:15 +02:00
codetools: support for *experimental* and *library* hint modifiers
git-svn-id: trunk@22206 -
This commit is contained in:
parent
01f55ab286
commit
5dd9571ffc
@ -775,6 +775,8 @@ begin
|
||||
Add('UNIMPLEMENTED',{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('VIRTUAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('PASCAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('EXPERIMENTAL' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
Add('LIBRARY' ,{$ifdef FPC}@{$endif}AllwaysTrue);
|
||||
end;
|
||||
|
||||
IsKeyWordProcedureSpecifier:=TKeyWordFunctionList.Create;
|
||||
|
@ -3459,7 +3459,8 @@ begin
|
||||
end;
|
||||
if CurPos.Flag=cafEND then begin
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED')
|
||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED') or
|
||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag=cafSemicolon then
|
||||
@ -3534,7 +3535,8 @@ begin
|
||||
end;
|
||||
if CurPos.Flag=cafEND then begin
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED')
|
||||
if UpAtomIs('DEPRECATED') or UpAtomIs('PLATFORM') or UpAtomIs('UNIMPLEMENTED') or
|
||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
end;
|
||||
@ -3796,7 +3798,8 @@ begin
|
||||
SaveRaiseException(ctsInvalidSubrange);
|
||||
CurNode.EndPos:=CurPos.StartPos;
|
||||
end;
|
||||
if UpAtomIs('PLATFORM') or UpAtomIs('DEPRECATED') or UpAtomIs('UNIMPLEMENTED')
|
||||
if UpAtomIs('PLATFORM') or UpAtomIs('DEPRECATED') or UpAtomIs('UNIMPLEMENTED') or
|
||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
end else begin
|
||||
@ -3902,7 +3905,8 @@ begin
|
||||
CurNode.EndPos:=CurPos.EndPos;
|
||||
EndChildNode; // close record
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('PLATFORM') or UpAtomIs('DEPRECATED') or UpAtomIs('UNIMPLEMENTED')
|
||||
if UpAtomIs('PLATFORM') or UpAtomIs('DEPRECATED') or UpAtomIs('UNIMPLEMENTED') or
|
||||
UpAtomIs('EXPERIMENTAL') or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
Result:=true;
|
||||
|
Loading…
Reference in New Issue
Block a user