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.
8742d4ab90smit committed on 5/21/2025, 10:26:20 PM· committed by GitHubparentb829f72
2 files changedLine totals unavailable