On Sun, 21 May 2023 10:48:30 +0200 (CEST) Michael Van Canneyt via lazarus <lazarus@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 -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus