Stefan Kangas writes: > Do you have an example file or snippet where font-lock fails? I've tried to come up with a minimal reproducer; see attached file, and screenshots. In Emacs 28, the second assignment is not fontified until the user starts editing the buffer. I glanced at python.el's font-lock rules and tried to revert recent changes, but tripped over conflicts. I'm speculatively CC'ing Dario, in case the issue looks obvious to him?