[fpc-pascal] Using include files in code tools

Ryan Joseph genericptr at gmail.com
Sat May 9 11:06:24 CEST 2020



> On May 7, 2020, at 8:21 PM, Ryan Joseph <genericptr at gmail.com> wrote:
> 
>>> I need this information so I can get navigate to the include file AND
>>> relative text offset into the include file text. 
>> 
>> There are plenty of functions for include files. Can you give an
>> example what you need?
> 
> I start with CodeToolBoss.Explore after loading the unit and get the current tool from that. I need to start with an actual unit right? I don't think it will parse plain include files on its own, and that won't often work anyways because there are  macros in the unit which includes the include file.
> 
> I'm collecting the symbols so that I can return them to the client and it can navigate to a particular file at a line/column number. The file which I navigate to must be the include file but I only have those location relative to the unit, not the include. 

sorry to pester but any ideas on this? I still haven't figured it out yet.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list