codetools: implemented parsing var a:b; export name c;, bug #11002

git-svn-id: trunk@14524 -
This commit is contained in:
mattias 2008-03-15 10:24:12 +00:00
parent e940726de1
commit abd08bc5f4

View File

@ -2579,10 +2579,15 @@ begin
ReadNextAtom;
end;
if (CurNode.Parent.Desc=ctnVarSection)
and (UpAtomIs('PUBLIC') or UpAtomIs('EXTERNAL')) then begin
// for example 'var a: char; public;'
and (UpAtomIs('PUBLIC') or UpAtomIs('EXPORT') or UpAtomIs('EXTERNAL')) then
begin
// examples:
// a: b; public;
// a: b; external;
// a: b; external name 'c';
// a: b; external c;
if UpAtomIs('EXTERNAL') then begin
// read external name
// read external identifier
ReadNextAtom;
if (not UpAtomIs('NAME')) and AtomIsIdentifier(false) then
ReadConstant(true,false,[]);