Mou Tong writes: >> There should never be a reason for the heredoc to be on a >> single line >> and also makes the tree-sitter grammar invalid, which causes >> the >> blinking issue. > > You are right, I didn't consider that. > >> ``` >> @doc """| >> """ >> ``` >> >> This will be the change ( looking at the electric.el code ). > > Cool, hoping to see the new feature soon (so sorry I don't know > much > about elisp and may not be able to help you much with it.) These two patches should then be sufficient to better handle heredocs for electric-pair-mode: