Python keywords are neither recognised nor highlighted correctly.
This is because, in the file "SynHighlighterPython.pas", the line "FKeywords.Sorted := True;" is before
the line "FKeywords.Assign (GetKeywordIdentifiers);" in the "TSynPythonSyn.Create" constructor. It should be placed after.
The assignment replaces the list and the sorting property is lost. The "Duplicates " is most probably problematic too.
constructor TSynPythonSyn.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
fCaseSensitive := True;
FKeywords := TStringList.Create;
// OLD --->>> Wrong place here! FKeywords.Sorted := True;
FKeywords.Duplicates := dupError;
FKeywords.Assign (GetKeywordIdentifiers);
FKeywords.Sorted := True; // NEW --->>> Should be moved here!
Thank you for the prompt update.
Python keywords are neither recognised nor highlighted correctly.
This is because, in the file "SynHighlighterPython.pas", the line "FKeywords.Sorted := True;" is before
the line "FKeywords.Assign (GetKeywordIdentifiers);" in the "TSynPythonSyn.Create" constructor. It should be placed after.
The assignment replaces the list and the sorting property is lost. The "Duplicates " is most probably problematic too.
Thank you for the prompt update.