About 15-20 minutes into using emacs my syntax highlighting stops dynamically updating. Instead any new text just uses the color of the text right before it.
Any ideas on how to debug this issue or any work arounds? Running M-x global-font-lock-mode
(x2) properly refreshes it, but it doesn't re-enable the dynamic syntax highlighting.
The only way to solve the issue I've found is to kill my emacs server and start a new server, but the issue eventually crops up again.
Here are some screenshots of Python code which shows the behavior.
Here it is properly highlighted:
This is what new code looks like after it stops working:
And here's how it looks after running M-x font-lock-mode
(x2):