mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 21:29:26 +02:00
TodoListLaz: fix SynEdit markup for comments, if comments contain PasDoc (one comment returns multiple tokens)
This commit is contained in:
parent
c118272fc2
commit
bc80222f69
@ -451,6 +451,11 @@ begin
|
||||
FPasHl.StartAtLineIndex(ToIdx(pos.Y));
|
||||
FPasHl.NextToLogX(pos.X);
|
||||
TkEnd := ToPos(FPasHl.GetTokenPos) + FPasHl.GetTokenLen;
|
||||
while (not FPasHl.GetEol) and (not FPasHl.GetTokenIsCommentEnd) do begin
|
||||
FPasHl.Next;
|
||||
if not FPasHl.GetTokenIsComment then break;
|
||||
TkEnd := ToPos(FPasHl.GetTokenPos) + FPasHl.GetTokenLen;
|
||||
end;
|
||||
|
||||
i := Length(FFoundPos);
|
||||
SetLength(FFoundPos, i + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user