Hi Folks,
not sure if i'm correct here.
Laz2.0.11-Rev 63876M - FPC3.2.1 on Manjaro 64-Bit
Working on a project i noticed something weird:
Add a unit and save it to the project.
Add another unit, delete everything (!) from it and save it as an inc-file ("somecode.inc").
Now, in the first unit, include the inc-file via Directive
{$I somecode.inc}
Save everything
switch back to the inc-file, and start writing a Function/Procedure
Procedure Dummy;
Begin
The moment i hit Enter after writing "Begin" i (and everyone else) expects an "end;" to appear.
It doesn't, as long as you're in the last line of code (meaning: No code further down).
But, the "end;" DOES appear, in the "main" file which includes the inc-file, and there it's appended to the end of the Include-Directive!
Can someone confirm?