mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 12:19:18 +02:00
codetools: parsing external keyword after forward class, bug #17197
git-svn-id: trunk@29224 -
This commit is contained in:
parent
6ce70fb207
commit
5cec794a58
@ -3881,29 +3881,29 @@ begin
|
||||
if CurPos.Flag=cafEND then begin
|
||||
// read extra flags
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag=cafSemicolon then
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('DEPRECATED') then begin
|
||||
ReadNextAtom;
|
||||
if AtomIsStringConstant then
|
||||
ReadConstant(true,false,[]);
|
||||
end else if UpAtomIs('PLATFORM')
|
||||
or UpAtomIs('UNIMPLEMENTED') or UpAtomIs('EXPERIMENTAL')
|
||||
or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag=cafSemicolon then
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('EXTERNAL') then begin
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('NAME') then begin
|
||||
ReadNextAtom;
|
||||
ReadConstant(true,false,[]);
|
||||
end;
|
||||
end;
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
UndoReadNextAtom;
|
||||
end;
|
||||
if CurPos.Flag=cafSemicolon then
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('DEPRECATED') then begin
|
||||
ReadNextAtom;
|
||||
if AtomIsStringConstant then
|
||||
ReadConstant(true,false,[]);
|
||||
end else if UpAtomIs('PLATFORM')
|
||||
or UpAtomIs('UNIMPLEMENTED') or UpAtomIs('EXPERIMENTAL')
|
||||
or UpAtomIs('LIBRARY')
|
||||
then
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag=cafSemicolon then
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('EXTERNAL') then begin
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('NAME') then begin
|
||||
ReadNextAtom;
|
||||
ReadConstant(true,false,[]);
|
||||
end;
|
||||
end;
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
UndoReadNextAtom;
|
||||
if ChildCreated then begin
|
||||
// close class
|
||||
CurNode.EndPos:=CurPos.EndPos;
|
||||
|
Loading…
Reference in New Issue
Block a user