# grammars: Support linked editing of custom elements in JSX and TSX \(\#58578\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6109c2e6d83b81f653d20f13cc25a909518b2c31

Requested commit: 6109c2e6d83b81f653d20f13cc25a909518b2c31

Commit: 6109c2e6d83b81f653d20f13cc25a909518b2c31

Tree: f8bb6085ecef7568d2b33ba18ebcb2b986b79f8d

Author: Kunall Banerjee

Committer: GitHub

## Message

```
grammars: Support linked editing of custom elements in JSX and TSX (#58578)

JSX and TSX only treated the dot as a tag-name character during
linked-editing, so renaming a tag to a custom element name such as
`custom-el` stopped mirroring the closing tag at the dash.

A follow-up to https://github.com/zed-industries/zed/pull/43179, really.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #58553.

Release Notes:

- Added support for linked-editing of custom elements in JSX/TSX

---------

Co-authored-by: MrSubidubi <finn@zed.dev>
```

## Parents

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

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