I have an issue with my custom language highlighting. Everything works in an existing file, but if I create a new file and start typing, the parsing seems to not start and there is no highlighting. However, if I open the PSI structure, the PSI structure viewer immediately displays the correct highlighting. Also, if I close and re-open the file, the highlighting also appears.
The following GIF shows the issue:
Any tips what might cause such an issue?