codetools: parse headerless program: parse starting with a procedure

git-svn-id: trunk@35001 -
This commit is contained in:
mattias 2012-01-28 18:12:43 +00:00
parent cec16d5f5b
commit 00ccb9351a

View File

@ -614,7 +614,8 @@ begin
// this is allowed for program
if UpAtomIs('USES') or UpAtomIs('TYPE') or UpAtomIs('VAR')
or UpAtomIs('CONST') or UpAtomIs('RESOURCESTRING')
or UpAtomIs('BEGIN') then begin
or UpAtomIs('BEGIN') or UpAtomIs('PROCEDURE') or UpAtomIs('FUNCTION')
or UpAtomIs('OPERATOR') then begin
CurSection:=ctnProgram;
HasSourceType:=false;
CurPos.EndPos:=CurPos.StartPos;