bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just


From: Wilhelm Kirschbaum
Subject: bug#62536: 30.0.50; Can we add """ ... """ electric pair in elixir, just like python
Date: Mon, 03 Apr 2023 10:26:59 +0200
User-agent: mu4e 1.9.3; emacs 30.0.50


Mou Tong <mou.tong@outlook.com> 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:

Attachment: 0001-Propertize-heredocs-in-elixir-ts-mode.patch
Description: Propertize heredocs

Attachment: 0002-Handle-electric-heredocs-pairs-in-elixir-ts-mode.patch
Description: Handle electric pairs for heredocs in elixir-ts-mode


reply via email to

[Prev in Thread] Current Thread [Next in Thread]