If the point is inside an unterminated heredoc, the paren level as reported by syntax-ppss will never increase because all the closing brackets are parsed as part of the string. In this case Emacs freezes as the while loop never terminates, eventually ending at the end of the file.
If the point is inside an unterminated heredoc, the paren level as reported by
syntax-ppss
will never increase because all the closing brackets are parsed as part of the string. In this case Emacs freezes as the while loop never terminates, eventually ending at the end of the file.