mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 23:20:28 +02:00
MG: fixed parser for variables with external modifier
git-svn-id: trunk@1764 -
This commit is contained in:
parent
dbb190695a
commit
ad593a406c
@ -2064,10 +2064,8 @@ begin
|
||||
if UpAtomIs('EXTERNAL') then begin
|
||||
// read external name
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag<>cafSemicolon then begin
|
||||
AtomIsIdentifier(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if AtomIsStringConstant then
|
||||
ReadConstant(true,false,[]);
|
||||
end else
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('NAME') then begin
|
||||
@ -2202,6 +2200,8 @@ function TPascalParserTool.KeyWordFuncVar: boolean;
|
||||
var a:b;
|
||||
a:b; cvar;
|
||||
a:b; public name 'string constant';
|
||||
a:b; external name 'string constant';
|
||||
a:b; cvar; external;
|
||||
|
||||
implementation
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user