[Lazarus] Some source editor context menu items broken
Mattias Gaertner
nc-gaertnma at netcologne.de
Sun May 21 11:38:17 CEST 2023
On Sun, 21 May 2023 10:48:30 +0200 (CEST)
Michael Van Canneyt via lazarus <lazarus at lists.lazarus-ide.org> wrote:
>[...]
> I saw a remark in main.pp that this is supposed to be faster than
> using the codetools:
>
> CurWordAtCursor := ASrcEdit.GetWordAtCurrentCaret;
> //it is faster to get information from SynEdit than from
> CodeTools
> ASrcEdit.EditorComponent.CaretAtIdentOrString(ASrcEdit.EditorComponent.CaretXY,
> IdentFound, StringFound);
>
> Faster? Probably. Correct? clearly not (yet).
Problem is that this function checks:
AtIdent := Attri = Highlighter.IdentifierAttribute;
But TSynPasSyn has its own attribute
ProcedureHeaderName: TSynHighlighterAttributesModifier
Martin?
Mattias
More information about the lazarus
mailing list