mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 15:19:22 +02:00
codetools: parse headerless program: parse starting with a procedure
git-svn-id: trunk@35001 -
This commit is contained in:
parent
cec16d5f5b
commit
00ccb9351a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user