OK it's actually the PHP lexer, but the HTML one seems to have similar issues. Either way, they apparently report offsets past the end of the file when they embed other scripting languages, leading to issues. I guess some extra checks should happen before ending up OOM, but the offsets should be fixed in the first place. I'll try and debug that when I have time, right now I just need my work tool to start working again :D