mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:49:39 +02:00
+ Implemented support for ;public name XYZ; construct
git-svn-id: trunk@4133 -
This commit is contained in:
parent
ca37943c16
commit
aa2d333b11
@ -1492,10 +1492,27 @@ begin
|
||||
begin
|
||||
ExpectToken(tkSemicolon);
|
||||
end
|
||||
else if (UpperCase(CurTokenString) = 'EXTERNAL') then
|
||||
else if (tok = 'EXTERNAL') then
|
||||
repeat
|
||||
NextToken;
|
||||
until CurToken = tkSemicolon
|
||||
else if (tok = 'PUBLIC') then
|
||||
begin
|
||||
NextToken;
|
||||
{ Should be token Name,
|
||||
if not we're in a class and the public section starts }
|
||||
If (Uppercase(CurTokenString)<>'NAME') then
|
||||
begin
|
||||
UngetToken;
|
||||
UngetToken;
|
||||
Break;
|
||||
end
|
||||
else
|
||||
begin
|
||||
NextToken; // Should be export name string.
|
||||
ExpectToken(tkSemicolon);
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
UnGetToken;
|
||||
|
Loading…
Reference in New Issue
Block a user