codetools: fixed parsing const public

git-svn-id: trunk@34791 -
This commit is contained in:
mattias 2012-01-19 10:01:12 +00:00
parent 8f717d8e6f
commit 42006c76d8

View File

@ -3652,7 +3652,7 @@ begin
ReadHintModifier; ReadHintModifier;
if CurPos.Flag=cafSemicolon then begin if CurPos.Flag=cafSemicolon then begin
if (CurNode.Parent.Desc=ctnConstSection) if (CurNode.Parent.Desc=ctnConstSection)
and (CurNode.Parent.Desc in AllCodeSections) then begin and (CurNode.Parent.Parent.Desc in AllCodeSections) then begin
repeat repeat
ReadNextAtom; ReadNextAtom;
if UpAtomIs('PUBLIC') then begin if UpAtomIs('PUBLIC') then begin