[fpc-pascal] Pascal Language Server

Ryan Joseph genericptr at gmail.com
Fri May 1 07:31:26 CEST 2020


Stuck on another code tools problem.

I've been using code like this to find words at node offsets and this works well until there are $ifdefs in the file and then the text position getting offset and fail to return the correct identifiers.

GetIdentifier(@Code.Source[Node.StartPos]);

How should this be resolved? I don't see there is a copy of the actual text parsed (without ifdefs) so I don't know how to reference the text that the parser actually used.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list