# Add \`block_comment\` to JS, TSX, and TS \(\#31400\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 29f0762b6cf423fce98dc18884b53b84df6e6dec

Requested commit: 29f0762b6cf423fce98dc18884b53b84df6e6dec

Commit: 29f0762b6cf423fce98dc18884b53b84df6e6dec

Tree: b5a0d1d5b40c6c6389910f56ccd18fd5557cb172

Author: Vinicius Akira

Committer: GitHub

## Message

```
Add `block_comment` to JS, TSX, and TS (#31400)

This is the first step of ["Solution proposal for folding multiline
comments with no
indentation"](https://github.com/zed-industries/zed/discussions/31395):

> 1. Add block_comment in the config.toml for the languages javascript,
typescript, tsx. These are simple languages for this feature, and I am
already familiar with them.

The next step will be:

> 2. Modify the function `crease_for_buffer_row` in `DisplaySnapshot` to
handle multiline comments. `editor::fold` and `editor::fold_all` will
handle multiline comments after this change. To my knowledge,
`editor::unfold`, `editor::unfold_all`, and the **unfold** indicator in
the gutter will already work after folding, but there will be no
**fold** indicator.

Release Notes:

- N/A
```

## Parents

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

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