mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:40:30 +02:00
codetools: parsing class var external
git-svn-id: trunk@34432 -
This commit is contained in:
parent
33bbf3a144
commit
623df51893
@ -3168,9 +3168,11 @@ begin
|
||||
RaiseCharExpectedButAtomFound(';');
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if (CurNode.Parent.Desc=ctnVarSection)
|
||||
and (CurNode.Parent.Parent.Desc in AllCodeSections)
|
||||
and (UpAtomIs('PUBLIC') or UpAtomIs('EXPORT') or UpAtomIs('EXTERNAL') or UpAtomIs('WEAKEXTERNAL') or UpAtomIs('CVAR')) then
|
||||
if (CurNode.Parent.Desc in [ctnVarSection,ctnClassClassVar])
|
||||
and ((CurNode.Parent.Parent.Desc in AllCodeSections)
|
||||
or ((CurNode.Parent.Parent.Desc in AllClassBaseSections) and Scanner.Values.IsDefined('JVM')))
|
||||
and (UpAtomIs('PUBLIC') or UpAtomIs('EXPORT') or UpAtomIs('EXTERNAL')
|
||||
or UpAtomIs('WEAKEXTERNAL') or UpAtomIs('CVAR')) then
|
||||
begin
|
||||
// examples:
|
||||
// a: b; public;
|
||||
|
Loading…
Reference in New Issue
Block a user