# editor: Fix regression causing incorrect delimiter on newline in case of multiple comment prefixes \(\#31129\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8742d4ab90be3b114aff25dff60329cecf70fa41)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8742d4ab90be3b114aff25dff60329cecf70fa41

Requested commit: 8742d4ab90be3b114aff25dff60329cecf70fa41

Commit: 8742d4ab90be3b114aff25dff60329cecf70fa41

Tree: 1b06f9ed995d0dc2be8a984bb029a5adf2806988

Author: smit

Committer: GitHub

## Message

```
editor: Fix regression causing incorrect delimiter on newline in case of multiple comment prefixes (#31129)

Closes #31115

This fixes regression caused by
https://github.com/zed-industries/zed/pull/30824 while keeping that fix.

- [x] Test

Release Notes:

- Fixed the issue where adding a newline after the `///` comment would
extend it with `//` instead of `///` in Rust and other similar
languages.
```

## Parents

- [b829f72c179ed7d942b49a78e1890422de5cda98](https://git.cafe/gitcafe/zed/commit/b829f72c179ed7d942b49a78e1890422de5cda98?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8742d4ab90be3b114aff25dff60329cecf70fa41?format=markdown)
