ToDoList: Recognize a plain ToDo better inside comment start/end marks. Issue #41437.

This commit is contained in:
Juha 2025-03-28 13:25:19 +02:00
parent 2706015949
commit 9613485cf8

View File

@ -263,13 +263,15 @@ begin
if LazStartsText(TheToken, lParsingString) then
begin
if (Length(lParsingString)=Length(TheToken)) // Don't match with 'ToDoX'
or (lParsingString[Length(TheToken)+1] in [#9,' ',':']) then
begin
or (lParsingString[Length(TheToken)+1] in [#9,#10,#13,' ',':'])
or ((aEndComment <> '') and
(Copy(lParsingString,Length(TheToken)+1,Length(aEndComment))=aEndComment))
then begin
lTokenFound := True; // Token match
lFoundToDoType := lTodoType;
lFoundTokenStyle := lTokenStyle;
Break;
end;
Break;
end;
end;
end;