TurboPack / SynEdit

SynEdit is a syntax highlighting edit control, not based on the Windows common controls.
216 stars 72 forks source link

Python Highlighter doesn't work #248

Open Andyk1234 opened 5 months ago

Andyk1234 commented 5 months ago

Just downloaded and installed the latest version of SynEdit and surprised to find the Python highlighter has the same bug as the 2014 version I was using.

Bug is in the IdentKind function and to fix need to delete line 327 and replace with new code....

old line 327 if FKeywords.Find(s, i) then

To be replaced by i:=keywords.IndexOf(s); if i>=0 then